This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var database = (function () { | |
'use strict'; | |
var tables = [], | |
dataCache = {}, | |
toSync = 0, | |
DEBUG = true; | |
function log(t) { | |
if(DEBUG) { | |
console.log("%c" + t, "color: #090; font-weight: bold;"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package; | |
import flash.display.BitmapData; | |
import flash.display.Loader; | |
import flash.events.Event; | |
import flash.events.TimerEvent; | |
import flash.Lib; | |
import flash.net.URLRequest; | |
import flash.utils.Timer; | |
import flash.Vector; | |
import haxe.FastList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input id="yourinput" type="email" name="email" id="email" /> | |
<script> | |
document.querySelector("#yourinput").addEventListener('click', function(e) { | |
console.log(e.target); | |
$(e.target).jeJqueryShit(); | |
}, false); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This classes allows you to create thumbnails. Input images will be resized, | |
* while the ratio keeps intact, and will cropped to the size given. | |
* @author Corné Dorrestijn | |
* @license http://www.gnu.org/copyleft/lesser.html GNU Library General Public License | |
* @package Default | |
*/ | |
class Thumbnail | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package; | |
import flash.display.MovieClip; | |
import flash.display.CapsStyle; | |
import flash.events.Event; | |
import flash.events.KeyboardEvent; | |
import flash.external.ExternalInterface; | |
import flash.Lib; | |
class Main extends MovieClip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sidebarSlider = function() { | |
var frame = 0; | |
setInterval(function() { | |
frame++; | |
$("div#sidebarslider ul").css("margin-left", (-frame%1332) + "px"); | |
}, 30); | |
} | |
// <div id="sidebarslider"> | |
// <ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
SIZE="1920x1080" | |
BITRATE="32k" | |
FRAMERATE="20" | |
KEY="KEY_HERE" | |
TIMESTAMP=$(date "+%m-%d-%y-%H%M") | |
ffmpeg\ | |
-f x11grab -s $SIZE -r $FRAMERATE -i :0.0\ | |
-f alsa -ac 2 -i pulse\ | |
-vcodec libx264 -preset ultrafast\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var i = 0; | |
function loop(callback) | |
{ | |
if(++i > 10) return callback === undefined ? undefined : callback(); | |
console.log(i); | |
setTimeout(function(){loop(callback);}, 200); | |
} | |
loop(function(){console.log('done');}); |
NewerOlder