Skip to content

Instantly share code, notes, and snippets.

@Synvox
Synvox / spanish.json
Last active December 23, 2015 11:19
Translate me!
{
"key partners": "Key Partners",
"key activities": "Key Activities",
"value propositions": "Value Propositions",
"customer relationships": "Customer Relationships",
"customer segments": "Customer Segments",
"key resources": "Key Resources",
"channels": "Channels",
"cost structure": "Cost Structure",
"revenue streams": "Revenue Streams",
/**
* AuthController
*
* @module :: Controller
* @description :: Contains logic for handling requests.
*/
var passport = require('passport');
module.exports = {
@Synvox
Synvox / gist:6031979
Created July 18, 2013 18:57
For Robbie
float scale = 50; // Each block is 1m big which translates to 50 3d units.
class Block
{
int x;
int y;
int z;
Block(int x, int y, int z) {
this.x = x;
@Synvox
Synvox / gist:5842022
Created June 22, 2013 18:34
DNA to RNA scrap
(function codon(sequence){
var sequence = sequence.toUpperCase().split('');
var codons = "";
sequence.forEach(function(ch, i){
if (i != 0 && i % 3 === 0) {
returned += " ";
}
switch (ch) {
case 'G':
returned += 'C'
Allreds-MacBook-Pro:Alora ryanallred$ jitsu deploy
info: Welcome to Nodejitsu Synvox
info: jitsu v0.12.11, node v0.10.10
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node app.js
info: Checking app availability Alora
info: Creating app Alora
info: Creating snapshot 0.0.0-3
info Uploading: [=============================] 100%
<script>
var input = "10 12 45 + -";
(function PostFix(input){
var asArr = input.split(' ');
var stack = [];
asArr.forEach(function(ele,i){
@Synvox
Synvox / gist:4053268
Created November 11, 2012 01:17
Better Canvas Rider Hack
(function(){
scriptElement = document.body.appendChild(document.createElement('script'));
scriptElement.type='text/javascript';
scriptElement.src='http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js';
scriptElement.onload = function(){
(function($){
$.noConflict();
@Synvox
Synvox / .lua
Created October 19, 2012 20:34
Lunar Lander
--# Main
-- Lunar Lander
function setup()
displayMode(FULLSCREEN)
instances = {}
ship = Ship(WIDTH/2,HEIGHT/2)
table.insert(instances,ship)
leftbutton = Button(100,200,"left")
table.insert(instances,leftbutton)

These instructions work for the Raspberry Pi running Raspbian (hard float) and create a hardware optimized version of NodeJS for the Raspberry PI, (and include a working install and NPM!!!):

  1. Install Raspbian - http://www.raspberrypi.org/downloads

  2. Install the necessary dependecies:

sudo apt-get install git-core build-essential

(If you just installed git then you need to administer your git identity first, else adding the patches below will fail!!!)