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
| ec2-67-202-24-49:/var/local/www/panda# merb -i | |
| ~ Loaded DEVELOPMENT Environment... | |
| ~ loading gem 'merb-assets' ... | |
| ~ loading gem 'merb-mailer' ... | |
| ~ loading gem 'merb_helpers' ... | |
| ~ loading gem 'uuid' ... | |
| ~ loading gem 'amazon_sdb' ... | |
| ~ loading gem 'activesupport' ... | |
| ~ loading gem 'rvideo' ... | |
| ~ Compiling routes... |
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
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
| <title>Basic Example</title> | |
| <style type="text/css"> | |
| /*margin and padding on body element | |
| can introduce errors in determining | |
| element position and are not recommended; |
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
| YAHOO.util.Event.addListener(window, "load", function() { | |
| var eventFormatter = function ( el , oRecord , oColumn , oData) { | |
| if (oData != null && oData != "") { | |
| var cellEl = new YAHOO.util.Element(el); | |
| cellEl.setStyle('color', '#123321'); | |
| cellEl.setStyle('background-color', '#DDDDDD'); | |
| el.innerHTML = oData; | |
| // YAHOO.util.Dom.addClass(el, "cal-first-uh"); | |
| } | |
| }; |
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
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'eventmachine' | |
| #require 'xmpp4r' | |
| require 'xmpp4r-simple' | |
| __DIR__ = File.dirname File.expand_path(__FILE__) | |
| EM.run { |
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 'sinatra' | |
| require 'sinatra/async' | |
| require 'app' | |
| class AsyncRoutes < Sinatra::Application | |
| register Sinatra::Async | |
| enable :sessions | |
| configure :development 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
| var BOSH_SERVICE = '/bosh/chat' | |
| var connection = null; | |
| var friend= ""; | |
| var me= ""; | |
| function removeNL(s){ | |
| return s.replace(/[\n\r\t]/g," "); | |
| } |
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
| # test_spec.rb | |
| require '../../lib/math_testr' | |
| include MathTestr | |
| describe Test, "#create_test" do | |
| it "creates a new test" do | |
| test= Test::create_test(1,2,3,4,5) | |
| test.should_not == nil | |
| end |
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 'mongo' | |
| module MathTestr | |
| include Mongo | |
| MONGO_DATABASE= "mathtestr" | |
| SUPPORTED_OPERATIONS= %w{addition substraction division multiplication fractions} | |
| module Test |
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
| $.widget("ui.choose_your_needs", { | |
| _init: function() { | |
| var $el= this.element; | |
| $el.find("#need-groups .need-group-box").need_group_box(); | |
| $el.find("#next-step").click(function() { | |
| var json= []; | |
| $el.find("[name=need_id]:checked").each(function() { | |
| json.push($(this).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
| $.widget("ui.choose_your_needs", { | |
| _init: function() { | |
| var $el= this.element; | |
| $el.find("#need-groups .need-group-box").need_group_box(); | |
| $el.find("#next-step").click(function() { | |
| var json= []; | |
| var click= this; | |
| $el.find("[name=need_id]:checked").each(function() { |
OlderNewer