Skip to content

Instantly share code, notes, and snippets.

@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);
}
})()
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 / 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
@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 / 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 / pico8-crt.html
Created July 23, 2020 00:35 — forked from morningtoast/pico8-crt.html
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">
<!--
@git2358
git2358 / crt.html
Created July 23, 2020 00:35 — forked from KHN190/crt.html
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">
<!--
@git2358
git2358 / outline_sprite.p8.lua
Created July 30, 2020 04:58 — forked from Liquidream/outline_sprite.p8.lua
Useful sprite draw function for PICO-8 (and maybe Lua in general)
--
-- draws a sprite to the screen with an outline of the specified colour
--
function outline_sprite(n,col_outline,x,y,w,h,flip_x,flip_y)
-- reset palette to black
for c=1,15 do
pal(c,col_outline)
end
-- draw outline
for xx=-1,1 do
@git2358
git2358 / GIF-Screencast-OSX.md
Created August 7, 2020 05:03 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@git2358
git2358 / SMBDIS.ASM
Created August 11, 2020 13:06 — forked from 1wErt3r/SMBDIS.ASM
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger (doppelheathen@gmail.com)
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no