Skip to content

Instantly share code, notes, and snippets.

View iptq's full-sized avatar

michael iptq

View GitHub Profile
$cfg['blowfish_secret'] = '1e95153b6c941098227a4b08d9d74cb9d7b9387f83c74097';
@iptq
iptq / gist:85f42c0ea339ab45414d
Created August 5, 2014 02:59
JavaScript get GET variables
function getQueryVariable(variable)
{
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if(pair[0] == variable){return pair[1];}
}
return(false);
}
@iptq
iptq / gist:0adfe72492752fee9e1f
Created August 14, 2014 16:34
javascript part of skulpt script
function escapeRegExp(string) {
return string.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1");
}
function replaceAll(string, find, replace) {
return string.replace(new RegExp(escapeRegExp(find), 'g'), replace);
}
var outf = function(text) {
var mypre = document.getElementById("output");
mypre.innerHTML = mypre.innerHTML + text;
@iptq
iptq / gist:fba23dac90cd04831fca
Created August 14, 2014 16:35
html part of skulpt script
<div class="wrapper">
<div class="main">
<section id="page1">
<div class="page-container">
<div class="page-header">
<h2>Title</h2>
</div>
<div class="jumbotron">
<pre id="editor" style="margin:auto; width:840px; height:480px; border:1px solid #999; text-align:left;" contenteditable="true">print "Hello world!"</pre>
</div>
@iptq
iptq / osuco.py
Last active August 29, 2015 14:05
Python - Copy osu! data
import os;
import urllib.request;
import shutil;
import struct;
modes = [
"osu!",
"Taiko",
"CtB",
@iptq
iptq / gist:4c3aa1cd23f5bc70688d
Created August 17, 2014 20:43
canon in d hdhr replay
http://puu.sh/aWGKl/ef08250b21.osr
@iptq
iptq / gist:4ed2e39b4952f2845be4
Created August 19, 2014 16:02
pony song replay
http://puu.sh/aZ8Cx/e3dfd7427a.osr
@iptq
iptq / gist:5227d2df3f763535e8a1
Last active August 29, 2015 14:05
memes folder
http://puu.sh/gGcOg/0159566367.zip
http://www.quietless.com/kitchen/building-a-login-system-in-node-js-and-mongodb/
@iptq
iptq / gist:1e7d099008e0474bbc80
Created August 31, 2014 04:35
night of nights replay
http://puu.sh/bf0UR/55d8f96a1b.osr