Skip to content

Instantly share code, notes, and snippets.

@rudylattae
rudylattae / gist:490790ad49931498f45a
Last active August 29, 2015 14:06
Git workflow - 1

Remote branch

git push origin master:refs/heads/next
git co --track origin/next

Start new feature

git co -b newfeat

@rudylattae
rudylattae / fiddle.html
Created December 24, 2010 09:25
Fun with Fiddle and head.js
<html>
Jst looking
</html>
@rudylattae
rudylattae / 1-setup-peon-dev-env-windows.rst
Created January 27, 2011 06:36
Setup dev environment for peon -- Windows

Setup dev environment for peon -- Windows

I'm trying to hack on Peon, so far I've not been able to successfuly run the tests.

Here are the steps I took to setup my dev environment to start hacking on peon. Just in case someone else needs them.

Note

@rudylattae
rudylattae / Jaxy.js
Created August 6, 2011 08:09
Zyx.js -- a collection of microjs helpers
var Jaxy = function() {
this.xhr = new XMLHttpRequest;
};
Jaxy.prototype.get = function(options) {
if (typeof options.url === 'undefined') return;
var self = this;
var url = options.url || '';
var success = options.success || null;
var error = options.error || null;
@rudylattae
rudylattae / stub-system-gadget.js
Created August 25, 2011 05:29
Stub System.Gadget
if (typeof System === 'undefined') {
System = {
Gadget: {
settingsUI: '',
onSettingsClosed: function() {},
Settings: {
read: function (key) { return key; },
readString: function (key) { return key; }
}
}
@rudylattae
rudylattae / tox-win.ini
Created September 6, 2011 01:50
tox-win.ini for Konira on Windows
[tox]
envlist = py26,py27
[testenv]
commands = konira -t -d
[testenv:py26]
basepython=C:\env\python26\python.exe
[testenv:py27]
@rudylattae
rudylattae / tips.py
Created November 29, 2011 06:48
Python tips
# DRY for os.path.join
import os
j = lambda filename: os.path.join('/my/base/path', filename)
@rudylattae
rudylattae / index.html
Created October 21, 2012 05:56
html5 - hello
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="" />
<script type="text/javascript" src=""></script>
</head>
<body>
<div>
<p>Hello</p>
@rudylattae
rudylattae / story.json
Created November 21, 2012 04:49
Example of a BlankStage story
{
"version": "1.0",
"title": "A dirt simple example of a BlankStage story",
"summary": "This really is nothing but a collection of links as chapters. A proper story would most likely take you through some chapters that have a linear (or user-directed) set of actions.",
"synopsis": "",
"copyright": "Copyright &copy; 2012 Me/You/Who?",
"license": "DRMed -- OMG!!!",
"chapters": [
{
"title": "This is chapter 1.",
@rudylattae
rudylattae / Bunch.js
Created November 24, 2012 03:16
Bunch.js
var Bunch = (function () {
// internals
var defaults = {
IDENTITY_FIELD: 'id',
SEQUENCE_START: 0,
hasIdentity: function hasIdentity( item ) {
return item[ this._identityField ];
},
ensureIdentity: function ensureIdentity( item ) {