4 rounds mean (from 100 iters): 0.00127s per call (~784.45 hashes/s)
5 rounds mean (from 100 iters): 0.00236s per call (~423.79 hashes/s)
6 rounds mean (from 100 iters): 0.00454s per call (~220.03 hashes/s)
7 rounds mean (from 100 iters): 0.01016s per call (~98.45 hashes/s)
8 rounds mean (from 100 iters): 0.01793s per call (~55.78 hashes/s)
9 rounds mean (from 100 iters): 0.03526s per call (~28.36 hashes/s)
10 rounds mean (from 71 iters): 0.07035s per call (~14.22 hashes/s)
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
/usr/bin/base64 -D <<< QlpoOTFBWSZTWQ/xuxkABPf7AAASAAhAAH/oAAgAAmAJ3vCRX0SAFZ48qlX2wvnx6PO7Txamhqn4mRKoAGnoSEqnomBKbUIigAQlESRoAQopqjQY0EKgTSgCATsBOgE2FEEKWmkKaImlAoREqqCgKBpKBKSkShKAKaQpqkKQKClBKQRCmgoBoUSgBE2y0gA0qhSClAiDgABB9+CodoJ+C+ppOiYackrJygxwaYlFpSgyz+KNj/tE3Mu/tRGRQGFWRRYUJQeMVUCtFIvZClNAUDvbBTUhMMcAoqhpqK1zGaUoEpEWgBDYoKEp5bK7QkyTFFURo0u/eQeKCAB6pAkrCvx4TUQJvmBFPEDkBQwSFIo0iUjJDVEoCEDS1KwNKsSQFCKqENCUzSEQFIpRMxVK1FUTIFRKUQ1JQrtf1EoOwoVS5moDKiCcxnkcyAegACDBxV/h3EUbGpiV+bCKdkI+cA8jp2EmnrR0A7Aij5AGkPM6t0PLY498uxwjsPOYXETE8/IjSDQAEowIAg9OoV2TTMKVmInFWD1NxppSgEpChaQCgKCgKRUoUqqClooCSqIkqNYxsGXLmgiqJGiqSmgX6QQxWt/tolbY0LEDSsCp9SHNg71FF6vIqIDbVUJAadA7agzVtpCEqjWQPutaADMAGiAwKnQJuAACDzW4+Shcz2cMRrKOkNK+KCP320kaBWU5AFJAgipwAAQYFR7QREHpBOGy3AwpIlc9f+FdkolWwBtD7KVuki/LcX5X1C9+ei638Jd6NFaZT3mV5yMGIFONc2xoTboqLIZDQ88lXNbJx7lKeKLopFpCmPxHYgTCor2OxCVPUH0xXPXiOh96RAjZjGNAlNDT9CWlCmaxowKGD2Pu7Hva62y+nYfbILiAhqomo/sh2qZQggjTsQ4+LJqz2Z7N1cgqRVbz2h1od73c27J4eAFOrYt5pOGXX8SI4kUQWUquTO1qCh7XijbLeaFaHpol3faXzAyu6oMJPwZRC |
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
#!/usr/bin/env python | |
import sys | |
import simplejson | |
while True: | |
line = sys.stdin.readline() | |
if not line: | |
break |
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
a | b | c | e | ||
---|---|---|---|---|---|
a | c | e | |||
c | e | ||||
e |
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
tell application "Google Chrome" | |
set win to make new window with properties {mode:"incognito"} | |
activate | |
tell application "System Events" to keystroke "f" using {command down, shift down} | |
tell win | |
set URL of active tab to "http://cl.ly/0t1J3d0c1o3i" | |
end tell | |
end tell |
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
#!/usr/bin/env php | |
<?php | |
define('DEBUG', false); | |
class Logger | |
{ | |
private $fp; | |
public function __construct($fp) { | |
$this->fp = $fp; |
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 | |
frames=( "(╮°-°)╮ ┳━┳" "(╯°o°)╮ ┳━┳" "(╯°o°)╯ ︵ ╡" "(╯°o°)╯ ︵┻━┻" "(╮°□°)╮ ┻━┻" ); | |
for frame in "${frames[@]}"; do | |
printf "%s\033[0K\r" "${frame}"; | |
sleep 0.5; | |
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
def notify_delegates(method): | |
"""Decorator to call delegate methods. When decorating a method it will | |
call `onBeforeMethodName` and `onAfterMethodName` (uppercasing the first | |
letter of the method name). | |
Delegate methods are called before and after the actual method is called. | |
On the after method the return value from the method is passed in as the | |
`ret_value` keyword arg.""" | |
# Figure out delegate method names. |
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
from dateutil.relativedelta import relativedelta | |
import unittest | |
class Test_relativedelta(unittest.TestCase): | |
def test___lt__(self): | |
# For all fields test that a relative delta with only a single field | |
# set behaves as expected. | |
self.assertLess(relativedelta(years=1990), relativedelta(years=2012)) | |
self.assertLess(relativedelta(months=1), relativedelta(months=12)) |
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
from delegates import DelegateProviderMixin, notify_delegates | |
class Something(DelegateProviderMixin): | |
@notify_delegates | |
def do_something(self): | |
print 'do_something' | |
def do_something_else(self): | |
print 'do_something_else' |
OlderNewer