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
# | |
# TIC80 packer | |
# | |
# Uses the zlib code chunk to crunch down your source | |
# https://github.com/nesbox/TIC-80/wiki/tic-File-Format | |
# | |
# Usage: tic80packer [lua file] | |
# | |
import sys |
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
/* | |
Uses https://github.com/datalust/superpower | |
Usage: | |
var text = System.IO.File.ReadAllText("visuals.comp"); | |
var parsed = FusionCompParser.ParseComp(text); | |
var tools = parsed.Get<FusionCompParser.FusionArray>("Tools"); | |
*/ | |
using Superpower; |
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
#version 410 core | |
uniform float fGlobalTime; // in seconds | |
uniform vec2 v2Resolution; // viewport resolution (in pixels) | |
uniform sampler1D texFFT; // towards 0.0 is bass / lower freq, towards 1.0 is higher / treble freq | |
uniform sampler1D texFFTSmoothed; // this one has longer falloff and less harsh transients | |
uniform sampler1D texFFTIntegrated; // this is continually increasing | |
uniform sampler2D texChecker; | |
uniform sampler2D texNoise; |
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 | |
include_once("simple_html_dom.php"); // http://simplehtmldom.sourceforge.net | |
set_time_limit(0); | |
$rootURL = "http://chaosconstructions.ru/"; | |
$mainURL = $rootURL . "en/results"; | |
$html = file_get_html($mainURL); |
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
/* | |
Requires Prototype | |
Usage: | |
var upload = new ImageUpload({ | |
dropElement: $('image-container'), | |
onFinished: function(){ alert("YAY") }, // optional | |
uploaderURL: "./upload.php", // optional; if not specified, location.href. | |
}); | |
upload.startUpload({ someParam: 12345 }); |
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 | |
function unpackR8($data) | |
{ | |
$ret = ""; | |
for ($x = 0; $x < strlen($data);) | |
{ | |
$control = ord($data{$x++}); | |
for ($bit = 0; $bit < 8; $bit++) | |
{ | |
if (!($control & (1 << $bit))) |
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 | |
// i woke up this morning with the | |
// odd thought that i want to | |
// find out what's the most optimal | |
// way to spell out an integer as | |
// roman numerals is. | |
function romanChar(&$num,$value,$code) | |
{ | |
$r = ""; | |
while($num >= $value) |
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/bash | |
# install script for http://wuhu.function.hu/ | |
if [ "$EUID" -ne 0 ] | |
then | |
echo "[wuhu] ERROR: This script needs to install a bunch of things, so please run as root" | |
exit | |
fi | |
echo "[wuhu] Installing packages..." |
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
function Cue(albumArtist, title, tracks) { | |
this.PERFORMER = albumArtist; | |
this.TITLE = title; | |
this.TRACKS = tracks; | |
}; | |
function Track(trackNumber, artist, title, offset) { | |
this.TRACK = trackNumber + ' AUDIO'; | |
this.TITLE = title; |
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
<? | |
$inputFile = ""; | |
$outputFile = ""; | |
$sizeLimit = 10 * 1024; | |
for ($x = 1; $x<count($argv); $x++) { | |
switch ($argv[$x]) { | |
case "--output": | |
case "-o": | |
{ | |
$outputFile = $argv[++$x]; |
NewerOlder