Skip to content

Instantly share code, notes, and snippets.

[
{
"backcolor": "#C2C3C7",
"name": "PICO-8 devkit keyboard",
"author": "tobiasvl",
"switchMount": "cherry",
"switchBrand": "cherry",
"switchType": "MX1A-G1xx"
},
[
@KHN190
KHN190 / crt.html
Last active March 20, 2025 04:10
PICO-8 webgl CRT effect.
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>PICO-8 Cartridge</title>
<meta name="description" content="">
<STYLE TYPE="text/css">
<!--
@morningtoast
morningtoast / pico8-crt.html
Created March 5, 2019 03:03
CRT export template for PICO-8 games
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>PICO-8 Cartridge</title>
<meta name="description" content="">
<STYLE TYPE="text/css">
<!--
#!/usr/bin/env python3
"""
Converts between QD and FDS disk images
"""
import struct
def create_fds_header(side_count):
return b"FDS\x1A" + bytes([side_count & 0xFF]) + bytes(11)
@kometbomb
kometbomb / put-a-flip-in-it.p8
Last active June 5, 2024 15:39
#PutAFlipInIt! #pico8
-- 1. Paste this at the very bottom of your PICO-8
-- cart
-- 2. Hit return and select the menu item to save
-- a slow render gif (it's all automatic!)
-- 3. Tweet the gif with #PutAFlipInIt
--
-- Notes:
--
-- This relies on the max gif length being long
-- enough. This can be set with the -gif_len
@Beej126
Beej126 / wayback.ps1
Last active September 15, 2020 03:59
Internet Archive (aka Wayback Machine) blog image recovery
# start with web archive's interactive search to hone in on the urls we need...
# e.g. https://web.archive.org/web/*/https://www.BeejBlog.com/wp-content/uploads//*
# viewing the ajax behind the search page (browser tools > network tab) we see the json feed for flat list of images & crucial wayback datestamp
# https://web.archive.org/cdx/search?url=https%3A%2F%2Fwww.BeejBlog.com%2Fwp-content%2Fuploads%2F%2F&matchType=prefix&collapse=urlkey&output=json&fl=original%2Ctimestamp%2Cendtimestamp
# click into the first search result and viewing the page source we see the format for direct image urls:
# e.g. https://web.archive.org/web/20160601110654if_/http://www.beejblog.com/wp-content/uploads/2008/08/204996604.jpg
# download the json list of our urls
@marcedwards
marcedwards / loadingspinner.pde
Created May 30, 2018 02:25
A loading spinner with 6 dots
// A loading spinner with 6 dots.
// By @marcedwards from @bjango.
//
// Pretty messy and hacked together, but it works. ¯\_(ツ)_/¯
// Created using Processing 3.3.7.
float scaler = 0.24 * 4; // Scale the entire design.
float scalerb = 4; // Scale the entire design more.
int frame = 0;
@valnub
valnub / index.html
Created May 21, 2018 22:09
iPhone X notch optimization HTML, CSS
<!doctype>
<html>
<head>
<title>Notch test</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
<style>
* {margin: 0;padding: 0;}
@santisbon
santisbon / Search my gists.md
Last active April 4, 2025 21:29
How to search gists.

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
user:santisbon

Find all gists with a .yml extension.
extension:yml

Find all gists with HTML files.
language:html

@jordan-brough
jordan-brough / google-url-shortener-bookmarklet.js
Created November 22, 2017 16:48
Goo.gl URL shortener bookmarklet
// Step 1: Get an API key here: https://developers.google.com/url-shortener/v1/getting_started#APIKey
// Step 2: Paste your api key below
// Step 3: Add the code below to your browser as a bookmark
// Step 4: Visit a non-goo.gl URL and click your bookmark
// NOTE: The security policy of some sites (such as this gist.github.com!) will prevent this from working.
// Check your javascript console if something doesn't work.
javascript:(function(){
var googleApiKey = 'INSERT YOUR API KEY HERE';