Start Terminal.app and type:
sudo nvram boot-args="kext-dev-mode=1"
Verify that command works by typing:
sudo nvram -p | grep -i boot-args
/* Courtesy of MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors */ | |
div[attr] { /* "has attr" - element contains 'attr' attribute, value does not matter. */ } | |
div[attr=value] { /* "exactly" - attr is exactly value. */ } | |
div[attr~=value] { /* "contains" - attr is a whitespace-separated list of words, one of which is "value". */ } | |
div[attr|=value] { /* "exactly or begins with `value-` - attr can be exactly "value", or it can _begin_ with "value" immediately followed by “-” (U+002D). */ } | |
div[attr^=value] { /* "starts with" - attr's _first_ value is prefixed by "value". */ } | |
div[attr$=value] { /* "ends with" - attr's _last_ value is suffixed by "value". */ } | |
div[attr*=value] { /* "contains" - attr contains at least one occurrence of "value" as a substring. */ } | |
div[attr(~|^$*)=value i] { /* "case-insensitive <query>" - applies a case-insensitive search on the query (any of the above examples will work, just end the selector with 'i' */ } |
var getStorageSize = function() { | |
return Object.keys(window.localStorage).map(function(key) { | |
return window.localStorage.getItem(key).length; | |
}).reduce(function(prev, curr) { | |
return prev + curr; | |
}); | |
}; |
# EditorConfig is awesome: http://EditorConfig.org | |
# top-most EditorConfig file | |
root = true | |
[*.{js,less}] | |
indent_style = space | |
indent_size = 2 | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
var React = require('react'); | |
var {Table} = require('fixed-data-table'); | |
var _ = require('lodash'); | |
var FittedTable = React.createClass({ | |
getInitialState() { | |
return { | |
tableWidth : 400, | |
tableHeight : 400 | |
}; |
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
// author: Pawel Kozlowski | |
var myApp = angular.module('myApp', []); | |
//service style, probably the simplest one | |
myApp.service('helloWorldFromService', function() { | |
this.sayHello = function() { | |
return "Hello, World!" |
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |