This file contains 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.prototype.or = function(callback) { | |
var next = this; | |
return function(err, doc) { | |
if (err) { | |
callback(err, doc); | |
} else { | |
next(doc, callback); | |
} | |
}; | |
}; |
This file contains 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
protected var _foo:String; | |
[Bindable( "fooChanged" )] | |
public function get foo():String | |
{ | |
return _foo; | |
} | |
public function setFoo( foo:String ):void | |
{ |
This file contains 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
// IMediaRenderer.as | |
package example | |
{ | |
public interface IMediaRenderer extends IDataRenderer, IUsesResources, IUsesPermissions | |
{ | |
} | |
} | |
// MediaRenderer.as | |
package example |
This file contains 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
package org.robotlegs.adapters | |
{ | |
import flash.system.ApplicationDomain; | |
import org.robotlegs.core.IInjector; | |
import uk.co.ziazoo.injector.IInjector; | |
import uk.co.ziazoo.injector.impl.Injector; | |
public class DawnInjector implements org.robotlegs.core.IInjector |
This file contains 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
package | |
{ | |
import private_injection; | |
class ClassWithPrivateInjection | |
{ | |
include "inject.include.as"; | |
private var mySecretWord:String; | |
This file contains 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
$ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
121 364 121 364 0 0 201 0 0:00:01 0:00:01 --:--:-- 298 | |
Initialized empty Git repository in [..] | |
remote: Counting objects: 13228, done. | |
remote: Compressing objects: 100% (3250/3250), done. | |
remote: Total 13228 (delta 8712), reused 13116 (delta 8638) | |
Receiving objects: 100% (13228/13228), 2.35 MiB | 128 KiB/s, done. | |
Resolving deltas: 100% (8712/8712), done. |
This file contains 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 Ruby is Fun | |
# Everything is an object | |
5.times {|x| puts x} | |
# Even nil is an object | |
puts nil.nil? | |
# Yes, nil is an object | |
nil.methods.each {|x| puts x} |
This file contains 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 Module_model extends Model | |
{ | |
private $log = array(); | |
private $module_row_cache = array(); | |
private $module_field_cache = array(); | |
/** | |
* Get Module Data and Resolve Dependencies |
This file contains 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
package com.visfleet.robotlegs { | |
import flash.display.DisplayObject; | |
import flash.display.DisplayObjectContainer; | |
import org.robotlegs.base.ContextEvent; | |
import org.robotlegs.core.IMediatorMap; | |
import org.robotlegs.mvcs.Actor; | |
public class Presenter extends Actor { |
This file contains 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
package org.robotlegs.utilities.remote | |
{ | |
import com.adobe.serializers.json.JSONDecoder; | |
import mx.collections.ArrayCollection; | |
public class JsonRemoteService extends RemoteServiceBase | |
{ | |
public function JsonRemoteService(rootURL:String = "") | |
{ |