Install R
https://cran.r-project.org/bin/
Setup
chmod a+x plot.R
Install R
https://cran.r-project.org/bin/
Setup
chmod a+x plot.R
var assert = require('assert'); | |
global.KEYS = JSON.parse(require('fs').readFileSync('bindings.json','utf8')); | |
global.RESULT = false; | |
global.CHARAT = function (key) { | |
var l = key.length; | |
return l > 7 && | |
key.charAt(l - 7) === 'B' && | |
key.charAt(l - 6) === 'i' && | |
key.charAt(l - 5) === 'n' && |
From a terminal run the following commands:
git clone git@github.com:emberjs/ember.js
cd ember.js
npm install
npm start
While that is running open another terminal and run the following (starting from the ember.js
folder you cloned a moment ago):
This requires `brew install jq` which is a command json query. | |
I got this from @krisselden |
function createQueue() { | |
let queue = []; | |
let i = 0; | |
let len = 0; | |
return [ | |
(fn) => (queue[len++] = fn), | |
() => { | |
try { | |
for (; i < len; i++) { | |
const fn = queue[i]; |
.highlight { background-color: #ffffcc } | |
.highlight .c { color: #586E75 } /* Comment */ | |
.highlight .err { color: #93A1A1 } /* Error */ | |
.highlight .g { color: #93A1A1 } /* Generic */ | |
.highlight .k { color: #859900 } /* Keyword */ | |
.highlight .l { color: #93A1A1 } /* Literal */ | |
.highlight .n { color: #93A1A1 } /* Name */ | |
.highlight .o { color: #859900 } /* Operator */ | |
.highlight .x { color: #CB4B16 } /* Other */ | |
.highlight .p { color: #93A1A1 } /* Punctuation */ |
# In config/initializers/local_override.rb: | |
require 'devise/strategies/authenticatable' | |
module Devise | |
module Strategies | |
class LocalOverride < Authenticatable | |
def valid? | |
true | |
end |
import Ember from 'ember'; | |
import { module } from 'qunit'; | |
import startApp from 'livin/tests/helpers/start-app'; | |
import OnboardPage from 'livin/tests/helpers/page-objects/onboard'; | |
import { test } from 'qunit'; | |
const { run } = Ember; | |
let application; | |
module('Acceptance | onboard', { |
var system = require('system'); | |
if (system.args.length < 5) { | |
console.info("You need to pass in account name, username, password, and path to casperJS as arguments to this code."); | |
phantom.exit(); | |
} | |
var account = system.args[1]; | |
var username = system.args[2]; | |
var password = system.args[3]; |
# Simple, scrappy UDP DNS server in Ruby (with protocol annotations) | |
# By Peter Cooper | |
# | |
# MIT license | |
# | |
# * Not advised to use in your production environment! ;-) | |
# * Requires Ruby 1.9 | |
# * Supports A and CNAME records | |
# * See http://www.ietf.org/rfc/rfc1035.txt for protocol guidance | |
# * All records get the same TTL |