Skip to content

Instantly share code, notes, and snippets.

@acepek
acepek / sos.p8.lua
Created August 20, 2016 21:22
lua pico-8 making waves cart
pico-8 cartridge // http://www.pico-8.com
version 8
__lua__
-- sos
-- by aaron cepek #onebuttonjam
--cos1 = cos function cos(angle) return cos1(angle/(3.1415*2)) end
--sin1 = sin function sin(angle) return sin1(-angle/(3.1415*2)) end
keys={btns={},ct={}}
function keys:update()
for i=0,13 do
@acepek
acepek / pico-8-color-names-table.txt
Last active August 27, 2023 23:53
Pico-8 Palette Color Names in a Table
colors =
{
["black"] = 0,
["dark_blue"] = 1,
["dark_purple"] = 2,
["dark_green"] = 3,
["brown"] = 4,
["dark_gray"] = 5,
["light_gray"] = 6,
["white"] = 7,
@acepek
acepek / gist:6795957
Created October 2, 2013 15:55
cascade fade in
var items = $('#diagram *').not('#architecture *');
items.fadeOut(0);
$(items).each(function(i){
$(this).delay(i*100).fadeIn();
});
@acepek
acepek / colorbox-images.js
Last active December 18, 2015 18:09
Colorbox - open all links to images in a modal [in jQuery]
$('a').on('click touchstart', function(){
var img_href = $(this).attr('href');
var img_ext = img_href.substr(img_href.lastIndexOf('.')+1);
var ext_array = new Array('gif','jpg','png','jpeg');
if($.inArray(img_ext,ext_array)>-1) {
$(this).colorbox();
}
});