Bash script which will:
- Iterate all commits made within a Git repository.
Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');| var Twit = require('twit'); | |
| var T = new Twit(require('./config.js')); | |
| var wordfilter = require('wordfilter'); | |
| var ent = require('ent'); | |
| var readability = require('readability-api'); | |
| readability.configure({ | |
| consumer_key: 'CONSUMER_KEY', | |
| consumer_secret: 'CONSUMER_SECRET' | |
| }); |
| // ==UserScript== | |
| // @name twitter hearts to favs | |
| // @namespace rossdoran.com | |
| // @version 6.0 | |
| // @description don't tread on me | |
| // @author ross doran | |
| // @match https://twitter.com/* | |
| // @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js | |
| // @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
| // @updateURL https://gist.githubusercontent.com/raw/0a4d7f3f36806ff12562/ |
| # in terminal | |
| defaults write ch.sudo.cyberduck rendezvous.enable false |
| [ | |
| { | |
| "action": { | |
| "type": "block" | |
| }, | |
| "trigger": { | |
| "url-filter": ".*", | |
| "resource-type": ["script"], | |
| "load-type": ["third-party"], | |
| "if-domain": ["imore.com"] |
#Make-A-Twitter-Bot Workshop
Session led by Allison Parrish
##Some of my bots
| activate application "Slack" | |
| tell application "System Events" to tell process "Slack" | |
| key code 125 using {option down, shift down} | |
| end tell | |
| -- use with FastScripts - http://www.red-sweater.com/fastscripts/ | |
| -- FastScripts pauses script execution before key presses until | |
| -- you've released the hotkey meta character. This makes it more | |
| -- reliable than just running it as a Service via a shortcut in | |
| -- System Preferences. |
| [ | |
| { | |
| "artist":"Elisa Ambrogio", | |
| "title":"Superstitious", | |
| "pos":100 | |
| }, | |
| { | |
| "artist":"Steve Gunn", | |
| "title":"Milly's Garden", | |
| "pos":99 |
| <?php | |
| $accesstoken = "oAuth Access Token from Foursquare"; | |
| $loc = $_REQUEST['id']; | |
| // Just add a switch case for every venue you want to check into | |
| // Use something like requestb.in to find the location id | |
| // Paste it into the case, and then paste the Foursquare/Swarm venue ID | |
| switch($loc) { | |
| case '2FB4E2F2-34E7-4B73-A553-9BCC1C1204CF': | |
| // Home | |
| $venueid = "4c4a689542b4d13a23ba297d"; |