Skip to content

Instantly share code, notes, and snippets.

View dtinth's full-sized avatar
🎶
𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪

Thai Pangsakulyanont dtinth

🎶
𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪
  • @bemusic                 @creatorsgarten                 @eventpop                 @showdownspace                 @spacetme                @wonderfulsoftware                
  • Krungthepmahanakhonamonrattanakosinmahintharayutthayamahadilokphopnoppharatratchathaniburiromudomratchaniwetmahasathanamonphimanawatansathitsakkathattiyawitsanukamprasit (Bangkok), Thailand
  • YouTube @dtinth
View GitHub Profile
@dtinth
dtinth / TestTimingData.cpp
Created March 25, 2011 09:00
the relevant part
enum
{
FOUND_WARP,
FOUND_WARP_DESTINATION,
FOUND_BPM_CHANGE,
FOUND_STOP,
FOUND_MARKER,
NOT_FOUND
};
@dtinth
dtinth / gist:923964
Created April 17, 2011 11:38
thaiWitter Custom CSS: inline-block
/* Custom CSS */
.changeset {
display: inline;
}
.status {
display: inline-block;
width: 320px;
vertical-align: top;
font-size: 20px;
@dtinth
dtinth / gist:931862
Created April 20, 2011 16:40
[Userstyle] FAIL.in.th: Horizontal Style
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("fail.in.th") {
#page, #wrapper, #content {
overflow: visible;
}
#wrapper {
padding-top: 15px !important;
@dtinth
dtinth / Technikawesome-ReX-LiteTutorial-6K-MX.txt
Created May 7, 2011 08:09
Technikawesome-ReX-LiteTutorial-6K-MX.txt
// Lite Tutorial - ReX
// 6K MX
// Charted by Technikawesome
// Converted from BMS using http://bmse-notedrop.jgate.de/
TimingMode,2
// beat 0 - 130bpm
N,0,5
N,0,6
N,0.5,1
var el = document.querySelector('textarea.file-contents');
el.value = el.value.replace(/[\s\S]/g, function(a) {
if (a.charCodeAt(0) > 127)
return encodeURIComponent(a).replace(/%/g, '\\x');
return a;
});
@dtinth
dtinth / user-style.css
Created June 21, 2011 18:03
BOUNCE!! BOUNCE!!`
@namespace url(http://www.w3.org/1999/xhtml);
a:hover, input:hover, textarea:hover
a:focus, input:focus, textarea:focus {
-moz-animation-duration: 0.2s;
-moz-animation-iteration-count: infinite;
-moz-animation-name: bounceszz;
-moz-animation-direction: alternate;
}
@dtinth
dtinth / main.cpp
Created July 11, 2011 14:43
HLP Hackathon : Image Flipping
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <stdint.h>
#include <algorithm>
union operation_t {
uint8_t opcode;
uint32_t hash;
};
@dtinth
dtinth / main.coffee
Created July 14, 2011 17:20
HLP Hackathon : Operator Is Me (Annotated)
# Operator Is Me - Annotated Source Code Solution
# written by Thai Pangsakulyanont (@dtinth)
# in CoffeeScript, I love it.
#
# I added commentaries to this source code after I finished writing it
# at the time of competitions there were no comments at all.
fs = require 'fs'
# This class manages each call.
@dtinth
dtinth / 10.coffee
Created July 23, 2011 16:34
HLP Hackathon: Final Round
hcf = (a, b, c, d) ->
return hcf hcf(a,b), hcf(c,d) if c? and d?
return hcf b, a if b > a
return hcf b, a % b if b > 0
return a
data = [
hcf 447369380069, 466032068393, 485107268193, 496917524923
hcf 6519505243, 7386277141, 8580293573, 9418028861
hcf 43537239727, 378745650149, 559929527, 111868166383
@dtinth
dtinth / puzzlecaptchasolved.user.js
Created July 29, 2011 12:55
Puzzle Captcha: Solved.
// ==UserScript==
// @id com.dtinth.puzzlecaptcha
// @name Puzzle Captcha Solver
// @namespace http://dt.in.th/
// @author @dtinth
// @description Solves captcha on https://puzzlecaptcha.apprabbit.com/. Written on 2011-07-29.
// @include https://puzzlecaptcha.apprabbit.com/
// ==/UserScript==
// this function loads an image from URL,