This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env osascript -l JavaScript | |
function run(argv) { | |
var folder = argv[0]; | |
console.log(folder); | |
var fm = $.NSFileManager.defaultManager; | |
var contents = fm.contentsOfDirectoryAtPathError(folder, null); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ok: wow | |
nok: [Error: honkytonk] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var queue = []; | |
var $albums = $('.QueueList .Album'); | |
for (var i = 0; i < $albums.length; i++) { | |
var $album = $($albums[i]); | |
var $title = $album.find('.album_title'); | |
var $artist = $album.find('.artist_title'); | |
queue.push({ | |
title : $title.text(), | |
href : $title.attr('href'), | |
artist : $artist.text() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FrequentWordsWithMismatches(Text, k, d) | |
FrequentPatterns ← an empty set | |
Neighborhoods ← an empty list | |
for i ← 0 to |Text| − k | |
add Neighbors(Text(i, k), d) to Neighborhoods | |
form an array NeighborhoodArray holding all strings in Neighborhoods | |
for i ← 0 to |Neighborhoods| − 1 | |
Pattern ← NeighborhoodArray(i) | |
Index(i) ← PatternToNumber(Pattern) | |
Count(i) ← 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="http://platform.instagram.com/en_US/embeds.js"></script> | |
</head> | |
<body style="background-color: black"> | |
<blockquote class="instagram-media" data-instgrm-captioned data-instgrm-version="4" style=" background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:658px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);"><div style="padding:8px;"> <div style=" background:#F8F8F8; line-height:0; margin-top:40px; padding:50% 0; text-align:center; width:100%;"> <div style=" background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAMAAAApWqozAAAAGFBMVEUiIiI9PT0eHh4gIB4hIBkcHBwcHBwcHBydr+JQAAAACHRSTlMABA4YHyQsM5jtaMwAAADfSURBVDjL7ZVBEgMhCAQBAf//42xcNbpAqakcM0ftUmFAAIBE81IqBJdS3lS6zs3bIpB9WED3YYXFPmHRfT8sgyrCP1x8uEUxLMzNWElFOYCV6mHWWwMzdPEKHlhLw7NWJqkHc4uIZphavDzA2JPzUDsBZziNae2S6owH8xPmX8G7zzgKEOPUoYHvGz1TBCxMkd3kwNVbU0gKHkx+iZILf77IofhrY1nYFnB/lQPb79drWOyJVa/DAvg9B/rLB4cC+Nq |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Harry Reid:FAAAAAAAAAART! *points finger at Republicans* | |
Ted Cruz:FAAAAAAAAAAAAAAAAAAAART! *points finger at Democrats* | |
Elizabeth Warren:FAAART! *points finger at Republicans* | |
Jebster:FAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAART! *points finger at Democrats* | |
Compatriots! I AM DEFINITIELY NOT LYING WHEN I SAY Soda in the drinking fountains is 100% true! | |
XOXO Harry Reid | |
Countrymen! I AM DEFINITIELY NOT LYING WHEN I SAY Soda in the drinking fountains is 100% true! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BARFS = [ | |
{ | |
x : 10 | |
name : 'pizza' | |
} | |
{ | |
x : 11 | |
name : 'tacos' | |
} | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<link href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic' rel='stylesheet' type='text/css'> | |
<style> | |
body { | |
font-family : 'Lato', sans-serif; | |
font-size : 100px; | |
padding-left : 40px; | |
} | |
.thin { font-weight : 100; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +stephenhandley is my openname (Bitcoin username). https://onename.io/stephenhandley |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fs = require('fs') | |
Path = require('path') | |
ChildProcess = require('child_process') | |
TYPES = { | |
"PNG image data" : 'png' | |
"JPEG image data" : 'jpg' | |
"GIF image data" : 'gif' | |
"TIFF image data" : 'tiff' |