This file contains hidden or 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 hidden or 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__ | |
global_y = 0 | |
function mt(t1,t2) | |
local new = {} | |
for k,v in pairs(t1) do new[k] = v end | |
for k,v in pairs(t2) do new[k] = v end | |
return new | |
end |
This file contains hidden or 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 hidden or 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 |
This file contains hidden or 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 |
This file contains hidden or 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
#include "ugui.h" | |
#include "8bkc-hal.h" | |
#include "8bkc-ugui.h" | |
// used later in example | |
float health = 100; | |
void app_main() { | |
kchal_init(); | |
kcugui_init(); |
This file contains hidden or 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
from slacker import Slacker | |
import itertools | |
from hurry.filesize import size | |
slack = Slacker('<API KEY>') | |
pages = slack.files.list(page=1).body['paging']['pages'] | |
all_the_files = list(itertools.chain(*[slack.files.list(page=i).body['files'] for i in range(1,pages + 1)])) |
This file contains hidden or 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
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */ | |
window, page, dialog, wizard { | |
color: -moz-DialogText; | |
font: "SF Pro Text" !important; | |
} | |
:root:-moz-lwtheme-darktext { | |
--url-and-searchbar-background-color: #fff; | |
--chrome-background-color: #E3E4E6; |
This file contains hidden or 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; |