Skip to content

Instantly share code, notes, and snippets.

View pbfy0's full-sized avatar

Paul Fisher-York pbfy0

  • Ithaca, NY
View GitHub Profile
@pbfy0
pbfy0 / InsydeFlash.Log
Created November 22, 2012 13:14
InsydeFlash log
--- Log started: 2012/11/18 20:48:06
Initializing...
Log file : C:\Users\....\BIOS_stuff\sp55938touse2\InsydeFlash.Log
Settings file : C:\Users\....\BIOS_stuff\sp55938touse2\platform.ini (found)
Executable : C:\Users\....\BIOS_stuff\sp55938touse2\InsydeFlash.exe
Version : 4.1.3.0 Build : InsydeFlash
Date : Sun Nov 18 18:37:58 2012
Resource file : C:\Users\....\BIOS_stuff\sp55938touse2\iscflash.dll (loaded)
App name : InsydesFlash
@pbfy0
pbfy0 / gist:10082802
Created April 8, 2014 02:05
TI83 font mapping
0 1 2 3 4 5 6 7 8 9 a b c d e f
0 u+0000 u+1d45b u+1d462 u+1d463 u+1d464 u+25b8 u+2b06 u+2b07 u+222b u+00d7 u+25ab u+fe62 u+00b7 u+209c u+221b u+1d405
1 u+221a u+2070 u+00b2 u+2220 u+00b0 u+02b3 u+1d40 u+2264 u+2260 u+2265 u+203e u1d07 u+2192 u+23e8 u+2191 u+2193
2 u+0020 ! " # u+2074 % & ' ( ) * + , - . /
3 0 1 2 3 4 5 6 7 8 9 : ; < = > ?
4 @ A B C D E F G H I J K L M N O
5 P Q R S T U V W X Y Z u+03b8 \ ] ^ _
6 ` a b c d e f g h i j k l m n o
7 p q r s t u v w x y z { | } ~ u+225f
8 u+2080 u+2081 u+2082 u+2083 u+2084 u+2085 u+2086 u+2087 u+2088 u+2089 Á À Â Ä á à
@pbfy0
pbfy0 / 2048.lua
Last active November 2, 2016 01:57
Nspire 2048
platform.apilevel = '1.0'
function class(a,b)local c={}if not b and type(a)=='function'then b=a;a=nil elseif type(a)=='table'then for d,e in pairs(a)do c[d]=e end;c._base=a end;c.__index=c;local f={}f.__call=function(g,...)local h={}setmetatable(h,c)if b then b(h,...)else if a and a.init then a.init(h,...)end end;return h end;c.init=b;c.is_a=function(i,j)local k=getmetatable(i)while k do if k==j then return true end;k=k._base end;return false end;setmetatable(c,f)return c end
function table.contains(t,a)for b,c in pairs(t)do if c==a then return true end end;return false end
function with(a)local b=getfenv(2)local c=getmetatable(a)or{}c.__index=_G;setmetatable(a,c)setfenv(2,a)return function()setfenv(2,b)end,_G end
function initConstants()
_G.constants = {
gc = platform.gc(),
winText = "You win! Press enter to restart",
winText2 = "or tab to continue",
loseText = "Game over. Press enter to restart.",
@pbfy0
pbfy0 / freedomvr.user.js
Created June 4, 2014 22:39
freedomvr.user.js
// ==UserScript==
// @match http://*/*
// ==/UserScript==
var qs = Array.prototype.slice.call(document.querySelectorAll("applet[code^='fvr']"));
for(qi in qs){
var q = qs[qi];
console.log(q)
q.getParam = function(name, default_){
#include <stdio.h>
#include <stdlib.h>
char *starters = "\x01\x79\xf9\x21\x03\x02";
char *buf;
char tmp[12] = {0};
int n_items = 0;
int find_table(int len){
int i;
for(i = 0; i < len; i++){
@pbfy0
pbfy0 / conway_fast.S
Last active October 28, 2015 15:49 — forked from pbfy0/conway.S
Conway's game of life in 284 bytes - slightly faster
.string "PRG"
lcd_ptr .req r4
active_fb .req r5
inactive_fb .req r6
offset_r .req r7
backup_fb .req r8
@ start
push {r4-r8, r12, lr}
javascript:(function(){function e(a){a=atob(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);a=new Blob([b],{type:"image/png"});return f(URL.createObjectURL(a),{blob:a})}function f(a,b){for(var c in b)a[c]=b[c];return a}function g(a){return f(document.createElement("img"),{src:a})}function m(a){var b=document.createElement("div");b.className="notches";1<=a&&b.appendChild(g(n));for(var c=2;4>=c&&c<=a;c++)b.appendChild(g(p));5==a&&b.appendChild(g(q));return b}function r(a,b){if(2E3<
a)return 80;if(1936<a)return 69;if(1872<a)return 68;if(1808<a)return 67;if(1744<a)return 66;if(1680<a)return 65;if(1632<=a&&"platinum"==b)return 64;if(1632<a)return 53;if(1584<a)return 52;if(1536<a)return 51;if(1488<a)return 50;if(1440<a)return 49;if(1408<=a&&"gold"==b)return 48;if(1408<a)return 37;if(1376<a)return 36;if(1344<a)return 35;if(1312<a)return 34;if(1280<a)return 33;if(1232<=a&&"silver"==b)return 32;if(1232<a)return 21;if(1184<a)return 20;if(1136<a)return 19;if(1088<a)return 18;if(1040<
a)retu
@pbfy0
pbfy0 / proxy.py
Created September 14, 2015 22:32
from flask import Flask
from flask import Response
from flask import stream_with_context
from flask import request
from flask import redirect
from flask import url_for
import requests
import urllib.parse as up
import magic
@pbfy0
pbfy0 / replay.py
Last active October 24, 2015 22:33
import bitstring
import zlib
import struct
class bh_bitstream:
def __init__(self):
self.bs = bitstring.BitArray()
#@staticmethod
def write_bits(self, n, val):
@pbfy0
pbfy0 / quiz.py
Last active October 28, 2015 01:34 — forked from bantato/Quiz
import random
#Makes quiz with random questions
def Quiz():
score = 0
print("""
TEN QUESTION QUIZ
""")
QNum = 0