Skip to content

Instantly share code, notes, and snippets.

@git2358
git2358 / readme.md
Created July 7, 2020 20:38 — forked from josefnpat/readme.md
Going from Lua 5.2 to PICO-8's Lua

This information applies to the PICO-8 0.1.6 release.

This document is here to help folks with a proficiency in Lua understand the limitations and discrepencies between Lua and PICO-8's Lua.

You can always view the manual or yellowafterlife's extended 0.1.1 manual.

General

  • anything written in uppercase the PICO-8 editor or .p8 is made lowercase by the editor. → editing the .p8 file directly can work
  • print(function() end) outputs the string function instead of the string function: 0x0000000.
@git2358
git2358 / wget.sh
Created July 7, 2020 14:54 — forked from crittermike/wget.sh
Download an entire website with wget, along with assets.
# One liner
wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com
# Explained
wget \
--recursive \ # Download the whole site.
--page-requisites \ # Get all assets/elements (CSS/JS/images).
--adjust-extension \ # Save files with .html on the end.
--span-hosts \ # Include necessary assets from offsite as well.
--convert-links \ # Update links to still work in the static version.
@git2358
git2358 / mario.json
Created July 7, 2020 14:12 — forked from anonymous/mario.json
Mario Vector
[[[15,15,25,177,22,151,31,135,42,136,58,89,126,80,190,91,206,119,211,135,224,136,234,150,231,173,216,196,208,198,198,219,155,245,127,252,102,245,83,235,61,221,47,200,35,193],[4,4,73,97,95,88,108,99,112,113,95,102,82,104,71,115],[4,4,149,99,159,88,180,96,184,114,172,102,158,103,145,116],[15,14,24,150,33,137,45,138,48,200,36,189,26,174],[4,4,47,175,43,164,42,134,45,108,57,111,54,157],[15,14,231,170,215,193,208,198,209,173,214,137,223,139,231,150],[4,4,208,173,199,154,201,108,215,129,212,167],[8,8,33,128,28,104,41,69,63,39,92,12,127,7,149,8,182,24,202,47,224,88,228,118,217,136,207,117,177,94,126,85,66,99,44,121,42,134],[8,14,165,70,207,90,214,105,209,121,210,106,202,93,164,75,106,72,65,84,46,101,45,118,41,101,61,80,106,67],[7,7,102,28,129,19,152,27,164,45,153,68,102,67,92,48],[8,8,100,55,116,26,128,35,140,25,157,54,148,61,138,38,127,49,117,38,109,61],[7,7,82,123,93,116,107,122,114,137,113,147,100,153,94,165,84,161,80,152,78,140],[7,7,144,129,151,119,162,117,172,124,176,134,175,150,172,161,162,166,159,157,150,149
Title Author Genre Height Publisher
Fundamentals of Wavelets Goswami, Jaideva signal_processing 228 Wiley
Data Smart Foreman, John data_science 235 Wiley
God Created the Integers Hawking, Stephen mathematics 197 Penguin
Superfreakonomics Dubner, Stephen economics 179 HarperCollins
Orientalism Said, Edward history 197 Penguin
Nature of Statistical Learning Theory, The Vapnik, Vladimir data_science 230 Springer
Integration of the Indian States Menon, V P history 217 Orient Blackswan
Drunkard's Walk, The Mlodinow, Leonard science 197 Penguin
Image Processing & Mathematical Morphology Shih, Frank signal_processing 241 CRC
@git2358
git2358 / pixelate.js
Created June 17, 2020 12:40 — forked from niedzielski/pixelate.js
Pixelate images bookmarklet; disables zoomed image smoothing.
javascript:(_ => {
const sheet = document.createElement('style');
sheet.innerHTML = 'img { image-rendering: pixelated; }';
document.head.appendChild(sheet);
for(let i = 0; i < frames.length; ++i) {
frames[i].document.head.appendChild(sheet);
}
})()
@git2358
git2358 / index.html
Created May 19, 2020 05:36
Smooth card scrolling interaction! ✨
<!--
Inspired by @MengTo on Twitter
https://twitter.com/MengTo/status/1260300550953934853
HTML is added through JS, no framework is used!
-->
@git2358
git2358 / hue-jumper-a-2-kilobyte-3d-racing-game-in-javascript.markdown
Created April 17, 2020 14:30
HUE JUMPER - A 2 kilobyte 3D racing game in JavaScript