Skip to content

Instantly share code, notes, and snippets.

View TheCureliestWalk's full-sized avatar
🎓
Learning for coding

Iho Somnam TheCureliestWalk

🎓
Learning for coding
View GitHub Profile
@TheCureliestWalk
TheCureliestWalk / main.ino
Created September 2, 2022 12:01
Arduino Ethernet MQTT Trash
#include <ArduinoJson.h>
#include <Ethernet.h>
#include <PubSubClient.h>
// Count Trash
const int trigPin1 = 8;
const int echoPin1 = 7;
unsigned long distance1;
long duration1;
@TheCureliestWalk
TheCureliestWalk / markdown-on-github.md
Created January 21, 2021 11:02
About limitation of Markdown on Github

Now Github allow you to customize your profile by creating README.md file in your profile repository. You can visit my profile to see how Markdown format improve your profile looks at here.

Limitation

Althought Markdown format can be embeded with HTML format, but some functions are can't be properly render like <h2 style="color:red;">THIS IS RED TEXT</h2> it will not show text with red color.

@TheCureliestWalk
TheCureliestWalk / house-complete.py
Created October 22, 2018 17:19
Build Minecraft house in Raspberry Pi (credit goes to MagPi)
#!/usr/bin/env python3
from mcpi.minecraft import Minecraft
from mcpi import block
# Connect to Minecraft
mc = Minecraft.create()
# Determine the Player's current position.
x,y,z = mc.player.getTilePos()
width = 5
height = 3
depth = 6
@TheCureliestWalk
TheCureliestWalk / signed-gpg-github.md
Last active July 9, 2021 10:12
How to create GPG Signed key with Keybase on Github

Sign GPG Key on Github with Keybase

mrkdwn-pass

Set everything up

  • Linux Computer (Windows or MacOS is compatible but you need to install GIT manually)
  • You need to install Keybase, login or sign up one if you don't have.
  • Your basic skill with Git and Github:

You need to know that Linux are have a default software: gpg for sign the GPG key. but we are going to use Keybase instead.

@TheCureliestWalk
TheCureliestWalk / git.txt
Created February 2, 2018 12:32
Everyday Git
GITEVERYDAY(7) Git Manual GITEVERYDAY(7)
NAME
giteveryday - A useful minimum set of commands for Everyday Git
SYNOPSIS
Everyday Git With 20 Commands Or So
DESCRIPTION
Git users can broadly be grouped into four categories for the purposes of describing here a small set of useful command for