Skip to content

Instantly share code, notes, and snippets.

View burtlo's full-sized avatar

Lynn Frank burtlo

View GitHub Profile
@burtlo
burtlo / ghfm.css
Last active December 17, 2015 22:59
Redcarpet with Rouge
.highlight {
-moz-border-radius:3px;
-webkit-border-radius:3px;
background:transparent;
}
.highlight pre {
background-color:#f8f8f8;
border-radius:3px;
border:1px solid #ccc;
@burtlo
burtlo / TSFPersonalInfoViewController.m
Created June 6, 2013 04:10
Rubymotion vs Objective-C
//
// TSFPersonalInfoViewController.m
// Trail Safe
//
// Created by Franklin Webber on 6/1/13.
// Copyright (c) 2013 Trail Safe. All rights reserved.
//
#import "TSFPersonalInfoViewController.h"
#import "TSFUser.h"
server "runtalk", :primary
default_run_options[:shell] = '/bin/bash'
# role :web, "digital"
# role :chat, "digital"
# role :api, "digital"
desc "echo"
task :echo do
@burtlo
burtlo / script.js
Last active December 19, 2015 00:59
$(function() {
DoodlePanel = {
toggle: function() {
if (! this.exists()) {
this.create();
} else {
$(".doodle-popover").toggle();
}
},
exists: function() {
@burtlo
burtlo / instructions.md
Last active December 19, 2015 04:29
Installing Ruby Processing on Windows 8
BobController = function(button,inputText,output) {
console.log("Setting up the Bob Controller");
this.button = $(button);
this.input = $(inputText);
this.output = $(output);
var that = this;
this.getStatement = function() {
return this.input.val();
require('./scrabble');
describe('Scrabble', function() {
it("scores an empty word as zero",function() {
var score = Scrabble.score("");
expect(score).toEqual(0);
});
it("scores a null as zero",function() {
var score = Scrabble.score(null);
_ = require('./underscore');
Scrabble = {
score : function(word) {
word = word || "";
var currentScore = 0;
var characters = _(word.split(""));
var totalScores = characters.map(function(letter) {
@burtlo
burtlo / bob.js
Last active December 19, 2015 18:49
BobController = function(button,inputText,output,outputTemplate) {
console.log("Setting up the Bob Controller");
this.button = $(button);
this.input = $(inputText);
this.output = $(output);
this.outputTemplate = $(outputTemplate);
this.getStatement = function() {
return this.input.val();
}
@burtlo
burtlo / bob.js
Created July 16, 2013 16:49
Bob with a little Backbone
$(function() {
var AppView = Backbone.View.extend({
el: $("#bobForm"),
events: {
"submit" : "askBob"
},
initialize: function() {
console.log("initializing bob app view");
},