Code & Scripting
JUMP TO SECTION
- Web User Scripts
- iOS Shortcuts
- HTML, CSS, JS
- Python
- Tools
- Applescript
- Alfred Workflows & Custom Web Searches
Web User Scripts
Site | Description | Link to Script |
---|---|---|
Micro.blog | Dark Mode | userscript-mb.js |
Timely | Various Changes (not actively maintained) | userscript-timely.js |
A Fine Start | Color palette | userscript-afinestart.js |
iOS Shortcuts
*Many of these most likely do not work given how much Shortcuts has changed since they were created.
Episode 01 - Dictate to Micro.blog
Episode 02 - Twitch Live Announcement
Episode 03 - Running Challenge
Episode 04 - Log Water With HomePod
Episode 05 - Saved.io Bookmarking
Episode 06 - Tip Calculator
Episode 07 - Micro.blog Photo Upload
Episode 08 - Send Link to Feedbin
Episode 09 - Micro.linker
Episode 10 - Fortnite, Where We Droppin!?
Episode 11 - Apple Reminders Packing List
Episode 12 - Location for Micro.blog
HTML, CSS, JS
Blinking Cursor Blog Title
See the Pen New Blog Title w/ Blinking Cursor by Jason Burk (@jasonburk) on CodePen.
Blog Post Type Indicators
See the Pen Blog Post Type Indicator - Large by Jason Burk (@jasonburk) on CodePen.
Blog Post Count By Year - Bar Chart
See the Pen V Bar Chart - Blog Post Count By Year by Jason Burk (@jasonburk) on CodePen.
Colored Div Boxes With Hover Color Values
See the Pen Colored DIV Boxes by Jason Burk (@jasonburk) on CodePen.
"What I'm Using" Page
You can see it here: grepjason.sh/mysetup
See the Pen What I'm Using by Jason Burk (@jasonburk) on CodePen.
PNG Blog Logo Color Change with JS
See the Pen PNG Blog Logo Color Change w/js by Jason Burk (@jasonburk) on CodePen.
PNG Blog Logo Color Change with CSS filter
(Doesn't look as good as above, but doesn't use JS. Filtered colors are an approximation of hex color values.)
See the Pen PNG logo Color Change w/filters by Jason Burk (@jasonburk) on CodePen.
Python
Badgers in python
It's not official until it's on Github: https://gist.github.com/jasonburk/5011160 😉
from time import sleep
#badger 12 times
badger = 0
while badger < 12:
print "Badger"
sleep(0.4)
badger = badger + 1
#mushroom 2 times
mushroom = 0
while mushroom < 2:
print "Mushroom!"
sleep(0.6)
mushroom = mushroom + 1
#badger 12 times
badger = 0
while badger < 12:
print "Badger"
sleep(0.4)
badger = badger + 1
#mushroom 2 times
mushroom = 0
while mushroom < 2:
print "Mushroom!"
sleep(0.6)
mushroom = mushroom + 1
#badger 11 times
badger = 0
while badger < 11:
print "Badger"
sleep(0.4)
badger = badger + 1
sleep(0.4)
#Mushroom mushroom 1 time
print "Mushroom! MUSHROOM!"
sleep(0.6)
#badger 11 times
badger = 0
while badger < 11:
print "Badger"
sleep(0.4)
badger = badger + 1
#Ahh! It's a snake
print "Argh python! A python! Ooohhh it's a PYTHON!!"
Tools
Twitch Live Announcement post to micro.blog
This script / app allows you to enter the name of the game you are going to stream live on Twitch and automatically create an announcement post on your micro.blog.
MultiOS Simulator
This tool allows you to launch two instances of the iOS Simulator on OS X for testing.
This is needed anymore, but it was neat when you couldn't do it natively
Applescript
Dock23D
This script / app / extension is used to quickly change your OS X Dock between a 2D and 3D appearance. This is available as both a standalone executable program as well as an extension for the great Alfred launcher.
(NO LONGER WORKS AS OF OS X 10.10)
Stand alone executable application: Dock23d.app
Alfred Extension: Dock23D.alfredextension
Source: https://gist.github.com/jasonburk/3943477
Hiding Files
This script / app / extension is used to quickly show hidden files in OS X and then re-hide them when you are done.
Stand alone executable application:
Alfred Extension: HidingFiles.alfredextension
Source: https://gist.github.com/jasonburk/4981747
just use the keyboard shortcut
Command + Shift + ."
Alfred Workflows
My IP
Use this workflow to quickly grab your computer's local IP address, then copy it to the clipboard, post a system notification, and display it in large type on the screen.
Examples of use:
"ip 0" returns the IP Address of en0
"ip 1" returns the IP Address of en1
"ip 2" returns the IP Address of en2
Download Alfred_MyIP.alfredworkflow
Custom Web Searches
Homebridge
https://www.npmjs.com/search?q=keywords%3Ahomebridge-plugin%20{query}
Font Awesome
https://fontawesome.com/icons?d=gallery&q={query}
The Movie Database
https://www.themoviedb.org/search?query={query}
Packal Alfred Extensions
http://www.packal.org/workflow-search?query={query}