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
// ---- | |
// Sass (v3.2.14) | |
// Compass (v0.12.2) | |
// ---- | |
@import "compass" | |
.foobar | |
+scale(1) | |
+opacity(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
.block-content img.img-thumbnail { | |
width: 35%; | |
} | |
.block-content img.img-thumbnail.pull-left { | |
margin-right: 8px; | |
} | |
.block-content img.img-thumbnail.pull-rigth { | |
margin-left: 8px; | |
} |
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
vmbuilder kvm ubuntu -v \ | |
--suite=precise \ | |
--libvirt=qemu:///system \ | |
--arch=amd64 --cpus=2 --mem=4024 --swapsize=4096 --rootsize=1204800 \ | |
--flavour=virtual \ | |
--hostname=XXXX \ | |
--ip=XXX.XXX.XXX.XXX \ | |
--mask=XXX.XXX.XXX.XXX \ | |
--net=XXX.XXX.XXX.XXX \ | |
--bcast=XXX.XXX.XXX.XXX \ |
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
// Install: express 3.x, socket.io 0.9.x, piler-compat | |
var express = require('express'); | |
var app = express(); | |
var piler = require('piler-compat'); | |
var http = require('http'); | |
var socketio = require('socket.io'); | |
// Express | |
app.configure(function(){ | |
//... express config |
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
/** | |
* Create a static file server | |
* requires: node-static | |
* example: npm install node-static | |
*/ | |
var conf = { | |
port: 8080, | |
address: "0.0.0.0", | |
pubDir: __dirname, | |
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
# Allways a good idea to sync with the formular repository first | |
alex$ brew update | |
# List available version | |
alex$ brew versions zmq | |
3.2.2 git checkout ab8de4b /usr/local/Library/Formula/zeromq.rb | |
2.2.0 git checkout 6a2e6ef /usr/local/Library/Formula/zeromq.rb | |
2.1.11 git checkout 497b13a /usr/local/Library/Formula/zeromq.rb | |
2.1.10 git checkout 4c8ed3a /usr/local/Library/Formula/zeromq.rb | |
2.1.9 git checkout 381c97f /usr/local/Library/Formula/zeromq.rb |
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
# Allow outgoing traffic and disallow any passthroughs | |
iptables -P INPUT DROP | |
iptables -P OUTPUT ACCEPT | |
iptables -P FORWARD DROP | |
# Allow traffic already established to continue | |
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT | |
# Allow ssh, web services | |
iptables -A INPUT -p tcp --dport ssh -j ACCEPT |
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
var a = []; for(var i=1; i<=100;i++) a.push((i*1)); | |
var stopWordAnalyzer = function(list){ | |
return function(stopword){ | |
var fizzCount = 0; | |
list.forEach(function(y){ if(stopword==y){fizzCount++;}}); | |
console.log('There are: '+fizzCount+' '+stopword+' in 1..100'); | |
} | |
} |
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
Create -> Post | |
Read -> Get | |
Update -> Put | |
Delete -> Delete |
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
/** @Document */ | |
Class Image | |
{ | |
/** @Id */ | |
private $id; | |
/** @Field */ | |
private $name; | |
/** @File */ |