Skip to content

Instantly share code, notes, and snippets.

View oskarhane's full-sized avatar
🏠
Working from garden office

Oskar Hane oskarhane

🏠
Working from garden office
View GitHub Profile
@sim51
sim51 / config.js
Last active May 31, 2017 15:05
Tiny Neo4j angular service
'use strict';
// Neo4j configuration
app.constant('NEO4J_USER', 'neo4j');
app.constant('NEO4J_PASSWORD', 'admin');
app.constant('NEO4J_URL', 'http://localhost:7474/db/data/transaction/commit');
@raphaelstolt
raphaelstolt / php54_php53_pear_macports.markdown
Created May 17, 2012 21:37
Installing PHP 5.4 and 5.3 side by side on Max OSX via MacPorts

##Given Apache 2 and MySQL are already installed.

#Update MacPorts sudo port selfupdate;sudo port -u upgrade outdated

#Install PHP 5.4.* sudo port install php54 php54-apache2handler ##Activate Apache Module cd /opt/local/apache2/modules

@bnoguchi
bnoguchi / GH-228.js
Created June 9, 2011 07:46
Example of how to correctly do mongoose GH-228
var mongoose = require('mongoose')
, Schema = mongoose.Schema;
var db = mongoose.connect('mongodb://localhost/test');
var TestEmbedSchema = new Schema({
name : { type: String, index: true}
});
var TestEmbed = mongoose.model('TestEmbed', TestEmbedSchema);
// Requires node v0.1.100 or a browser with console
function newShape(x, y) {
return {
toString: function () {
return 'Shape at ' + x + ', ' + y;
}
};
}