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
# A sample Gemfile | |
source "http://rubygems.org" | |
gem "redis" | |
gem 'eventmachine', :git => 'git://github.com/eventmachine/eventmachine.git' | |
gem "em-hiredis" | |
# gem "em-synchrony" | |
gem "em-websocket" |
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
he = 1 | |
around = 1; | |
to = (a) -> | |
return a | |
me = (a) -> | |
return a | |
hide = "Hide quick, he is here" | |
alert me to hide if he is around |
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
window.Events = {} | |
_.extend Events, Backbone.Events | |
window.Model = Backbone.Model.extend | |
window.Collection = Backbone.Collection.extend | |
window.Router = Backbone.Router.extend | |
window.View = Backbone.View.extend | |
addSubview: (ele) -> | |
@el.append(ele) |
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
@implementation Satlavida : NSObject | |
{ | |
NSArray Skills; | |
} | |
-(NSArray)returnSkills | |
{ | |
return Skills = ["PHP","Ruby","Objective-C","Objective-J","Cocoa","Java/Coffee-script","HTML5"]; | |
} |
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
@implementation CalendarView: CPView | |
{ | |
} | |
-(id)init { | |
self = [super initWithFrame:CGRectMake(0, 0, 200, 200)]; | |
if (self) { | |
[self loadData]; | |
} |
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
/* | |
* CPLightbox.j | |
* AppKit | |
* | |
* Created by Nicholas Small. | |
* Copyright 2009, 280 North, Inc. | |
* | |
* This library is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU Lesser General Public | |
* License as published by the Free Software Foundation; either |
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
/* | |
* CPTooltip.j | |
* Makes a little black rounded-rect gradient tooltip with some text (can have multiple lines with \n) which points at something. | |
* Usage example: | |
* tooltip = [[CPTooltip alloc] initWithText:@"Hello There" atPoint:CPPointMake(100,100)]; | |
* [self addSubview:tooltip]; | |
* | |
* The above will make a tooltip that says "Hello There" which is pointing at this view's 100x100 point. | |
* If the tooltip is too close to its superview's edges, it will adjust itself to maintain readability. | |
* |
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
"puts :hi" |
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
<?php | |
class DB | |
{ | |
public static function __callStatic($name,$args) | |
{ | |
$q= ""; | |
$query = explode("_",$name); | |
if($query[0] == "get") | |
{ |