Skip to content

Instantly share code, notes, and snippets.

Avatar

squirrel guy an-OK-squirrel

View GitHub Profile
View sparser.py
# coding: utf-8
import re
L_LETTERS = 'abcdefghijklmnopqrstuvwxyz'
U_LETTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
DIGITS = '0123456789'
ALL_LETTERS = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
OPERATORS = L_LETTERS + '+*/-='
WHITESPACE = ' \t'
View im.user.js
// ==UserScript==
// @name imgurify
// @namespace affsafdffasfdafsa
// @include http://prntscr.com/*
// @version 1
// @grant none
// ==/UserScript==
document.location.href = $("#screenshot-image").attr("src")
View nfe.user.js
// ==UserScript==
// @name NFE
// @namespace an-OK-squirrel.github.io
// @description NFE marker yey
// @include https://scratch.mit.edu/projects/*
// @version 1
// @grant none
// ==/UserScript==
if ($("meta[content='noindex']").length > 0) $("#project > div:nth-child(1) > div:nth-child(1)").append('<div id="nfe" class="wip on" style="left:611px"><span>Not For Everyone</span></div>')
View Ball.hx
package ;
import openfl.display.Sprite;
class Ball extends Sprite {
public function new() {
super();
this.graphics.beginFill(0xffffff);
this.graphics.drawCircle(0, 0, 10);
this.graphics.endFill();
}
View packager.user.js
// ==UserScript==
// @name Package
// @description turns :P into :package:
// @namespace scratch_userscripts
// @include https://scratch.mit.edu/*
// ==/UserScript==
x = $("img");
for (var i = $("img").length - 1; i >= 0; i--) {
var imageToChange = $($("img")[i])
View itsprettygreat.pde
// Not Very Meaningful Statement
// also my first P3 program :P
// By an-OK-squirrel
void setup() {
size(500, 500);
noStroke();
fill(255, 255, 255, 10);
doAThing();
}
You can’t perform that action at this time.