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
#python, #elegant, #example | |
def fib(n): | |
" Generate fib sequence up to n " | |
a, b = 0, 1 | |
while (b < n): | |
print b | |
a, b = b, a + b |
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
function simulatedClick(target, options) { | |
var event = target.ownerDocument.createEvent('MouseEvents'), | |
options = options || {}; | |
//Set your default options to the right of || | |
var opts = { | |
type: options.click || 'click', | |
canBubble:options.canBubble || true, | |
cancelable:options.cancelable || true, |
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
sudo dpkg-reconfigure tzdata |
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
rm(list=ls()) |
NewerOlder