Skip to content

Instantly share code, notes, and snippets.

View johnanthonyevans's full-sized avatar

John Anthony Evans johnanthonyevans

View GitHub Profile
@johnanthonyevans
johnanthonyevans / discovery-test.rss
Last active September 28, 2026 17:06
MrShow controlled RSS discovery test; Stuff You Should Know attribution retained
<?xml version='1.0' encoding='utf-8'?>
<rss xmlns:ns0="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:ns1="http://purl.org/rss/1.0/modules/content/" xmlns:ns2="http://search.yahoo.com/mrss/" xmlns:ns3="https://omny.fm/rss-extensions" xmlns:ns4="http://podlove.org/simple-chapters" xmlns:ns5="https://podcastindex.org/namespace/1.0" version="2.0"><channel><title>MrShow Controlled Discovery Test — SYSK — 2026-09-28</title><link>https://omny.fm/shows/stuff-you-should-know-1</link><description>Isolated podcast delivery test. Audio and original editorial metadata belong to Stuff You Should Know / iHeartPodcasts. No audio is hosted here.</description><language>en-us</language><item>
<title>Short Stuff: Mabon</title>
<ns0:title>Short Stuff: Mabon</ns0:title>
<description>&lt;p&gt;Mabon is often called the Pagan Thanksgiving &amp;nbsp;but though it seems like it&amp;rsquo;s as ancient as Halloween, it&amp;rsquo;s actually only around 50 years old. But, pagan or not, it&amp;rsquo;s a great chance to
@johnanthonyevans
johnanthonyevans / gist:68379b4c2e97aa0eca28
Last active August 29, 2015 14:10
Animating an arbitrary property in framers
Function::property = (prop, desc) ->
Object.defineProperty @prototype, prop, desc
class testLayer extends Layer
constructor: (options = {}) ->
super options
@property 'angle',
get: -> @_angle
set: (angle) ->
@johnanthonyevans
johnanthonyevans / gist:014a98084b73ec89b282
Last active August 29, 2015 14:10
Provides an audio layer for framerjs. Totally stolen from the framer source
# Copied mostly from the framer source which at this time is here https://github.com/koenbok/Framer/blob/master/framer/VideoLayer.coffee
class AudioLayer extends Layer
constructor: (options={}) ->
super options
@player = document.createElement("audio")
@player.setAttribute("preload", "auto")
class InputTextLayer extends Framer.Layer
constructor: (options) ->
super options
@ignoreEvents = false
@input = document.createElement("input")
_.extend @input.style,
@johnanthonyevans
johnanthonyevans / gist:11008209
Last active August 29, 2015 14:00
Resize images in folder quickly
sips -Z 640 640 *.JPG
// this script moves the selected object it's given distances (command ')
var input = [doc askForUserInput:"Transform (X,Y)" initialValue:0];
var flags = [NSEvent modifierFlags];
// should validate the input here
var x_delta = eval(input.split(",")[0]);
var y_delta = eval(input.split(",")[1]);
// this script moves the selected object it's given distances (command ')
// var levels = dialog(" ", 0, "Transform'" + [layer name] + "'(x,y)");
var levels = dialog(" ", 0, "Transform Object (x,y)");
/**
* Open a dialog for user input
* @param {string} msg The dialog message
* @param {mixed} given String or number - the given input value
* @param {string} title The dialog title
* @return {string} The value the user entered in the dialog