Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| #!/usr/bin/env python | |
| """ | |
| Check that a particular email address exists. | |
| Adam Blinkinsop <blinks@acm.org> | |
| WARNING: | |
| Checking email addresses in this way is not recommended, and will lead to | |
| your site being listed in RBLs as a source of abusive traffic. Mail server | |
| admins do like it when they get connections that don't result in email being | |
| sent, because spammers often use this technique to verify email addresses. |
| <script type="text/javascript"> | |
| $(function() { | |
| $("#checkSpelling").click(function(event) { | |
| var text = $("#query").val(); | |
| var encodedText = escape(text); | |
| var spellService = "http://api.bing.net/json.aspx?AppId=APIKey&Query=" + encodedText + "&Sources=Spell&Version=2.0&Market=en-us&Options=EnableHighlighting&JsonType=callback&JsonCallback=SearchCompleted"; | |
| $.getScript(spellService); |
| #Config is there http://github.com/spyou/vim-config | |
| #Give a go to vimtutor in order to have a little overview of Vim. | |
| "open/save" | |
| #:w (save) | |
| #:q (quit) | |
| #:qa (quit all buffers) | |
| #:q! (quit without saving) | |
| #:wq (save and quit) |
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "log" | |
| "net/http" | |
| "os" | |
| ) |
| <?php | |
| /** | |
| * This is an example of a practical encoder and decoder for base-62 data in PHP | |
| * It differs from the majority of examples in that it's fast enough for moderate data sizes, unlike multiprecision converters | |
| * To be practical, base-62 encoding needs to use internal chunking and padding because base-62 does not fit exactly into any integral number of bits | |
| * This means the output is not quite compatible with multiprecision conversions, | |
| * but the encoded data retains all the desirable properties of base-62, so (unlike any base-64 encoding) it's URL, DNS, email address and pathname safe | |
| * @author Marcus Bointon <marcus@synchromedia.co.uk> | |
| * @copyright 2011 Marcus Bointon | |
| * @license http://www.opensource.org/licenses/mit-license.html MIT License |
| ############################################# | |
| # Push de la rama actual | |
| git push origin $rama_actual | |
| ############################################# | |
| # Volver a un commit anterior, descartando los cambios | |
| git reset --HARD $SHA1 | |
| ############################################# | |
| # Ver y descargar Ramas remotas |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | |
| 0. You just DO WHAT THE FUCK YOU WANT TO. |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
I have always struggled with getting all the various share buttons from Facebook, Twitter, Google Plus, Pinterest, etc to align correctly and to not look like a tacky explosion of buttons. Seeing a number of sites rolling their own share buttons with counts, for example The Next Web I decided to look into the various APIs on how to simply return the share count.
If you want to roll up all of these into a single jQuery plugin check out Sharrre
Many of these API calls and methods are undocumented, so anticipate that they will change in the future. Also, if you are planning on rolling these out across a site I would recommend creating a simple endpoint that periodically caches results from all of the APIs so that you are not overloading the services will requests.
| function parseArguments() | |
| { | |
| array_shift($argv); | |
| $out = array(); | |
| foreach($argv as $arg) | |
| { | |
| if(substr($arg, 0, 2) == '--') | |
| { | |
| $eqPos = strpos($arg, '='); | |
| if($eqPos === false) |