Convenience function for performing a groupBy on a list then a sortBy on the resulting groups using Underscore methods.
sortedGroupBy(list, groupByIterator, sortByIterator)
| require 'json' | |
| # JSON parser tag, creating map for use in jekyll markdown | |
| # Alex.Heneveld @ Cloudsoft Corp (remove spaces and add the .com) | |
| # Released under APL 2.0 | |
| # usage: {% jsonball varname from TYPE PARAM %} | |
| # | |
| # where TYPE is one of {data,var,file,page}, described below |
| // This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref | |
| <?php | |
| /** | |
| * WordPress Query Comprehensive Reference | |
| * Compiled by luetkemj - luetkemj.github.io | |
| * | |
| * CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
| * Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php | |
| */ |
| # Is there a coffeescript way of doing this? | |
| (function($, exports){ | |
| # doing random stuff here | |
| })(jQuery, window); | |
| # Other than this: | |
| ( ($, exports) -> | |
| # doing random stuff here |
Convenience function for performing a groupBy on a list then a sortBy on the resulting groups using Underscore methods.
sortedGroupBy(list, groupByIterator, sortByIterator)
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| // requestAnimationFrame polyfill by @rma4ok | |
| !function (window) { | |
| var | |
| equestAnimationFrame = 'equestAnimationFrame', | |
| requestAnimationFrame = 'r' + equestAnimationFrame, | |
| ancelAnimationFrame = 'ancelAnimationFrame', | |
| cancelAnimationFrame = 'c' + ancelAnimationFrame, | |
| expectedTime = 0, |
Jekyll is a great CMS for developers and GitHub Pages is a great host to store your Jekyll sites. There is just one problem, GitHub runs Jekyll in safe mode, which means you can't use plugins. One thing you can do is building the Jekyll website locally and then push to GitHub.
Alexandre Rademaker found a solution to do this easially, which is quite usefull: "GitHub Pages and Jekyll plugins" After reading this I thought, that can be done easier!
Git provides a way to have aliases of bash commands. You can do this by adding items to the alias key of your configuration. For this, you can add this locally by adding this lines to your %PROJECT_ROOT%/.git/config file:
| wget --no-check-certificate --content-disposition https://github.com/joyent/node/tarball/v0.7.1 | |
| # --no-check-cerftificate was necessary for me to have wget not puke about https | |
| curl -LJO https://github.com/joyent/node/tarball/v0.7.1 |