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() { | |
// Temporary alert box killer - Derek Petersen | |
// Store the native alert/confirm functions for later | |
var _nativeAlert = window.alert; | |
var _nativeConfirm = window.confirm; | |
// Disregard all alert boxes | |
window.alert = function() { | |
return; | |
}; |
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/bash | |
set -e | |
if [ $# -lt 2 ]; then | |
echo "cppv - copy files with progress bar and rate limiting ability" | |
echo "Usage: cppv source_file[s] destination_file_or_directory" | |
echo "No other non-positional command line arguments can be given" | |
echo "Always recurses like find" | |
echo "You can change copying speed limit on the fly with \"pv -R\" if you find out pv's PID" |
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
script(id='BoardListTemplate', type='text/x-jQuery-tmpl') | |
| <p>${Title}</p> | |
| <ul id="${Id}" class="IterationBoardList"> | |
| <li class="AddNewItem">Add new Item</li> | |
| {{tmpl(Items) "#BoardListItemTemplate"}} | |
| </ul> |
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
for file in $(ls THEPATH); do ln -s NEWPATH$file .; done; |
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
// read the file you want | |
function ReadAllDataFile(fileNameInLocalTree) { | |
var package = Windows.ApplicationModel.Package.current; | |
var installedLocation = package.installedLocation; | |
installedLocation.createFileAsync(fileNameInLocalTree, Windows.Storage.CreationCollisionOption.openIfExists).then(function (dataFile) { | |
dataFile.openAsync(Windows.Storage.FileAccessMode.read).then(function (stream) { | |
var size = stream.size; | |
if (size == 0) { |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
getProminent = (limit = 25, minPixelCount = 50000) -> | |
imageEls = document.getElementsByTagName 'img' | |
matches = [] | |
sortCollection = (collection, key) -> | |
collection.sort (a, b) -> | |
b[key] - a[key] | |
isInCollection = (collection, key, value) -> | |
collection.some (model) -> |
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
gnb() { | |
git checkout -b $1; | |
git branch --set-upstream-to remotes/origin/master; | |
git status; | |
git branch; | |
} |
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
for (( ; ; )) do open /Applications/Google\ Drive.app;sleep 30;killall 'Google Drive'; sleep 5; done |
OlderNewer