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
### Keybase proof | |
I hereby claim: | |
* I am joshmock on github. | |
* I am joshmock (https://keybase.io/joshmock) on keybase. | |
* I have a public key whose fingerprint is 7DE2 6FB1 0244 C3B7 5796 6A96 A0D0 224E 2C14 6AE2 | |
To claim this, I am signing this object: |
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
function myFn1 (arg1) { | |
var var1 = doSomethingWith(arg1), // set breakpoint here | |
var2 = doSomethingElseWith(var1); | |
_.each([1, 2, 3], function (val) { | |
doAnotherThingWth(var2); // var2 is still available in dev tools here, but var1 is not | |
}) | |
}; |
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
module.exports = function (io) { | |
"use strict"; | |
// set up websockets | |
io.sockets.on('connection', function (socket) { | |
var eventTypes = [ | |
'Backbone.Model.change', | |
'Backbone.Collection.add', | |
'Backbone.Collection.remove', | |
'Backbone.Collection.sort' |
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
try | |
tell application "Google Chrome" | |
set the bounds of the second window to {-1400, 0, -100, 900} | |
set the bounds of the first window to {100, 0, 1500, 2000} | |
end tell | |
end try | |
try | |
tell application "Mail" | |
set the bounds of the first window to {-1400, 0, -100, 900} |
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
Julio Bashmore - Au Seve | |
Ill Blue - 2nd Nature | |
Midland - Placement (Lone Remix) | |
Grenier - RDY4U | |
Joy Orbison & Boddika - Dun Dun | |
Portishead - Machinegun (Jimmy Edgar Edit) | |
Grenier - DTF (ft Salva) | |
Astronomar - Sword Fight (Kid Kamillion Edit) | |
Mike Q - Let It All Out | |
the Goonies - Africa |
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
// this sets the background color of the master UIView (when there are no windows/tab groups on it) | |
Titanium.UI.setBackgroundColor('#000'); | |
// create base UI tab and root window | |
var window = Titanium.UI.createWindow({ | |
title:'Search', | |
backgroundColor:'#fff' | |
}); | |
var textfield = Titanium.UI.createTextField({ |
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
" Pathogen settings to auto-load new plugins (http://www.vim.org/scripts/script.php?script_id=2332) | |
filetype off | |
call pathogen#runtime_append_all_bundles() | |
call pathogen#helptags() | |
filetype plugin indent on | |
"Enable filetypes | |
filetype on | |
filetype plugin on | |
filetype indent on |
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
PS1='\[\e[0;32m\][\t]\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[1;32m\]\$\[\e[m\] \[\e[1;37m\]' |
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
export CLICOLOR=1 | |
export LSCOLORS=ExFxCxDxBxegedabagacad | |
export PS1="\[$(tput setaf 1)\][\!] \[$(tput setaf 2)\]\w $ \[$(tput sgr0)\]" | |
alias crontab="VIM_CRONTAB=true crontab" |
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
' Results: Recurses through all subdirectories of FOLDER_TO_SCAN and finds all .FLV files that do not have an associated JPG splash image, then creates one 5 seconds into the video using FFMPEG command line tool. | |
' Assumes: FFMPEG (http://ffmpeg.org) command line tool is installed and its install directory is in the system Path variable. | |
Dim FOLDER_TO_SCAN | |
FOLDER_TO_SCAN = "C:\Folder\to\scan\" | |
Dim fso, rootFolder, convertedCount | |
Set fso = CreateObject("Scripting.FileSystemObject") | |
Set rootFolder = fso.GetFolder(FOLDER_TO_SCAN) |