This file contains hidden or 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
| .highlight { | |
| -moz-border-radius:3px; | |
| -webkit-border-radius:3px; | |
| background:transparent; | |
| } | |
| .highlight pre { | |
| background-color:#f8f8f8; | |
| border-radius:3px; | |
| border:1px solid #ccc; |
This file contains hidden or 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
| // | |
| // 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" |
This file contains hidden or 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
| server "runtalk", :primary | |
| default_run_options[:shell] = '/bin/bash' | |
| # role :web, "digital" | |
| # role :chat, "digital" | |
| # role :api, "digital" | |
| desc "echo" | |
| task :echo do |
This file contains hidden or 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
| $(function() { | |
| DoodlePanel = { | |
| toggle: function() { | |
| if (! this.exists()) { | |
| this.create(); | |
| } else { | |
| $(".doodle-popover").toggle(); | |
| } | |
| }, | |
| exists: function() { |
This file contains hidden or 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
| 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(); |
This file contains hidden or 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
| 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); |
This file contains hidden or 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
| _ = require('./underscore'); | |
| Scrabble = { | |
| score : function(word) { | |
| word = word || ""; | |
| var currentScore = 0; | |
| var characters = _(word.split("")); | |
| var totalScores = characters.map(function(letter) { |
This file contains hidden or 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
| 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(); | |
| } |
This file contains hidden or 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
| $(function() { | |
| var AppView = Backbone.View.extend({ | |
| el: $("#bobForm"), | |
| events: { | |
| "submit" : "askBob" | |
| }, | |
| initialize: function() { | |
| console.log("initializing bob app view"); | |
| }, |