Skip to content

Instantly share code, notes, and snippets.

@PullJosh
PullJosh / first_gif.pde
Created August 5, 2015 23:34
PullJosh's First GIF (Processing)
// IMPORTANT: Will only work if you have this: http://extrapixel.github.io/gif-animation/
import gifAnimation.*;
GifMaker gifExport;
int frames = 0;
int totalFrames = 120;
public void setup() {
smooth();
float i = 0;
int verticalLines = 54;
float waveHeight = 100;
float colorChange = 1;
float colorSpeed = 3;
boolean mouse = false;
public void setup() {
smooth();
// ==UserScript==
// @name Comment Sentiment
// @namespace http://joshuapullen.com/
// @version 1.3
// @description Colors comments based on whether they are mostly positive of negative
// @author Josh Pullen
// @match https://scratch.mit.edu/projects/*
// @match https://scratch.mit.edu/users/*
// @match http://scratch.mit.edu/projects/*
// @match http://scratch.mit.edu/users/*
@PullJosh
PullJosh / Block Usage
Created December 22, 2016 23:49
All Scratch 2.0 blocks in order of usage (from Scratch statistics page)
Looks:
1. hide
2. switch costume to
3. show
4. say for secs
5. switch backdrop to
6. next costume
7. set size to
8. change effect by
9. go to front
@PullJosh
PullJosh / Optimal Block Layout
Last active December 23, 2016 01:51
A better block layout, based on usage statistics
Motion:
------------
move steps
go to x y
glide to x y
point in direction
turn right
turn left
if on edge, bounce
// ==UserScript==
// @name Scratch Messages in Title
// @version 0.1
// @description Updates the page title to show number of messages (updates every 5 seconds)
// @match http://scratch.mit.edu/*
// @copyright 2014, Josh Pullen
// ==/UserScript==
var basetitle = document.getElementsByTagName("title")[0].innerHTML;

Keybase proof

I hereby claim:

  • I am pulljosh on github.
  • I am pulljosh (https://keybase.io/pulljosh) on keybase.
  • I have a public key ASDVn9pFT0QZzwr_I3xghZohN6nA6DypyxtfLXgW0Zq7RAo

To claim this, I am signing this object:

@PullJosh
PullJosh / .babelrc
Created January 28, 2019 16:13
Exporting Component with Hooks: Package Settings
{
"presets": [
["@babel/react"],
["@babel/env", { "useBuiltIns": "usage" }]
]
}
@PullJosh
PullJosh / tiled_loader.pde
Created August 25, 2015 19:00
Tiled Loader
import gifAnimation.*;
GifMaker gifExport;
int frames = 0;
int totalFrames = 120;
public void setup() {
smooth();
size(360, 360);
@PullJosh
PullJosh / packager.user.js
Last active April 14, 2022 13:50 — forked from an-OK-squirrel/packager.user.js
packager for scratch
// ==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])