Skip to content

Instantly share code, notes, and snippets.

🎶
WHEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE!!

Thai Pangsakulyanont dtinth

🎶
WHEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE!!
  • Taskworld; spacet.me Labs
  • Krungthepmahanakhonamonrattanakosinmahintharayutthayamahadilokphopnoppharatratchathaniburiromudomratchaniwetmahasathanamonphimanawatansathitsakkathattiyawitsanukamprasit (Bangkok), Thailand
Block or report user

Report or block dtinth

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
@dtinth
dtinth / DocGen.md
Last active Aug 29, 2015
Documentation Generation
View DocGen.md

Documentation Generation

How to scan directory

Dir['*.js']
#=> ["diff.js", "index.js", "patch.js", "screen-buffer.js", "test-patch.js"]
@dtinth
dtinth / do-you-hear-the-peeople-sing.coffee
Last active Aug 29, 2015
Do You Hear the People Sing?
View do-you-hear-the-peeople-sing.coffee
###
# DO YOU HEAR THE PEOPLE SING? (Uplifting Mix)
# version 1.3 (clearer kick sound)
#
# Converted from CoffeeScript
# Source: https://gist.github.com/11080149
# Usage: coffee -bcp file.coffee
#
# Original from Les Miserables
@dtinth
dtinth / infinitely.js
Last active Aug 29, 2015
Infinitely Descending Chord
View infinitely.js
/**
* INFINITELY DESCENDING CHORD PROGRESSION (v1.1)
*
* Enjoy this chord progression that loops forever....
* By Thai Pangsakulyanont (https://github.com/dtinth)
*
* https://gist.github.com/dtinth/11371713
*/
var step = 0.1
@dtinth
dtinth / Project.md
Created May 19, 2014
MIDI Key Mapper
View Project.md
View POMC.rb
access_token = "..."
j = JSON.parse(`curl "https://graph.facebook.com/PeaceandOrderMaintainingCommand/feed?access_token=#{access_token}&limit=1000"`); nil
-> times { times.length * 60 / (times.max - times.min) }[j['data'].map { |c| Time.parse(c['created_time']) }]
# => 20.285306704707562
@dtinth
dtinth / HyperHackathon.md
Last active Aug 29, 2015
My Attempt at Hyper Hackathon
View HyperHackathon.md
@dtinth
dtinth / dtinth.json
Created Jun 5, 2014
Powerline color scheme for Vim
View dtinth.json
{
"name": "Default color scheme for terminal prompts",
"groups": {
"background:divider": { "fg": "gray5", "bg": "gray0" },
"session": { "fg": "black", "bg": "gray10", "attr": ["bold"] },
"date": { "fg": "gray6", "bg": "gray1" },
"time": { "fg": "gray10", "bg": "gray2", "attr": ["bold"] },
"time:divider": { "fg": "gray5", "bg": "gray2" },
"email_alert": { "fg": "white", "bg": "brightred", "attr": ["bold"] },
"email_alert_gradient": { "fg": "white", "bg": "yellow_orange_red", "attr": ["bold"] },
@dtinth
dtinth / dtinth.json
Created Jun 5, 2014
Powerline color scheme for Vim
View dtinth.json
{
"name": "Default color scheme",
"groups": {
"background": { "fg": "white", "bg": "gray2" },
"background:divider": { "fg": "gray6", "bg": "gray2" },
"mode": { "fg": "darkestgreen", "bg": "brightgreen", "attr": ["bold"] },
"modified_indicator": { "fg": "brightyellow", "bg": "gray4", "attr": ["bold"] },
"paste_indicator": { "fg": "white", "bg": "mediumorange", "attr": ["bold"] },
"readonly_indicator": { "fg": "gray6", "bg": "gray4" },
"branch": { "fg": "gray9", "bg": "gray4" },
@dtinth
dtinth / dtinth.json
Created Jun 5, 2014
Powerline theme for Tmux
View dtinth.json
{
"default_module": "powerline.segments.common",
"segment_data": {
"uptime": {
"before": ""
},
"external_ip": {
"before": ""
},
"date": {
@dtinth
dtinth / dtinth.json
Created Jun 5, 2014
Powerline theme for Vim
View dtinth.json
{
"segment_data": {
"branch": {
"before": ""
},
"modified_indicator": {
"args": { "text": "+" }
},
"line_percent": {
"args": { "gradient": false },
You can’t perform that action at this time.