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 | |
# This is an excerpt from a modified version of the CodeIgniter front controller, index.php | |
/* | |
|--------------------------------------------------------------- | |
| SYSTEM FOLDER NAME | |
|--------------------------------------------------------------- | |
| | |
| This variable must contain the name of your "system" folder. |
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
# http://gembundler.com/deploying.html | |
require 'bundler/capistrano' | |
# http://guides.rubyonrails.org/asset_pipeline.html | |
load 'deploy/assets' | |
# http://beginrescueend.com/integration/capistrano/ | |
# Also add rvm-capistrano to your Gemfile | |
require "rvm/capistrano" # Load RVM's capistrano plugin. | |
set :rvm_type, :system # Copy the exact line. I really mean :system here |
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
$ meteor | |
[[[[[ /Library/WebServer/Documents/personal/test-game ]]]]] | |
Running on: http://localhost:3000/ | |
node.js:201 | |
throw e; // process.nextTick error, or 'error' event on first tick | |
^ | |
ReferenceError: require is not defined | |
at app/test/player.js:5:1 |
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
# Required to run commands in the shell | |
# @see http://nodejs.org/api/child_process.html | |
{spawn} = require 'child_process' | |
# A basic command runner | |
run = (cmd, args) -> | |
console.log cmd, args.join ' ' | |
spawn cmd, args, stdio: 'inherit' | |
# Set up default arguments for running our Mocha tests. |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Clicker</title> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |
</head> | |
<body> | |
<h1>Welcome to Clicker!</h1> | |
<p>You clicked the button <span id="count">0</span> times.</p> | |
<button id="click-me">Click me</button> |
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 Singleton | |
instance = null | |
@get = -> | |
instance ?= value | |
module.exports = Singleton.get() |