Programming

618 Articles 12 Followers


Sure, here’s a full-featured NFT contract that includes some common features

20 Feb 2023 6 minute read 0 comments -Justin $0.06

The entire ChatGPT conversation has been broken down into this article. To read the full conversation with more detail and examples scroll to the end. Please note, these are untested code examples. If you speak the language, let me know in the commen...

Double the Number @ Dcoder

15 Feb 2023 1 minute read 0 comments Lochard $0.02

Problem: Given an array A of size N and K. count all the number of elements such that A[i] * 2 = K. Input: The first line of the input contains a single integer T denoting the number of test cases. The first line of each test case contains two space...

Bitwise for Dummies @ Dcoder

13 Feb 2023 1 minute read 0 comments Lochard $0.01

Problem: This is to provide you with an introductory experience of bit-wise operations. There are basically six bit-wise operations in any programming language : - AND(&), OR(|), XOR(^), NOT(~), left-shift operator(). You will be given 2 numbers a an...

Advent of Code 2022 Day 3

27 Jan 2023 1 minute read 0 comments Lochard $0.03

Sorry that I am blogging via my phone and I don't want to type too much. I will just share the finished code. You can see all of them on GitHub. --- Advent of Code 2022 Day 3 **Part 1** inputs

Advent of Code 2022 Day 2

25 Jan 2023 1 minute read 0 comments Lochard $0.01

Sorry that I am blogging via my phone and I don't want to type too much. I will just share the finished code. You can see all of them on [GitHub](https://github.com/locharp/code-snippets/tree/main/AdventOfCode). --- Advent of Code 2022 Day 2 **Part 1...

Advent of Code 2022 Day 1

24 Jan 2023 1 minute read 0 comments Lochard $0.07

Sorry that I am blogging via my phone and I don't want to type too much. I will just share the finished code. You can see all of them on GitHub. Advent of Code 2022 Day 1 **Part 1** inputs

1. Introduction to web development

16 Jan 2023 3 minute read 0 comments Jadders $0.03

This series of blog posts is going to teach you how to create a fully interactive website. We'll start with the basics of HTML, then add some CSS. After introducing you to CSS, we'll then go back over both HTML and CSS in a bit more detail, so that y...

Kivy Python canvas

22 Dec 2022 2 minute read 1 comment Sthappened $0.03

Today, we will look at canvas. You can operate with canvas in .py file using with self.canvas:; or in .kv file using canvas:. What is canvas Canvas is a place which contains some objects. For example: Rectangle RoundedRectangle Color Ellipse We'll...

Perl - Using conditionals (first part)

15 Dec 2022 2 minute read 0 comments lingy $0.15

We finally come to the use of conditionals in Perl (the famous if and else). If conditional The basic if structure is like this: if (condition) { say "The condition is true"; } This code means that, if the expression in the condition is true, the...

Kivy Layouts and widgets

12 Dec 2022 2 minute read 0 comments Sthappened $0.05

Before doing anything in Kivy it is important to understand what Layouts and Widgets are and how to work with them. What is a widget? Widget is any visual object which you can create with Kivy. For example Button, Label, TextInput... You can place th...