code

19 Articles 0 Followers


How To Send Free Transactions In Polkadot

3 Sep 2021 7 minute read 4 comments Equilibrium

Blockchain networks depend on transaction fees in order to incentivize the nodes and miners that make the entire network operate. These transaction fees also serve to protect their networks against DDoS attacks by malicious hackers — it’s not so easy...

Simple QR code generator in Python for Casper

28 Nov 2021 1 minute read 0 comments Pfed-prog

As part of the Gitcoin bounty for Casper hackathon we developed web application in python Flask that generates QR code. We hosted the application at on AWS Elastic Beanstalk with GitHub pipeline. The GitHub repository for the project. The overview o...

Checking whether or not a number is an Armstrong Number

5 May 2022 1 minute read 0 comments Cooldudue

This was an interesting challenge as I had no idea how I was going to get each digit into an array. In python, you can just convert the int to a string and then index the string directly. I found this interesting solution on Stack Exchange to convert...

The most wanted primes + bonus prime

9 May 2022 1 minute read 0 comments Cooldudue

Hello everyone I recently watched a Numberphile video where Neil shows an interesting sequence of numbers. In the end, I felt a bit empty since a prime number of this kind should exist but unfortunately, we have not been able to find one for the last...

Counting how many times a word appears in a sentence

10 May 2022 1 minute read 0 comments Cooldudue

Hello everyone This is a question I got in a coding interview and while I know how to solve it in python, Java is a different beast.  My approach was to split the sentence into an array of words and then check how many times a word appears in the arr...

Week Recap and plans for the next week 01/05-08/01

8 May 2022 1 minute read 0 comments Cooldudue

Hello everyone  So this week I finished two mini-code projects mentioned in my previous posts. I still have to publish my code for the most wanted primes from Numberphile. This week I finished most of the analysis and predictive models from the follo...

Reverse a String

6 May 2022 1 minute read 1 comment Cooldudue

This was a pretty easy one. From the previous problem, I knew how to convert a string to an array of char. Then I had to make a copy of the array but in Java, it's not as easy as saying a=b. Then I looped through the first array replacing each letter...

Sorting Algorithms 1

11 May 2022 1 minute read 0 comments Cooldudue

Hello everyone Before I dive deep into the theory of sorting algorithms, I thought it would be a fun exercise to create my own algorithms and see how they compare to those I will learn about. The algorithm I have prepared today simply compares the on...

Learn to code by playing video games with Tezos Academy

26 Dec 2020 1 minute read 2 comments Galaxie Crypto

Learning while having fun is great. It is now possible to learn to code in 3 different languages thanks to Tezos Academy. You can learn in 3 different languages, PascalLIGO, ReasonLIGO and GameLIGO.  The learning is done in the form of a scenario. ...

14 Day Self Quarantine! - 3.20.2020

20 Mar 2020 2 minute read 3 comments CryptoSnarf

So this virus stuff is getting pretty crazy, isn't it? Unfortunately, it has finally made it's way to our little family and we are now being forced to take precautions ourselves. Social distancing and washing our hands can only do so much so we have...