Skip to content

Instantly share code, notes, and snippets.

Paul Mison blech

Block or report user

Report or block blech

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
blech / Fix JS
Last active Feb 13, 2019
BBEdit script to run `eslint --fix` on the current file
View Fix JS
#!/usr/bin/env python3
import os
import sys
from copy import copy
from subprocess import run
from warnings import warn
doc_location = os.environ.get('BB_DOC_PATH', None)
blech / Go to React complement.js
Last active Feb 13, 2019
Small BBEdit script to let me easily flip between React components and containers
View Go to React complement.js
// paste into Script Editor, then save it into
// ~/Library/Application Support/BBEdit/Scripts
var bbedit = Application('BBEdit');
bbedit.includeStandardAdditions = true
var src_path =[0]().file()
// coerce to string, hackily
src_path = src_path+''
var src_comp = src_path.split("/")
blech / .block
Last active Nov 9, 2018 — forked from threestory/cb_2014_us_county_5m.json
California Votes - Prop 6, Nov 2018
View .block
height: 800
scrolling: no
border: no
#!/usr/bin/env python
# ./ rownumber output.png
# This is meant to be hyper-simple and makes
# some assumptions like: you want a row (not
# a column), the video is RGB (not gray), etc.
# Bug: frame_count is sometimes fractional.
# int() and the "if not okay" are workarounds.
blech /
Created Dec 13, 2017 — forked from sebvance/
Python script to find and delete duplicate tracks from Google Play Music library.
#!/usr/bin/env python
# created by shuichinet
# forked from 21 Nov 2015
# using minor edits by fcrimins from
# also using clever edits by Morgan Gothard
# updated for Python 3.5 by John M. Kuchta 22 Nov 2016 (hey I was busy)
# compiled by John M. Kuchta
# thanks to shuichinet, fcrimins and Mr. Gothard for their work
blech / index.html
Last active Dec 6, 2017
Muni new train finder
View index.html
<!DOCTYPE html>
<meta charset=utf-8 />
<title>Muni New Train Finder</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src=''></script>
<script src=""></script>
<link href='' rel='stylesheet' />
View planets_encore.txt
Astronomical Applications Department
U. S. Naval Observatory
Washington, DC 20392-5420
Location: W122°26'24.0", N37°45'36.0", 0m
(Longitude referred to Greenwich meridian)
Time Zone: 7h 00m west of Greenwich
View planets.txt
Location: W157°44'24.0", N21°24'00.0", 0m
(Longitude referred to Greenwich meridian)
Time Zone: 10h 00m west of Greenwich
Date Rise Az. Transit Alt. Set Az.
View - a script for generating timeslices from videos

#!/usr/bin/env python
import argparse
import os
import sys
from PIL import Image
parser = argparse.ArgumentParser()
You can’t perform that action at this time.