- pkg-config
- autoconf 2.56 or later
- automake 1.7 or later
- libtool 1.4 or later
- If using Xcode 4.3 or later on OS X, autoconf and automake are no longer provided. The easiest way to obtain them is from MacPorts (http://www.macports.org/).
- NASM (if building x86 or x86-64 SIMD extensions)
- 0.98, or 2.01 or later is required for a 32-bit build
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
-- MarI/O by SethBling | |
-- Feel free to use this code, but please do not redistribute it. | |
-- Intended for use with the BizHawk emulator and Super Mario World or Super Mario Bros. ROM. | |
if gameinfo.getromname() == "Super Mario World (USA)" then | |
Filename = "DP1.state" | |
ButtonNames = { | |
"A", | |
"B", | |
"X", |
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 a = []; | |
for (i = 33; 126 >= i; i++) a.push(String.fromCharCode(i)); | |
var array = new Uint32Array(12); | |
window.crypto.getRandomValues(array); | |
var password = ''; | |
for (var i = 0; i < array.length; i++) { | |
password += a[Math.round(array[i] / 4294967296 * a.length-1)]; | |
} | |
console.log(password); |
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 copyToClipboard(text) { | |
var copyDiv = document.createElement('div'); | |
copyDiv.contentEditable = true; | |
document.body.appendChild(copyDiv); | |
copyDiv.innerHTML = text; | |
copyDiv.unselectable = "off"; | |
copyDiv.focus(); | |
document.execCommand('SelectAll'); | |
document.execCommand("Copy", false, null); | |
document.body.removeChild(copyDiv); |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<title>NO GOD PLEASE NO</title> | |
<style> | |
#video-bg { | |
position: fixed; | |
top: 0; | |
right: 0; |
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
#!/usr/bin/env bash | |
cd /c/ffmpeg | |
rm -rf ./* | |
aria2c --file-allocation=falloc http://ffmpeg.zeranoe.com/builds/win64/shared/ffmpeg-latest-win64-shared.7z | |
7z x ffmpeg-latest-win64-shared.7z | |
rm ffmpeg-latest-win64-shared.7z | |
tar -c --remove-files -f ffmpeg.tar ./* | |
tar -x --strip-components=2 -f ffmpeg.tar | |
rm ffmpeg.tar |
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
# Background function to run any given command in the background and | |
# disown it from the shell, hiding ALL output: | |
bkr() | |
{ | |
(nohup "$@" &>/dev/null &) | |
} |
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
#!/usr/bin/env sh | |
git fetch | |
git reset --hard | |
git clean -fdx | |
git pull | |
git submodule sync --recursive | |
git submodule update --init --force --recursive | |
git submodule foreach --recursive 'git reset --hard' | |
git submodule foreach --recursive 'git clean -fdx' | |
git submodule foreach --recursive 'git pull' |
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
#define DUMMY \ | |
CC=gcc ; set -ex; \ | |
$CC -Wall -O2 -I. -c -o jpg2dct.o jpg2dct.c ; \ | |
$CC -o jpg2dct jpg2dct.o libjpeg.a ; \ | |
exit | |
/* $CC -o jpg2dct jpg2dct.o -ljpeg -L/usr/lib ; */ | |
/* | |
* jpg2dct.c |
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
Show hidden characters
[ | |
// Auto-pair backticks in Markdown files | |
{ | |
"keys": ["`"], | |
"command": "insert_snippet", | |
"args": | |
{ | |
"contents": "`$0`" | |
}, | |
"context": [ |