Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

import cv2
import numpy as np
import streamlit as st
import mediapipe as mp
st.title("Image Processing")
st.write(
"Upload an image below and I will annotate the faces in the image using [MediaPipe](https://mediapipe.dev/)."
)
@PullJosh
PullJosh / .babelrc
Created January 28, 2019 16:13
Exporting Component with Hooks: Package Settings
{
"presets": [
["@babel/react"],
["@babel/env", { "useBuiltIns": "usage" }]
]
}

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 / 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
@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
// ==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/*
float i = 0;
int verticalLines = 54;
float waveHeight = 100;
float colorChange = 1;
float colorSpeed = 3;
boolean mouse = false;
public void setup() {
smooth();
@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])
@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 / 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();