Skip to content

Instantly share code, notes, and snippets.

View basz's full-sized avatar

Bas Kamer basz

View GitHub Profile
@patricklx
patricklx / computed-chain.js
Last active October 11, 2017 18:46
A computed property that chains all given computed properties
/**
A computed property that chains all given computed properties
Example
```javascript
Ember.computed.chain('content', [
[Ember.computed.mapBy, 'key'],
[Ember.computed.filter, callback], //e.g. remove undefined/null
[Ember.computed.sum],
[customComputed]
@tonymtz
tonymtz / gist:d75101d9bdf764c890ef
Last active July 26, 2024 20:17
Uninstall nodejs from OSX Yosemite
# first:
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.*
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following:
# go to /usr/local/lib and delete any node and node_modules
cd /usr/local/lib
sudo rm -rf node*
<?php
return array(
'SpeckMultisite' => array(
'Session' => array(
'domainMap' => array(
'groups' => array(
'jj' => array(
'master' => 'rattletrap-juffrouwjansen-hoofddorp.nl',
)
@joelambert
joelambert / README
Created June 1, 2011 11:03
Drop in replacements for setTimeout()/setInterval() that makes use of requestAnimationFrame() where possible for better performance
Drop in replace functions for setTimeout() & setInterval() that
make use of requestAnimationFrame() for performance where available
http://www.joelambert.co.uk
Copyright 2011, Joe Lambert.
Free to use under the MIT license.
http://www.opensource.org/licenses/mit-license.php