This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
db.getCollectionNames().forEach( function (d) { | |
db[d].dropIndexes(); | |
}); | |
db.tilezoom_source.chunks.ensureIndex( { files_id: 1, n: 1 }, { unique: true } ); | |
db.tilezoom_artefacts.chunks.ensureIndex( { files_id: 1, n: 1 }, { unique: true } ); | |
db.mosaic_artefact.chunks.ensureIndex( { files_id: 1, n: 1 }, { unique: true } ); | |
db.mosaic_artefact_index.chunks.ensureIndex( { files_id: 1, n: 1 }, { unique: true } ); |
This file contains hidden or 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 if ( ! defined( 'WPINC' ) ) die; | |
/** | |
* Represents the view for the public-facing component of the plugin. | |
* | |
* This typically includes any information, if any, that is rendered to the | |
* frontend of the theme when the plugin is activated. | |
* | |
* @package FlowFlow | |
* @author Looks Awesome <[email protected]> | |
* @link http://looks-awesome.com |
This file contains hidden or 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
.... | |
features = [List-with-FeaturePoints-generated-on-the-client] | |
vectorSource = new ol.source.GeoJSON(({ | |
"object": | |
"type": "FeatureCollection" | |
"features": features | |
})); | |
vectorLayer = new ol.layer.Image({"source": new ol.source.ImageVector( |
This file contains hidden or 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
module Parallax { | |
export class ParallaxContainer { | |
private content: HTMLElement; | |
private perspective: number; | |
private surface: ParallaxSurface[]; | |
/** | |
* Creates a Container for a Parallax | |
* | |
* @param {HTMLElement} scrollableContent The container that will be parallaxed |
This file contains hidden or 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 obj = { | |
a:1, | |
b: { | |
c:2 | |
}, | |
d: [1,2,3,4] | |
}; | |
function process(key,value) { | |
console.log(key,value) |
This file contains hidden or 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
# Created by https://www.gitignore.io | |
### PhpStorm ### | |
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm | |
*.iml | |
## Directory-based project format: | |
.idea/ | |
# if you remove the above rule, at least ignore the following: |