I hereby claim:
- I am juukie on github.
- I am juukie (https://keybase.io/juukie) on keybase.
- I have a public key whose fingerprint is C7EF 5740 EA57 DCCD BB9A 859E 6A6F AD7A 5ED4 90A4
To claim this, I am signing this object:
| // Add takeAtLeast method to Promise | |
| /* eslint no-unused-vars: 0 */ | |
| Promise.prototype.takeAtLeast = function (time) { | |
| return new Promise((resolve, reject) => { | |
| const limiter = new Promise((resolve, reject) => { | |
| setTimeout(resolve, time); | |
| }) | |
| Promise.all([this, limiter]).then(([response, _]) => { | |
| resolve(response) |
I hereby claim:
To claim this, I am signing this object:
Place me.mailcatcher.plist into ~/Library/LaunchAgents, then run launchctl load ~/Library/LaunchAgents/me.mailcatcher.plist.
If you use pow, echo 1080 > ~/.pow/mailcatcher and go to http://mailcatcher.dev, otherwise use http://localhost:1080.
Currently pow doesn't seem to pass websockets through correctly. Looking into this.
Install MailCatcher (https://rubygems.org/gems/mailcatcher/versions/0.5.12)
brew install ruby
sudo gem install mailcatcher
Then set it a daemon: https://gist.github.com/sj26/1638617
To setup PHP: edit php.ini (on OSX brew, /usr/local/etc/php/5.5/conf.d/mailcatcher.ini and paste the following configuration:
sendmail_path = /usr/bin/env catchmail -f catcher@mailcatcher.me
| var array = [{},{},{}]; | |
| var copy = _.map(array, _.clone); |
| <?xml version='1.0'?> | |
| <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | |
| <fontconfig> | |
| <match target="font"> | |
| <edit mode="assign" name="rgba"> | |
| <const>rgb</const> | |
| </edit> | |
| </match> | |
| <match target="font"> | |
| <edit mode="assign" name="hinting"> |
| /* Place this after bootstrap.scss */ | |
| $screen-xl: 1560px !default; | |
| $screen-xl-min: $screen-xl !default; | |
| $screen-xl-desktop: $screen-xl-min !default; | |
| $screen-lg-max: ($screen-xl-min - 1) !default; | |
| $container-xlarge-desktop: (1530px + $grid-gutter-width) !default; | |
| $container-xl: $container-xlarge-desktop !default; | |
| .container { |
| {{-- Define all our servers --}} | |
| @servers(['staging' => '', 'production' => '']) | |
| @setup | |
| {{-- The timezone your servers run in --}} | |
| $timezone = 'Europe/Amsterdam'; | |
| {{-- The base path where your deployments are sitting --}} | |
| $path = '/var/www/site.com/htdocs'; |
| // Block Grid | |
| // Technique adapted from Foundation 5 for Bootstrap 3. | |
| // https://github.com/zurb/foundation/blob/f755d8704123f86c281ede0b171881e2672f150d/scss/foundation/components/_block-grid.scss | |
| // Original LESS Version by Christopher Mitchell (https://gist.github.com/ChrisTM) | |
| // Converted to SCSS by Rasmus Jürs (https://github.com/Jursdotme) | |
| // https://gist.github.com/Jursdotme/67abe379d4a357233d3c | |
| // https://gist.github.com/juukie/bcd1ef59ba6dd62ce968#file-block-grid-sass | |
| [class*="block-grid-"] |
| <?php | |
| if ( ! function_exists('format_filesize')) | |
| { | |
| /** | |
| * Formats a filesize in a human readable way. | |
| * | |
| * @param int $size | |
| * @param array $sizes | |
| * @return string |