Skip to content

Instantly share code, notes, and snippets.

View disjukr's full-sized avatar
🌇
I wanna something happen like a movie in my life

JongChan Choi (Rieul) disjukr

🌇
I wanna something happen like a movie in my life
View GitHub Profile
@banksean
banksean / mersenne-twister.js
Created February 10, 2010 16:24
a Mersenne Twister implementation in javascript. Makes up for Math.random() not letting you specify a seed value.
/*
I've wrapped Makoto Matsumoto and Takuji Nishimura's code in a namespace
so it's better encapsulated. Now you can have multiple random number generators
and they won't stomp all over eachother's state.
If you want to use this as a substitute for Math.random(), use the random()
method like so:
var m = new MersenneTwister();
@jed
jed / LICENSE.txt
Created May 20, 2011 13:27 — forked from 140bytes/LICENSE.txt
generate random UUIDs
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@eligrey
eligrey / html-domparser.js
Last active April 11, 2024 10:34
DOMParser HTML extension - Now a polyfill since HTML parsing was added to the DOMParser specification
/*
* DOMParser HTML extension
* 2019-11-13
*
* By Eli Grey, http://eligrey.com
* Public domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/
/*! @source https://gist.github.com/1129031 */
@bcse
bcse / scrdec18-VC8.exe
Created February 15, 2012 10:13
Windows Script Decoder 1.8 (Decoding JScript.Encoded)
@jlong
jlong / uri.js
Created April 20, 2012 13:29
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
@1wErt3r
1wErt3r / SMBDIS.ASM
Created November 9, 2012 22:27
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger (doppelheathen@gmail.com)
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
@tong
tong / haxelib-completion.sh
Last active December 25, 2015 21:03
Haxelib shell completion script
#!bash
#
# Haxelib bash completion (3.2.0-rc.3)
#
__haxelib_commands() {
echo "install upgrade update remove list set search info user config path version help submit register local dev git setup newrepo deleterepo selfupdate convertxml run proxy"
}
_haxelib_complete(){
@disjukr
disjukr / killMetaCycle.js
Last active December 16, 2015 16:40
kill meta cycle
var fs = require('fs');
var path = require('path');
postMerge('.');
function postMerge(currentPath) {
var dir;
var mkdir;
var stat;
stat = fs.statSync(currentPath);
@lifthrasiir
lifthrasiir / index.html
Last active October 4, 2017 14:44
K-Shoot MANIA to EffectDrive/SDVXviewer converter
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>K-Shoot MANIA to EffectDrive/SDVXviewer converter</title>
</head>
<body>
<h1><a href="http://kshoot.client.jp/">K-Shoot MANIA</a> to <a href="http://effectdrive.web.fc2.com/">EffectDrive</a>/<a href="http://sdvxviewer.wiki.fc2.com/">SDVXviewer</a> converter</h1>
<table border="1" width="80%" style="text-align:center">
<tr><th width="50%">K-Shoot MANIA pattern (<code>*.txt</code>) here</th><th width="50%">Save this to EffectDrive's <code>Drv\*\*.drv</code></th></tr>
@ragingwind
ragingwind / Backend Architectures Keywords and References.md
Last active July 4, 2024 13:00
Backend Architectures Keywords and References