I hereby claim:
- I am colinodell on github.
- I am colinodell (https://keybase.io/colinodell) on keybase.
- I have a public key whose fingerprint is 8FBC 987A 0483 128A C055 E483 60A4 DAD2 72A0 1CB8
To claim this, I am signing this object:
| # Don't include any temporary files and other unimportant things | |
| *.log | |
| *.bak | |
| *.bak.* | |
| *.thumbs/ | |
| .DS_Store | |
| Thumbs.db | |
| .svn | |
| *.swp |
| <?php | |
| $last = ''; | |
| while (true) { | |
| $json = file_get_contents('https://www.reddit.com/r/google/comments/2k0kjr/google_inbox_invite_chain.json?sort=new&foo='.rand(1,500)); | |
| $json = json_decode($json, true); | |
| $comment = $json[1]['data']['children'][0]; | |
| $msg = $comment['data']['author'] . ' - ' . $comment['data']['body'] . "\n"; | |
| if ($msg != $last) { |
I hereby claim:
To claim this, I am signing this object:
| // Super-simple console script to push the button only when the timer gets low | |
| var h; | |
| var armed = false; | |
| var lowestSoFar = 9999999999; | |
| h = setInterval(function() { | |
| if (r.thebutton._msLeft <= 0) { | |
| console.log('Game over :-/'); | |
| clearInterval(h); | |
| return; |
| // Returns a function that won't fire more than | |
| // once every `wait` milliseconds. | |
| // | |
| // Example usage: | |
| // | |
| // $('.button').click(rateLimit(function(){ | |
| // console.log('clicked!'); | |
| // })); | |
| // | |
| function rateLimit(func, wait) { |
| <?php | |
| /** | |
| * Base class used to build enums | |
| */ | |
| abstract class AbstractEnum | |
| { | |
| /** | |
| * @var array Options array, suitable for a select box | |
| */ |
| #!/bin/bash | |
| # A sample script for batch-creating multiple patches at once | |
| # Generate 6.x patches | |
| for i in `seq 0 36` | |
| do | |
| ./create-patch.sh 6.$i 6.37 | |
| done | |
| # Generate 7.x patches |
| services: | |
| guzzle.client: | |
| class: Guzzle\Http\Client | |
| calls: | |
| - [addSubscriber, ["@guzzle.logger"]] | |
| guzzle.logger: | |
| class: Guzzle\Log\MonologLogAdapter | |
| arguments: | |
| - "@logger" |
| <?php | |
| /* | |
| * Note: This script will directly modify the .php files in the given directory. | |
| * It is assumed that the code is under version control, so you can easily review | |
| * the changes using `git diff` or similar. | |
| */ | |
| function usageError() { | |
| die("Usage: php portVarKeywords.php dir/\n"); |
| <?php | |
| // TODO: Set your "namespace" and "use" statements here | |
| // Also see this documentation: http://commonmark.thephpleague.com/customization/abstract-syntax-tree/#document-processor | |
| class ParagraphDirProcessor implements DocumentProcessorInterface | |
| { | |
| public function processDocument(Document $document) | |
| { | |
| $walker = $document->walker(); |