Skip to content

Instantly share code, notes, and snippets.

node filename.js
@shoheikawano
shoheikawano / gist:4283008
Created December 14, 2012 05:59
This is the 'Hello World' code example from Node.js official website.
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');
@shoheikawano
shoheikawano / User Stories for HPU Mens Basketball Team
Created December 6, 2012 08:16
User Stories & Scenarios for HPU Men's Basketball Team
Feature: Having Efficient Game Data Management System
As a HPU Men's Basketball Coach
So I can summarize extensive data
I want summary statistics updated automatically when I enter new data
Scenario: have a efficient game data management system
Given I am in the data managemenet system
When I go to the individual player's page
And I enter 1 to 'Last 5 Make' section of 'Region 1'
And I press enter
@shoheikawano
shoheikawano / sample code from the textbook
Created November 20, 2012 04:11
Java Assertion code from Code Complete McConnell, Steve - Chapter 8
assert denominator !=0 : "denominator is unexpectedly equal to 0.";