Skip to content

Instantly share code, notes, and snippets.

View hilukasz's full-sized avatar

Łukasz Wieczorek hilukasz

View GitHub Profile
////////////////
// REQUIRES
////////////////
var Campfire = require("../lib/campfire").Campfire,
express = require("express"),
app = require('express')(),
server = require('http').createServer(app),
io = require('socket.io').listen(server);
////////////////
// REQUIRES
////////////////
var Campfire = require("../lib/campfire").Campfire;
var express = require('express'),
app = express(),
server = require('http').createServer(app),
io = require('socket.io').listen(server);
var Campfire = require("../lib/campfire").Campfire,
express = require("express"),
app = require('express')(),
server = require('http').createServer(app),
io = require('socket.io').listen(server);
server.listen(1337);
app.set('views', __dirname + '/tpl');
app.set('view engine', "jade");
process.on('uncaughtException', function (err){
robot.logger.error;
err.toString();
});
var Campfire = require("../lib/campfire").Campfire,
express = require("express"),
app = require('express')(),
server = require('http').createServer(app),
io = require('socket.io').listen(server);
server.listen(1337);
app.set('views', __dirname + '/tpl');
app.set('view engine', "jade");
var myObject = {"name":"message","args":[{"message":"Lukasz,wfh"}]}
var Campfire = require("../lib/campfire").Campfire;
var express = require("express");
var app = express();
var port = 3700;
app.set('views', __dirname + '/tpl');
app.set('view engine', "jade");
app.engine('jade', require('jade').__express);
app.use(express.static(__dirname + '/public'));
brew install mysql
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
Warning: Building source; cellar of mysql's bottle is /usr/local/Cellar
==> Downloading http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.10.tar.gz/from/http://cdn.mysql.com/
curl: (22) The requested URL returned error: 404
Error: Download failed: http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.10.tar.gz/from/http://cdn.mysql.com/
<div class="checkbox">
<label for="Arthritis_Grand_Parent">
<input type="checkbox" name="Arthritis_Grand_Parent" id="Arthritis_Grand_Parent" value="X" />
<span class="hide">Arthritis Grand Parent</span>
</label>
<label>
<input type="checkbox" name="Arthritis_Parent" id="Arthritis_Parent" value="X" />
<span class="hide">Arthritis Parent</span>
</label>
<label for="Arthritis_Sibling">
$('.questionFive').click(function(){
$.post("../mail.php", preSubmit())
});
// this returns a string
function preSubmit(){
var optionTexts = [];
$("section").each(function(){
var h2 = $(this).find("h2").text();
optionTexts.push(h2)