This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var vsvg = require( 'vsvg' ), | |
paths = require( 'vsvg-paths' ), | |
svg = vsvg.svg, | |
g = vsvg.g, | |
rect = vsvg.rect, | |
text = vsvg.text; | |
el = ( | |
svg( { xmlns: 'http://www.w3.org/2000/svg', width: 500, height: 500 }, | |
g ( { className: 'group-rects' }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var numCpus = require('os').cpus().length | |
var cluster = require('cluster') | |
cluster.setupMaster({exec: __dirname + '/server.js'}) | |
// workerIds returns the node cluster index for each worker | |
function workerIds() { return Object.keys(cluster.workers) } | |
// Gets the count of active workers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App.ApplicationController = Ember.Controller.extend({ | |
eventLinkActive: function() { | |
return this.get('currentPath').indexOf('events') !== -1); | |
}.property('currentPath') | |
}); | |
{{link-to 'events' active=eventLinkActive}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST https://www.signature.io/api/v0/people.json \ | |
-d "first_name=YOUR_FIRST_NAME" \ | |
-d "email=YOUR_EMAIL" \ | |
-d "password=YOUR_PASSWORD" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Terms of Use | |
PLEASE READ THESE TERMS CAREFULLY. IF YOU DO NOT AGREE WITH ANY OF THESE TERMS OR CONDITIONS, DO NOT ACCESS OR OTHERWISE USE THIS WEBSITE OR ANY INFORMATION CONTAINED ON THIS WEBSITE. | |
IMPORTANT! THESE TERMS OF USE GOVERN YOUR USE OF THIS SITE. BY ACCESSING THIS SITE, YOU ARE INDICATING YOUR ACKNOWLEDGMENT AND ACCEPTANCE OF THESE TERMS OF USE. THESE TERMS OF USE ARE SUBJECT TO CHANGE, UPDATE AND/OR REVISION (COLLECTIVELY "CHANGE") BY SITE OWNERS AT ANY TIME, WITHOUT NOTICE, IN THEIR SOLE DISCRETION. IF SITE OWNERS MAKE ANY MATERIAL CHANGES TO THESE TERMS OF USE, YOU WILL BE ASKED TO ACKNOWLEDGE AND ACCEPT THE NEW TERMS OF USE. PLEASE CONSULT THESE TERMS OF USE REGULARLY. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = MemoryStore; | |
function MemoryStore(options) { | |
this.options = options || {}; | |
this.app = this.options.app; | |
this.cache = {}; | |
} | |
MemoryStore.prototype.cacheVersion = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Mixin that generates both a regular and retina sprite (using the Compass Sprite Helpers) and returns the appropriate declarations and media queries. | |
// | |
// $folder - The name of the folder that contains the icons to sprite. | |
// | |
// No styleguide reference. | |
@mixin retina-sprite($folder) { | |
$sprites: sprite-map("icons/#{$folder}/*.png"); // Generates a sprite containing every icon in the supplied folder. | |
$sprites-2x: sprite-map("icons/#{$folder}@2x/*.png"); // Generates a second sprite containing every icon @2x resolution. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This assumes you have: | |
# 1) A user called `hubot` in charge of the bot. | |
# 2) A file called /home/hubot/.hubotrc that contains the Hubot credentials. | |
# | |
# To set the adapter either edit bin/hubot to specify what you want or append | |
# `-- -a campfire` to the $DAEMON variable below. | |
# | |
### BEGIN INIT INFO |