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 / 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
@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 / 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 / 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 / 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 : ");
package exnumloopflagver2;
public class ExNumLoopFlagVer2 {
public static void main(String[] args) {
int maxNum = 6;
int dragNum = 1;
for (int i = maxNum; i > 0; i--) {
@CSaratakij
CSaratakij / ExNumLoopFlag.java
Last active March 21, 2016 03:17
My Num Flag Example
package exnumloopflag;
public class ExNumLoopFlag {
public static void main(String[] args) {
int maxNum = 6;
String space = "";
for (int i = maxNum; i > 0; i--) {
@CSaratakij
CSaratakij / calStation.c
Last active February 26, 2016 11:48
ตัวอย่าง program ที่ run ได้ -> original ref : http://pantip.com/topic/34834020
#include<stdio.h>
#include<conio.h>
#include<stdbool.h>
int main()
{
char menu;
int recieved, change, stationPrice;
do
@CSaratakij
CSaratakij / gist:cd148cb82799619f70cb
Created February 24, 2016 13:52 — forked from dodyg/gist:5823184
Kotlin Programming Language Cheat Sheet Part 1

#Intro

Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin M5.3

Kotlin project website is at kotlin.jetbrains.org.

All the codes here can be copied and run on Kotlin online editor.

Let's get started.

package playground.application
import javafx.application.Application
import javafx.scene.Scene
import javafx.stage.Stage
import javafx.scene.paint.Color
import javafx.scene.text.*
import javafx.scene.control.*
import javafx.scene.layout.*
import javafx.geometry.*