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 nestedCallbacks(callback) { | |
| console.log("start"); | |
| firstNest(function () { | |
| secondNest(function () { | |
| callback("test"); | |
| }); | |
| }); | |
| } | |
| function firstNest(callback) { |
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
| / Why Can't I Test My JavaScript? | |
| %h3 #railsconf 2011 Notes | |
| %i Greg Moeck (gregmoeck) | |
| %p The Ruby community has made TDD/BDD accessible. | |
| %p Why can't we do TDD/BDD inJavaScript? | |
| %p What is the problem? There are LOTS of excuses: | |
| %ul | |
| %li The tools suck | |
| %li The browser sucks | |
| %li The DOM sucks |
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
| jp: | |
| formtastic: | |
| :yes: 'はい' | |
| :no: 'いいえ' | |
| :create: '%{model}を作る' | |
| :update: '%{model}をアップデートする' | |
| :submit: '%{model}をサブミットする' | |
| :required: '必要' |
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
| [11:53am] Dreamer3: More women this year than last | |
| [11:53am] jumex: 2.5% of the conference! | |
| [11:54am] Dreamer3: I need to find a career where men are in the minority | |
| [11:54am] jumex: Hopefully more next year. We NEED more women in tech! | |
| [11:55am] necromancer: they should call that movement to try and get more females into programming "boner-driven development" | |
| [11:55am] mike-burns: Discussion gender in tech is tricky because someone always says a negatively-sexist remark within five minutes. | |
| [11:56am] necromancer: mike-burns: do you think the fact that men outnumber women in tech is itself sexist? | |
| [11:56am] necromancer: or merely a product of how men & women are handled in this country? | |
| [11:56am] jumex: We are all sexists, but we have to realize it before we can control it. | |
| [11:57am] jumex: mike-burns: I totally agree with you there. |
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
| if (typeof NS === 'undefined' || !NS) { | |
| var NS = {}; | |
| } | |
| (function ($) { | |
| NS.Klass = function(options) { | |
| var settings = { | |
| debug: false | |
| }, | |
| private = { |
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
| /* | |
| * File: bst.js | |
| * | |
| * A pure JavaScript implementation of a binary search tree. | |
| * | |
| */ | |
| /* | |
| * Class: BST | |
| * |
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
| // ==UserScript== | |
| // @name Hide Unnessary Campfire Messages | |
| // @namespace http://www.trevmex.com | |
| // @description Hide everything but text messsages. | |
| // @author Trevor Lalish-Menagh | |
| // @homepage | |
| // @include http*//*.campfirenow.com/room* | |
| // ==/UserScript== | |
| (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
| describe("myNS.log", function () { | |
| it("sends a string to the console log", function () { | |
| spyOn(window.console, "log"); | |
| expect(myNS.log("test message")).toEqual("test message"); | |
| expect(window.console.log).toHaveBeenCalledWith("test message"); | |
| }); | |
| }); |
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
| myNS.caller = function () { | |
| myNS.funct1(); | |
| myNS.funct2(); | |
| myNS.funct3(); | |
| }; |
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
| /* | |
| * user.watch v1.0: Cross-browser user.watch | |
| * From http://code.eligrey.com/object.watch/ | |
| * | |
| * By Elijah Grey, http://eligrey.com | |
| * Tweaked by Trevor Lalish-Menagh, http://trevmex.com | |
| * | |
| * A shim that partially implements object.watch and object.unwatch | |
| * in browsers that have accessor support. | |
| * |