- Get a GitHub account: https://github.com/
- Github > Dashboard > New Repository ... https://github.com/repositories/new
- Enter a Project Name and Description; click "Create Repository"
- On the project page ignore the suggested setup instructions... instead click on the "Admin" button
- Check the "GitHub Pages" checkbox... You'll get a popup.
- Click the "Automatic GitHub page Generator" button.
- Choose a funky colour... or go safe with just white... then click "Create Page" 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
#!python2.7.exe | |
from dotcloudcli import cli | |
if __name__ == '__main__': | |
cli.main() |
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
Feature: Addition | |
In order to avoid silly mistakes | |
As a math idiot | |
I want to be told the sum of two numbers | |
Scenario: Add two numbers | |
Given a calculator | |
When I sum 50 and 70 | |
Then the result should be 120 |
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
[Binding] | |
class CalculatorSteps | |
{ | |
private readonly StandardKernel _kernel = new StandardKernel(); | |
private ICalculator _calc; | |
private int _lastResult; | |
public CalculatorSteps() | |
{ |
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
@setlocal enabledelayedexpansion && "c:\Python27\python.exe" -x "%~f0" %* & exit /b !ERRORLEVEL! | |
import sys | |
sys.path.append('c:\Python27\Lib\site-packages\dotcloud.cli-0.3.1-py2.7.egg\dotcloud\cli') | |
import cli | |
if __name__ == '__main__': | |
cli.main() |
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
#1. install node, npm and coffeescript | |
#2. >npm install express | |
#3. >npm install node_redis | |
#4. >npm install -d | |
redis = require('redis').createClient() | |
redis.on 'error', (err) -> console.log "Redis connection error to #{redis.host} : #{redis.port} - #{err}" | |
app = require('express').createServer() | |
#create and increment multiple counters in redis, via: http://localhost:3000/counters/my-counter |
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
// includes bindings for fetching/fetched | |
var PaginatedCollection = Backbone.Collection.extend({ | |
initialize: function() { | |
_.bindAll(this, 'parse', 'url', 'pageInfo', 'nextPage', 'previousPage'); | |
typeof(options) != 'undefined' || (options = {}); | |
this.page = 1; | |
typeof(this.perPage) != 'undefined' || (this.perPage = 10); | |
}, | |
fetch: function(options) { |
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
#!/usr/bin/env ./node_modules/coffee-script/bin/coffee | |
sys = require 'sys' | |
express = require 'express' | |
assets = require 'connect-assets' | |
proxy = require 'http-proxy' | |
server = proxy.createServer (req, res, proxy) -> | |
if req.url.match /^\/?api/ | |
backend = |
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
// If you don't use underscore.js, use it (http://documentcloud.github.com/underscore/) | |
// Then, use underscore's mixin method to extend it with all your other utility methods | |
// like so: | |
_.mixin({ | |
escapeHtml: function () { | |
return this.replace(/&/g,'&') | |
.replace(/>/g,'>') | |
.replace(/</g,'<') | |
.replace(/"/g,'"') | |
.replace(/'/g,'''); |
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
{ | |
"name": "Meteor", | |
"version": "0.3.2", | |
"description": "A new way to build apps.", | |
"author": "Meteor Development Group", | |
"homepage": "http://www.meteor.com/", | |
"repository": { | |
"url": "https://github.com/meteor/meteor" | |
}, | |
"dependencies": { |
OlderNewer