I hereby claim:
- I am jordansaints on github.
- I am jordan_saints (https://keybase.io/jordan_saints) on keybase.
- I have a public key ASClkysTPfSO21Qe6myeb0iXAGXlTcIP26LwnLVsshvT9Qo
To claim this, I am signing this object:
-- Open Chrome's current tab in Firefox | |
-- by Jordan Saints, www.jordansaints.com | |
tell application "Google Chrome" | |
activate | |
end tell | |
delay 0.2 | |
tell application "System Events" to key code 37 using {command down} -- cmd+L FOCUS on URL in Chrome | |
delay 0.1 | |
tell application "System Events" to key code 8 using {command down} -- cmd+C COPY |
I hereby claim:
To claim this, I am signing this object:
############################################ | |
# Modified from emilis bash prompt script | |
# from https://github.com/emilis/emilis-config/blob/master/.bash_ps1 | |
# | |
# Modified for Mac OS X by | |
# @corndogcomputer | |
########################################### | |
# Fill with minuses | |
# (this is recalculated every time the prompt is shown in function prompt_command): | |
fill="—- " |
var objectA = { a: '1a', b: '1b', c: '1c' }; | |
var objectB = { a: '2a', b: '2b', d: '2d' }; | |
function objectDifference(minuend, subtrahend) { | |
var firstIntersection = _.omit(minuend, _.keys(subtrahend)), | |
secondIntersection = _.omit(subtrahend, _.keys(minuend)); | |
return _.extend(firstIntersection, secondIntersection); | |
} |
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle', | |
aria: false, | |
actions: { | |
toggleAria() { | |
this.set('aria', !this.get('aria')); |
-- Duplicate Firefox's currently open tab | |
-- by Jordan Saints, www.jordansaints.com | |
tell application "Firefox" | |
activate | |
end tell | |
delay 0.2 | |
tell application "System Events" to key code 37 using {command down} -- cmd+L focuses on address bar | |
tell application "System Events" to key code 36 using {option down} -- alt+Return duplicates tab in foreground |
-- Duplicate Chrome's currently open tab in the background | |
-- by Jordan Saints, www.jordansaints.com | |
tell application "Google Chrome" | |
activate | |
end tell | |
tell application "System Events" to key code 37 using {command down} -- cmd+L focuses on omnibar | |
tell application "System Events" to key code 36 using {command down} -- cmd+Return duplicates tab in background |
-- Open Chrome's current tab in Safari | |
-- by Jordan Saints, www.jordansaints.com | |
tell application "Google Chrome" | |
activate | |
end tell | |
delay 0.2 | |
tell application "System Events" to key code 37 using {command down} -- cmd+L FOCUS on URL in Chrome | |
delay 0.1 | |
tell application "System Events" to key code 8 using {command down} -- cmd+C COPY |
var links = []; | |
var quotes = []; | |
var tempUrl = []; | |
var infos = []; | |
var maxLinks = 10; | |
var firstUrl = 'http://www.imdb.com/search/title?at=0&num_votes=5000,&sort=user_rating,desc&start=1&title_type=tv_infoss'; | |
var newUrl; | |
var x = require('casper').selectXPath; |
-- OS X version-aware flushing of the DNS cache | |
-- Intended for use in an Alfred Flush-DNS workflow | |
set os_version to do shell script "sw_vers -productVersion" | |
if os_version ≥ "10.3" and os_version < "10.5" then | |
do shell script "lookupd -flushcache" | |
else if os_version < "10.7" then | |
do shell script "dscacheutil -flushcache" | |
else if os_version < "10.9" then | |
do shell script "killall -HUP mDNSResponder" with administrator privileges |