Skip to content

Instantly share code, notes, and snippets.

View minhajuddin's full-sized avatar
⌨️
Beep boop, beep boop

Khaja Minhajuddin minhajuddin

⌨️
Beep boop, beep boop
View GitHub Profile
# 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
@minhajuddin
minhajuddin / Task-0.md
Last active August 29, 2015 13:57 — forked from abdulsattar/Task.md

#0.1 Note taking application

It should display Notes section, a textbox and an add note button. Screenshot

#0.2 Calculator It should display two inputs, with add/subtract/multiply/divide buttons Screenshot

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"
@minhajuddin
minhajuddin / README.md
Last active August 29, 2015 14:18 — forked from sumskyi/README.md

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"

@minhajuddin
minhajuddin / HelloWorld.cs
Created April 29, 2009 06:31
Simple Hello World code in C#
using System;
public class HW{
public static void Main(){
Console.WriteLine("Hello, World!");
}
}
@minhajuddin
minhajuddin / linq.js
Created September 27, 2009 05:59 — forked from nkohari/linq.js
/*
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
<html>
<head>
<style type='text/css'>
ol, ul {
list-style-image: none;
list-style-position: outside;
list-style-type: none;
}
li { display:inline; }
li a{
<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