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
Spaces = ```Fn + F8``` | |
Screenshots | |
----------- | |
* the whole screen, press ```⌘-⇧-3``` | |
* part of the screen, press ```⌘-⇧-4``` and select the area you want | |
* to the Clipboard instead of saving as a file press: | |
* ```^-⌘-⇧-3``` to copy the entire screen | |
* ```^-⌘-⇧-4``` to copy the selected area | |
* for curent window, press ```⌘-⇧-4``` then ```Spacebar``` |
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/python3 | |
""" | |
>>> some_unicode = u'èṽèṙẏbody ♥ utf8' | |
>>> | |
>>> some_unicode.encode('ascii', errors='replace') | |
b'?????body ? utf8' | |
>>> | |
>>> import unicodedata | |
>>> unicodedata.normalize('NFKD', some_unicode).encode( |
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 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
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
$.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
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
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
{% ifequal today eachData.modification_timestamp.date %} | |
{{ eachData.modification_timestamp|date:"P" }} | |
{% else %} | |
{{ eachData.modification_timestamp|date:"jS F P" }} | |
{% endifequal %} |