Drop your code and go
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 python | |
| """ | |
| Search downpour.com and emusic.com for DRM-free audiobooks | |
| Usage:: | |
| ./find_audiobooks.py <title>... | |
| File released to the public domain under CC0 license: | |
| http://creativecommons.org/publicdomain/zero/1.0/deed |
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 some_variable = some_function(an_argument, | |
| another_argument); | |
| var soome_variable = some_function( | |
| an_argument, | |
| another_argument | |
| ); |
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
| def change_variable(x): | |
| x = 100 | |
| a = 3 | |
| print(a) | |
| change_variable(a) | |
| print(a) | |
| b = [1, 2] |
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
| >>> inputs = {'a': 1, 'b': 2} | |
| >>> def my_func(**kwargs): | |
| ... kwargs.update({'a': 3, 'c': 4}) | |
| ... | |
| >>> my_func(**inputs) | |
| >>> inputs | |
| {'a': 1, 'b': 2} |
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
| ### Keybase proof | |
| I hereby claim: | |
| * I am treyhunner on github. | |
| * I am treyhunner (https://keybase.io/treyhunner) on keybase. | |
| * I have a public key whose fingerprint is 169A BEE4 05D0 E198 27FA 2F2F EA67 7E9F CDAD EA27 | |
| To claim this, I am signing this object: |
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
| /** | |
| * Simple folded corners | |
| */ | |
| div { | |
| background: yellowgreen; /* fallback */ | |
| background: linear-gradient(45deg, rgba(0,0,0,.4) 50%, transparent 0) 100% 0 / 25px 25px no-repeat, | |
| linear-gradient(-135deg, transparent 18px, yellowgreen 0) 0 / auto; /* ceil(25/sqrt(2)) = 18 */ | |
| padding: 1em; |
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 something = goGetSomething(); | |
| var anotherThing = goGetAnotherThing(); | |
| Promise.all([ | |
| something, | |
| anotherThing | |
| ]).then(function() { | |
| return doAnotherThing(); | |
| }).then(function() { | |
| return lastThing(); |
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
| #!/bin/sh | |
| # Ubuntu-specific modification of http://wiki.dropbox.com/TipsAndTricks/ShareScreenshots | |
| # Change these | |
| DB_USER_ID=YOURDBUSERID | |
| BITLY_USERNAME=YOURBITLYUSERNAME | |
| BITLY_API_KEY=YOURBITLYKEYHERE | |
| DROPBOX_PUBLIC_DIR=~/Dropbox/Public | |
| SCREENSHOT_DIR=screenshots |
OlderNewer