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.
| // How to use this: | |
| // 1. Go to the desired profile page on coderwall, like http://coderwall.com/marcinbunsch | |
| // 2. Paste this gist in the JS console | |
| // | |
| // You can also probably use this in greasemonkey and dot.js | |
| // | |
| // Also, it was tested in Chrome, Firefox and Safari, it probably will | |
| // not work in IE, but I just don't care about it ;) | |
| // | |
| // UPDATE: Coderwall made changes to the site and I cannot retrieve the achievements, so they are hardcoded, taken from a cached version of the achievements page |
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.
| # ~/.gitconfig from @boblet | |
| # initially based on http://rails.wincent.com/wiki/Git_quickstart | |
| [core] | |
| excludesfile = /Users/oli/.gitignore | |
| legacyheaders = false # >git 1.5 | |
| quotepath = false | |
| # http://stackoverflow.com/questions/136178/git-diff-handling-long-lines | |
| pager = less -r | |
| # if ↑ doesn’t work, try: pager = less -+$LESS -FRX |
| TM_GIT = "/usr/local/bin/git" | |
| windowTitle = '$TM_FILEPATH' | |
| fontName = "Anonymous Pro" | |
| fontSize = 14 | |
| # Extra files to include | |
| myExtraIncludes = ".tm_properties,.htaccess,.gitignore" | |
| fileBrowserGlob = "{*,$myExtraIncludes}" |
| bootstrap-tooltip.js | |
| bootstrap-popover.js | |
| bootstrap-alert.js | |
| bootstrap-button.js | |
| bootstrap-carousel.js | |
| bootstrap-collapse.js | |
| bootstrap-dropdown.js | |
| bootstrap-modal.js | |
| bootstrap-scrollspy.js | |
| bootstrap-tab.js |
| DO WTF YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Alexey Silin <[email protected]> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WTF YOU WANT TO PUBLIC LICENSE |
| // ABOUT | |
| A simple LESS (http://lesscss.org) snippet based on http://snook.ca/archives/html_and_css/font-size-with-rem | |
| It doesn't do much but saves you typing things twice, allowing you to use rem as a unit for font-sizes | |
| and giving a px fallback for IE | |
| // MIXIN | |
| .font-size(@font-size: 16){ | |
| @rem: (@font-size / 10); | |
| font-size: @font-size * 1px; | |
| font-size: ~"@{rem}rem"; |
| <!-- | |
| Ant target for autogenerating a changelog based on Git tags | |
| Workflow: | |
| 1. Do all of your checkins for a given version. | |
| 2. When you're ready to officially create a new version, tag it using git tag, such as "git tag v0.3.0". | |
| 3. If you don't already have a file named CHANGELOG in the root directory, make one. | |
| 4. Run "ant changelog.update" |
Looking at the ES5 compatibility table, several browsers provide everything often used (i. e. not Object.freeze() and friends) except Function.prototype.bind. So I just inline that. Browsers that don't provide other functions also don't include Object.getOwnPropertyNames, so I used it as my test for including the entire shim.
Note that I haven't tested it yet, and it doesn't work for the six Object functions next to each other in the Safari 5 part of the compatibility chart (Safari 5 is deemed good enough).
Update: I added JSON for IE <= 7. JSON is used in a good number of node.js modules.