Skip to content

Instantly share code, notes, and snippets.

@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();
<script>
var input = "10 12 45 + -";
(function PostFix(input){
var asArr = input.split(' ');
var stack = [];
asArr.forEach(function(ele,i){
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%
@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'
@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;
/**
* AuthController
*
* @module :: Controller
* @description :: Contains logic for handling requests.
*/
var passport = require('passport');
module.exports = {
@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",
var links = document.querySelectorAll('.uiIconText.addButton')
for(var i in links) links[i].click()
topics.txt
directory/