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
# Convert mp3 files to wav | |
# Usage: for file in *.mp3; do mp3towav $file; done | |
mp3towav() { | |
afconvert -f WAVE -d LEI16@44100 "$1" | |
} | |
# Trim silence from start/end of files | |
# Usage: for file in *.wav; do trimsilence $file; done | |
trimsilence() { | |
mkdir -p trimmed |
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
pico-8 cartridge // http://www.pico-8.com | |
version 16 | |
__lua__ | |
--init | |
_t=0 | |
dirx={-1,1,0,0,1,1,-1,-1} | |
diry={0,0,-1,1,-1,1,1,-1} | |
tiles={16,8,15,7,12,4,11,3,14,6,13,5,10,2,9,0} | |
function _init() | |
_upd=upd_game |
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
pico-8 cartridge // http://www.pico-8.com | |
version 16 | |
__lua__ | |
--init | |
function _init() | |
-- hold debug messages | |
debug={} | |
particles={} | |
p_colors = {5,6,7,10,9,5} |
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
pico-8 cartridge // http://www.pico-8.com | |
version 16 | |
__lua__ | |
function _init() | |
_t=0 | |
sprites={1,2,3,4} | |
end | |
function _update() | |
_t+=1 |
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
pico-8 cartridge // http://www.pico-8.com | |
version 16 | |
__lua__ | |
function _init() | |
x=-40 | |
y=64 | |
body={1,3} | |
head={5,7} | |
s={ |
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
const fs = require('fs'); | |
const glob = require('glob'); | |
const fm = require('front-matter'); | |
const path = require('path'); | |
const write = require('write'); | |
glob("!(node_modules)/**/*.md", {}, (err, files) => { | |
files.forEach((file) => { | |
fs.readFile(file, 'utf8', (err, data) => { | |
if (err) throw err; |
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
/** | |
* Load disqus comments when visitor scroll down page to comments | |
* | |
* Usage: | |
* Add a div with id "disqus_thread" and data attributes for every disqus parameter: | |
* | |
* <div id="disqus_thread" data-disqus-shortname="username" data-disqus-url="http://example.com/post/post-name/"></div> | |
* | |
* @author: Murat Corlu | |
* @link: https://gist.github.com/gists/2290198 |
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
pico-8 cartridge // http://www.pico-8.com | |
version 16 | |
__lua__ | |
function center(width) | |
return (screen_width / 2) - (width / 2) | |
end | |
function _init() | |
cls() |
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
pico-8 cartridge // http://www.pico-8.com | |
version 16 | |
__lua__ | |
function sleep(s) | |
for i=1,s*30 do | |
flip() | |
end | |
end | |
c = 0 |