Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Chatchai Saratakij CSaratakij

🎯
Focusing
Block or report user

Report or block CSaratakij

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@CSaratakij
CSaratakij / TriggerContainerEditor.cs
Last active May 18, 2019 — forked from bzgeb/TriggerContainerEditor.cs
Example Drag & Drop area in a custom inspector for the Unity editor
View TriggerContainerEditor.cs
using UnityEngine;
using System.Collections;
using UnityEditor;
[CustomEditor (typeof(TriggerContainer))]
public class TriggerContainerEditor : Editor
{
private SerializedObject obj;
@CSaratakij
CSaratakij / PDF_To_JPG
Last active Apr 10, 2019
Nautilus convert .pdf to .jpg script intregation (multiple select files support)
View PDF_To_JPG
#!/bin/bash
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
COUNTER=0
echo -e "Start converting files..."
notify-send "Start converting files..."
for path in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS; do
@CSaratakij
CSaratakij / bspwmrc
Created Mar 16, 2019 — forked from TiZ-EX1/bspwmrc
bspwm config files
View bspwmrc
#! /bin/sh
bspc config top_padding 24
bspc config bottom_padding 0
bspc config left_padding 0
bspc config right_padding 0
bspc config border_width 3
bspc config window_gap 16
# Borders and gaps
@CSaratakij
CSaratakij / solution.md
Last active Nov 21, 2019
SQL query practice : 6002526
View solution.md

SQL query practice : (6002526)

Lesson 1 : SELECT queries 101

  1. Find the title of each film
SELECT title FROM movies;
  1. Find the director of each film
View reverse_array.py
def main():
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9]
print("Before reverse : ")
print(numbers)
numbers = reverse_array(numbers)
print("")
View shuffle_sorted_array.py
import random
def main():
random.seed()
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
print("Before shuffle : " + str(numbers))
numbers = shuffle(numbers)
print("After shuffle : " + str(numbers))
View CustomCollision.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
public class CustomCollision : MonoBehaviour
View work.cpp
#include <iostream>
#include <string>
#include <vector>
#include <stdbool.h>
struct OrderInfo
{
int price = 0;
std::string customerName;
@CSaratakij
CSaratakij / .fdirrc
Created Jul 15, 2018
Fdir junk keys.
View .fdirrc
alias fd-WWW="cd /home/csaratakij/TTT"
alias fd-git="cd /home/csaratakij/@GitRepository"
alias fd-fdir="cd /home/csaratakij/@GitRepository/FDir"
alias fd-music="cd /home/csaratakij/Music"
alias fd-download="cd /home/csaratakij/Downloads"
alias fd-video="cd /home/csaratakij/Videos"
alias fd-tools="cd /home/csaratakij/Tools"
alias fd-prototypeA="cd /home/csaratakij/@GitRepository/PrototypeA"
alias fd-picture="cd /home/csaratakij/Pictures"
alias fd-godot-custom="cd /home/csaratakij/Tools/Utils/Godot/Custom"
@CSaratakij
CSaratakij / tetris.py
Created May 23, 2018 — forked from silvasur/tetris.py
Tetris implementation in Python
View tetris.py
#!/usr/bin/env python2
#-*- coding: utf-8 -*-
# NOTE FOR WINDOWS USERS:
# You can download a "exefied" version of this game at:
# http://hi-im.laria.me/progs/tetris_py_exefied.zip
# If a DLL is missing or something like this, write an E-Mail (me@laria.me)
# or leave a comment on this gist.
# Very simple tetris implementation
You can’t perform that action at this time.