#0.1 Note taking application
It should display Notes section, a textbox and an add note button.
#0.2 Calculator
It should display two inputs, with add/subtract/multiply/divide buttons
| # Author: Pieter Noordhuis | |
| # Description: Simple demo to showcase Redis PubSub with EventMachine | |
| # | |
| # Update 7 Oct 2010: | |
| # - This example does *not* appear to work with Chrome >=6.0. Apparently, | |
| # the WebSocket protocol implementation in the cramp gem does not work | |
| # well with Chrome's (newer) WebSocket implementation. | |
| # | |
| # Requirements: | |
| # - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby |
| gem 'rom', '0.6.0' | |
| gem 'rom-sql', '0.4.0' | |
| gem 'rom-rails', '0.3.0' | |
| gem_group(:test) do | |
| gem "rspec" | |
| gem "rspec-rails" | |
| gem "capybara" | |
| gem "database_cleaner" | |
| gem "spring-commands-rspec" |
irb(main):029:0* GeoEntity.last
GeoEntity Load (0.5ms) SELECT geo_entities.* FROM geo_entities ORDER BY geo_entities.id DESC LIMIT 1
returns:
County id: 4, eid: nil, pid: nil, ename: nil, etype: 2, created_at: "2011-11-21 06:26:37", updated_at: "2011-11-21 06:26:37"
| using System; | |
| public class HW{ | |
| public static void Main(){ | |
| Console.WriteLine("Hello, World!"); | |
| } | |
| } |
| /* | |
| linq.js -- a simple LINQ implementation for javascript | |
| Author: Nate Kohari <nate@enkari.com> | |
| Copyright (C) 2009 Enkari, Ltd. | |
| Released under the Apache 2.0 license (http://www.opensource.org/licenses/apache2.0.php) | |
| */ | |
| Array.prototype.all = function(func) { | |
| var result = true; | |
| this.iterate(function(item) { |
| "necessary for lots of cool vim things | |
| let mapleader="," | |
| set nocompatible | |
| " This shows what you are typing as a command. I love this! | |
| set showcmd | |
| " Folding Stuffs | |
| set foldmethod=marker | |
| " Needed for Syntax Highlighting and stuff |
| <UserSettings> | |
| <ApplicationIdentity version="9.0"/> | |
| <ToolsOptions> | |
| <ToolsOptionsCategory name="Environment" RegisteredName="Environment"> | |
| <ToolsOptionsSubCategory name="Documents" RegisteredName="Documents" PackageName="Visual Studio Environment Package"> | |
| <PropertyValue name="ShowMiscFilesProject">false</PropertyValue> | |
| <PropertyValue name="AutoloadExternalChanges">false</PropertyValue> | |
| <PropertyValue name="CheckForConsistentLineEndings">true</PropertyValue> | |
| <PropertyValue name="SaveDocsAsUnicodeWhenDataLoss">false</PropertyValue> | |
| <PropertyValue name="InitializeOpenFileFromCurrentDocument">true</PropertyValue> |
| UI/*Publish.xml | |
| Logs | |
| App_Data | |
| obj | |
| bin | |
| WorkingTemp | |
| deploy | |
| deploy/* | |
| _ReSharper.* | |
| *.csproj.user |