View .fonts.conf
1 2 3 4 5 6 7 8 9 10
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 
<!--
Documented at
http://linux.die.net/man/5/fonts-conf
To check font mapping run the command at terminal
$ fc-match 'helvetica Neue'
View CachedZendesk.js
1 2 3 4 5 6 7 8 9 10
var zendesk = require('node-zendesk'),
redis = require('redis').createClient(),
util = require('util'),
qs = require('querystring'),
_ = require('underscore');
 
config = require('./config');
redis.select(config.redis.zendesk.index);
 
function createKey(args, everything, uri) {
View introrx.md

The introduction to Reactive Programming you've been missing

(by @andrestaltz)

So you're curious in learning this new thing called Reactive Programming, particularly its variant comprising of Rx, Bacon.js, RAC, and others.

Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:

Rx.Observable.prototype.flatMapLatest(selector, [thisArg])

Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.

View mongoose-encrypted-schematype-field.md

Encrypting text fields in Mongoose is easy using Node's built-in crypto module. You might want to do this if you're using MongoDB as a service (see the recent MongoHQ security breach); or, if you're storing OAuth tokens that could, in the wrong hands, screw with somebody's account on a 3rd party service. (Of course, you should never encrypt passwords: those should be hashed.)

Imagine you have a Mongoose model like that shown below, which is modified only slighly from the example on the MongooseJS homepage.

var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/test');

var User = mongoose.model('User', {
  name: String,
View gist:ba785487b635ade67701
1 2 3 4 5 6 7 8 9 10
# These instructions work for OS X 10.6 with homebrew pre-installed.
 
brew install python --framework
brew install gcc
# install other dependencies through pip:
 
pip install numpy
 
# the regular pip build for matplotlib is b0rken, and it can't find the built-in libraries for OSX
export LDFLAGS="-L/usr/X11/lib"
View agent.nut
1 2 3 4 5 6 7 8 9
// Run on Agent
 
// Thresholds to adjust for better accuracy
dataThreshold <- 300; // Minimum accelerometer value to count as ON
onThreshold <- 24; // Number of ON samples before machine enters RUNNING state
offThreshold <- 60; // Number of OFF samples before machine enters OFF state
 
// State variable
running <- false;
View edison-output.txt
1 2 3 4 5 6 7 8 9 10
******************************
PSH KERNEL VERSION: b0182727
WR: 20104000
******************************
 
SCU IPC: 0x800000d0 0xfffce92c
 
PSH miaHOB version: TNG.B0.VVBD.0000000c
 
microkernel built 23:15:13 Apr 24 2014
View edison-output.txt
1 2 3 4 5 6 7 8 9 10
******************************
PSH KERNEL VERSION: b0182727
WR: 20104000
******************************
 
SCU IPC: 0x800000d0 0xfffce92c
 
PSH miaHOB version: TNG.B0.VVBD.0000000c
 
microkernel built 23:15:13 Apr 24 2014
View package.json
1 2 3 4 5 6 7 8 9 10
{
"name": "pinoccio-couch-example",
"description": "couch example for saving pinoccio stats",
"version": "0.0.0",
"repository": {
"url":"https://gist.github.com/c11d6ae6f4bead140838.git"
},
"main": "index.js",
"scripts": {
"test": "tape test/*.js"
Something went wrong with that request. Please try again.