Skip to content

Instantly share code, notes, and snippets.

View CSaratakij's full-sized avatar
🎯
Focusing

Chatchai Saratakij CSaratakij

🎯
Focusing
View GitHub Profile
@CSaratakij
CSaratakij / ExLoopFun.cs
Last active April 1, 2016 17:52
My example of printing number.
using System;
using System.Collections.Generic;
namespace ExLoopFun
{
class Program
{
static void Main(string[] args)
{
Console.Write("Enter the positive integer number : ");
@CSaratakij
CSaratakij / gist:4ed1e681616a0e87f0ba6daa683277c4
Created April 24, 2016 18:05 — forked from digitaljhelms/gist:4287848
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@CSaratakij
CSaratakij / JavaApplication1.java
Last active April 27, 2016 11:54
My Java random pick by index example.
package javaapplication1;
import java.util.*;
public class JavaApplication1 {
public static void main(String[] args) {
Random rand = new Random();
@CSaratakij
CSaratakij / tmux-cheatsheet.markdown
Created July 22, 2016 13:44 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@CSaratakij
CSaratakij / fbterm-hacks.md
Created July 24, 2016 09:00 — forked from zellio/fbterm-hacks.md
fbterm, installation and configuration hacks

fbterm setup and config hacks

Installation and setup

Install fbterm via your favorite package manager

pacman -S fbterm

Most active GitHub users in Thailand

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Wed, 29 Jul 2015 01:52:41 GMT till Fri, 29 Jul 2016 01:52:41 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
 .filter(user => user.followers > 6)

Bomb Lab necessities

The bomb lab is most easily completed if you understand the following tools and commands. Also, if I am describing a program, assume that you run it from command line.

Strings

In case you have never used strings before it basically just tells you all the strings in an executable. If I were to run it on the bomb I would simply run

@CSaratakij
CSaratakij / main.py
Created August 18, 2016 17:01
Test Exit Turtle
#!/usr/bin/env python3
import turtle, sys
from turtle import Turtle
from turtle import Screen
class MyTurtle(Turtle):
def quit(self, btn, fun):
@CSaratakij
CSaratakij / health.gd
Last active April 15, 2019 21:50
GDScript - Health script with no if-else statement (man...I should have used clamp method for a long long time..^^)
extends Node
const MIN_HEALTH = 0
const MAX_HEALTH = 100
export var current_health = MAX_HEALTH
func _ready():
current_health = clamp(current_health, MIN_HEALTH, MAX_HEALTH)
@CSaratakij
CSaratakij / tmux.conf
Created August 30, 2016 19:50 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000