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 | |
/** | |
* SplClassLoader implementation that implements the technical interoperability | |
* standards for PHP 5.3 namespaces and class names. | |
* | |
* http://groups.google.com/group/php-standards/web/final-proposal | |
* | |
* // Example which loads classes for the Doctrine Common package in the | |
* // Doctrine\Common namespace. |
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 | |
/** | |
* @copyright 2012 TheHydroImpulse, Daniel Fagnan | |
* @version 0.1 | |
* @todo Add an overwite ability. Among other things. | |
* @note Use this as you wish. Extend it, Mash it. Enjoy it. | |
*/ |
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
// This code is in the public domain, feel free to use it in anyway you'd | |
// like to. | |
#include <iostream> | |
#include <functional> | |
using namespace std; | |
template<class A> | |
class Maybe { | |
protected: | |
A a; |
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
- title "#{@game.name}" | |
%h1= yield(:title) | |
#documents | |
= form_tag(assessment_game_documents_path(@game)) do | |
%ul | |
%script{ type: "text/x-handlebars" } | |
{{#collection Game.DocumentsCollectionView contentBinding="Game.documentsController"}} | |
%li {{content.name}} | |
{{/collection}} |
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
class Person | |
@name: null | |
@age: 18 | |
constructor: (@name, @age) -> | |
if @name == 'Hello' | |
$(".name").html "Yeah, you made it!" | |
if @age > 18 | |
$(".age").html "Welcome home!@" |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<projectDescription> | |
<name>ExampleNettyWebServer</name> | |
<comment></comment> | |
<projects> | |
</projects> | |
<buildSpec> | |
<buildCommand> | |
<name>org.eclipse.jdt.core.javabuilder</name> | |
<arguments> |
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
class App.PostsController extends App.ApplicationController | |
# Enable single-page controller: | |
@socket.enable() | |
# Authorization | |
@before "authenticate_user" | |
@before "authenticate_admin" | |
# Ability Class | |
@Ability.can "create", App.Post |
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
ifneq (,$(findstring /cygdrive/,$(PATH))) | |
UNAME := Cygwin | |
else | |
ifneq (,$(findstring WINDOWS,$(PATH))) | |
UNAME := Windows | |
else | |
UNAME := $(shell uname -s) | |
endif | |
endif |
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
Processing by ApplicationController#index as HTML (GET) | |
Parameters: { action: 'index', format: 'html' } | |
App.ApplicationController { headers: {}, | |
status: 200, | |
request: | |
{ socket: | |
{ _handle: [Object], | |
_pendingWriteReqs: 0, | |
_flags: 0, | |
_connectQueueSize: 0, |
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
@ECHO OFF | |
:; Clear the screen and turn echo off (above) to keep it clean | |
CLS | |
SET PPath= | |
SET FPath= | |
:; Get Value from 'where make' command output | |
FOR /F "" %%i in ('where make') do SET PPath=%%i |
OlderNewer