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
#!/usr/bin/env awk -f | |
# CCZE alternative (https://github.com/cornet/ccze) | |
BEGIN { | |
RED="\033[0;31m" | |
YELLOW="\033[0;33m" | |
GREEN="\033[0;32m" | |
BLUE="\033[0;34m" | |
LIGHT_RED="\033[1;31m" | |
LIGHT_GREEN="\033[1;32m" |
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
diff --git a/dev_appserver.py b/dev_appserver.py | |
index 0276d25..ed1e519 100755 | |
--- a/dev_appserver.py | |
+++ b/dev_appserver.py | |
@@ -23,7 +23,7 @@ | |
import os | |
import re | |
import sys | |
- | |
+import google |
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
// quite same what _.debounce does http://underscorejs.org/#debounce | |
function self_delay(delay, just_run){ | |
delay = delay || 3000; | |
clearTimeout(self_delay.sheduled); | |
if (!just_run){ | |
self_delay.sheduled = setTimeout(self_delay, delay, 0, true); | |
return; | |
} |
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
{% ifequal today eachData.modification_timestamp.date %} | |
{{ eachData.modification_timestamp|date:"P" }} | |
{% else %} | |
{{ eachData.modification_timestamp|date:"jS F P" }} | |
{% endifequal %} |
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
hexdump -v -e '"%_c"' FILE_PATH | gsed -e 's/\\n/\\n\n/g' |
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
var ONE_S = 1000, | |
ONE_M = 60*ONE_S, | |
ONE_H = 60*ONE_M, | |
RUN_EVERY = 5*ONE_M, | |
SLEEP_TIME = 30*ONE_M, | |
CHECK_URL = 'http://www.SITE.com', | |
NOTIFY_MAIL = '[email protected]', | |
NOTIFY_CALENDAR = '[email protected]'; |
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
$.fn.persistantPopover = function() { | |
var popoverTimeout; | |
function delay() { | |
popoverTimeout = setTimeout(function() { | |
$('.popover').hide(); | |
}, 100); | |
} | |
return this.each(function() { |
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
import timeit | |
try: | |
timeit.timeit | |
except AttributeError: | |
# adding "Convenience function..." from py >= 2.7 | |
timeit.timeit = lambda stmt="pass", setup="pass", timer=timeit.default_timer, number=timeit.default_number: \ | |
timeit.Timer(stmt, setup, timer).timeit(number) |
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
[{N, rpc:call(N, os, cmd, ['date'])} || N <- nodes()]. |
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
⌘ | |
⌥ | |
⇧ | |
⇪ | |
⎋ | |
⇥ | |
⏎ | |
↩ | |
⌫ | |
⌦ |