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"> |
// 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-"] |
// app/lang/en/global.php | |
return array( | |
'apples' => '{0} Zero apples|one: Single apple|more: :count apples', | |
'beers' => '{0} Drama|Single beer|more: Cheers', | |
'soup' => '[-Inf,0] No soup|{1,2,5} One, two or five soups|[3,Inf] The amount of soup is :count', | |
); |
{{-- 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'; |
<?php | |
if ( ! function_exists('format_filesize')) | |
{ | |
/** | |
* Formats a filesize in a human readable way. | |
* | |
* @param int $size | |
* @param array $sizes | |
* @return string |