This file contains 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
#!/bin/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
{ "keys": ["ctrl+tab"], "command": "next_view" }, | |
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" } |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<key name="Software"> | |
<key name="ConEmu"> | |
<key name=".Vanilla" modified="2015-02-18 09:54:47" build="140923"> | |
<value name="StartType" type="hex" data="00"/> | |
<value name="CmdLine" type="string" data=""/> | |
<value name="StartTasksFile" type="string" data=""/> | |
<value name="StartTasksName" type="string" data=""/> | |
<value name="StartFarFolders" type="hex" data="00"/> | |
<value name="StartFarEditors" type="hex" data="00"/> |
This file contains 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 e = document.getElementById("ddlViewBy"); | |
var strUser = e.options[e.selectedIndex].value; |
This file contains 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
// Example usage: | |
// Meteor.SOMELAYOUT.events({ | |
// "embed MediaPlayerPositionChanged": function(value) { | |
// console.log("Position is now at ", value); | |
// } | |
// }); | |
if(Meteor.isClient) { | |
Meteor.startup(function() { | |
var embed = document.querySelector('embed'), | |
events = { |
This file contains 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
// post about this: https://medium.com/@xwildeyes/download-and-split-a-youtube-playlist-into-playable-files-e208e2a2e51b | |
// A script to split a youtube "playlist" file | |
// into it's mp3 parts, with corresponding filenames and | |
// everything | |
// By wildeyes. | |
// give it the name produced by youtube-dl -x https://www.youtube.com/watch?v=5nhp6ULk7mE | |
youtubeAudioFilename = process.argv[2] | |
// basically, a list of pairs of (time, name) in the format 00:00[:00] artist - song | |
// see http://www.regexr.com/3bp42 for specs file example | |
specsFilename = process.argv[3] |
This file contains 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
Show hidden characters
/* | |
On OS X, basic text manipulations (left, right, command+left, etc) make use of the system key bindings, | |
and don't need to be repeated here. Anything listed here will take precedence, however. | |
*/ | |
[ | |
{ "keys": ["super+shift+n"], "command": "new_window" }, | |
{ "keys": ["super+shift+w"], "command": "close_window" }, | |
{ "keys": ["super+o"], "command": "prompt_open" }, | |
{ "keys": ["super+shift+t"], "command": "reopen_last_file" }, | |
{ "keys": ["super+alt+up"], "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "hh", "h", "ipp", "inl", "m", "mm"]} }, |
This file contains 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
# xxx turn this into a bower/npm module | |
Object.defineProperty Array.prototype, "last", { get: -> this[this.length - 1]} | |
Object.defineProperty Array.prototype, "first", { get: -> this[0]} | |
Function::property = (prop, desc) -> | |
Object.defineProperty @prototype, prop, desc | |
Function::getter = (prop, get) -> | |
Object.defineProperty @prototype, prop, {get, configurable: yes} | |
Function::setter = (prop, set) -> | |
Object.defineProperty @prototype, prop, {set, configurable: yes} |
This file contains 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(url) { | |
var scriptTag = document.createElement('script'); | |
scriptTag.type = 'text/javascript'; | |
scriptTag.async = true; | |
scriptTag.src = url; | |
var s = document.getElementsByTagName('script')[0]; | |
s.parentNode.insertBefore(scriptTag, s); | |
})(URL); |
OlderNewer