Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| /** | |
| * This project's actual gulpfile contains much more than this, | |
| * but these are the relevant bits. | |
| */ | |
| // Node libraries | |
| var fs = require('fs'); | |
| var path = require('path'); | |
| // Gulp + plugins |
| // Minimal FRP Behaviors and Events. | |
| // An event function is any function of shape `function (next) { ... }` where | |
| // `next(value)` is a callback to be called by event function. Transformations | |
| // of event are accomplished by wrapping event with another event function, | |
| // and consuming original event within (CPS). | |
| // A behavior is any function of shape `function (time) { ... }`, where | |
| // `time` is current time. Behaviors may capture state, return value from time, | |
| // or be constant. Behaviors must always return a value, but value may |
| #! /usr/bin/env bash | |
| ### | |
| # | |
| # install_mysql.sh | |
| # | |
| # This script assumes your Vagrantfile has been configured to map the root of | |
| # your application to /vagrant and that your web root is the "public" folder | |
| # (Laravel standard). Standard and error output is sent to | |
| # /vagrant/vm_build.log during provisioning. |
| mkdir /srv/git | |
| adduser myuser www-data | |
| git init --bare --shared=group /srv/git/app.git | |
| mkdir /var/www/app | |
| chown -R www-data:www-data /srv/git/app.git /var/www/app | |
| chmod -R g+rw /srv/git/app.git /var/www/app | |
| vim /srv/git/app.git/hooks/post-receive | |
| #!/bin/sh | |
| export GIT_WORK_TREE=/var/www/app |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
# Terminal
$ cd /path/to/ghc/ # replace by the right directory
$ ./configure
if you see this error:
| /** | |
| * jQuery randomLoop | |
| * @usage | |
| * $('#container').randomLoop({ | |
| * selector: '.box', | |
| * delay: 500, | |
| * fade: true, | |
| * speed: 'fast' | |
| * }); | |
| */ |
| /** | |
| * jQuery throttle / debounce - v1.1 - 3/7/2010 | |
| * http://benalman.com/projects/jquery-throttle-debounce-plugin/ | |
| * | |
| * Copyright (c) 2010 "Cowboy" Ben Alman | |
| * Dual licensed under the MIT and GPL licenses. | |
| * http://benalman.com/about/license/ | |
| */ | |
| (function(b,c){var $=b.jQuery||b.Cowboy||(b.Cowboy={}),a;$.throttle=a=function(e,f,j,i){var h,d=0;if(typeof f!=="boolean"){i=j;j=f;f=c}function g(){var o=this,m=+new Date()-d,n=arguments;function l(){d=+new Date();j.apply(o,n)}function k(){h=c}if(i&&!h){l()}h&&clearTimeout(h);if(i===c&&m>e){l()}else{if(f!==true){h=setTimeout(i?k:l,i===c?e-m:e)}}}if($.guid){g.guid=j.guid=j.guid||$.guid++}return g};$.debounce=function(d,e,f){return f===c?a(d,e,false):a(d,f,e!==false)}})(this); |