Look at LSB init scripts for more information.
Creating the service:
var express = require('express') | |
, mongoskin = require('mongoskin') | |
var app = express() | |
app.use(express.bodyParser()) | |
var db = mongoskin.db('localhost:27017/test', {safe:true}); | |
app.param('collectionName', function(req, res, next, collectionName){ | |
req.collection = db.collection(collectionName) |
Look at LSB init scripts for more information.
Creating the service:
#!/bin/bash | |
# To uncryp: | |
# $ ccrypt -d --key YourRandomKeyToCrypt fileToUncrypt | |
SERVER=host0.mindup.io | |
USER=root | |
DEST_PATH=/home/backup_arnaud/ | |
KEY=YourRandomKeyToCrypt |
import React from 'react' | |
import ReactDOM from 'react-dom' | |
import classNames from 'classnames' | |
export default class ScrollEffect extends React.Component { | |
constructor () { | |
super() | |
this.state = { | |
animated: false |
using System; | |
using System.Collections.Generic; | |
/// <summary> | |
/// Priority queue. All methods are O(1) but Contains() which is O(n). | |
/// The queue is thread safe. | |
/// | |
/// Usage: | |
/// int nbPriority = 3; | |
/// var queue = PriorityQueue<string>(nbPriority); |
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
didReceiveAttrs: function() { | |
this._super(...arguments); | |
console.log('didReceiveAttrs, style: ', this.get('section.style')); | |
}, | |
}); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Twitch</title> | |
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Lato" /> | |
<style> | |
* { | |
margin: 0; |
brew install graphviz | |
# dowload https://github.com/schemaspy/schemaspy/releases/download/v6.0.0-rc1/schemaspy-6.0.0-rc1.jar | |
# download https://jdbc.postgresql.org/download.html | |
java -jar schemaspy-6.0.0-rc1.jar -t pgsql -db dbname -host localhost:5435 -u username -p ************ -o ./schemaspy -dp postgresql-9.4.1208.jre6.jar -s public -noads |
{ | |
"sections": [ | |
{ | |
"id": 1508407868623, | |
"title": "User Profile", | |
"children": [ | |
{ | |
"id": 1508407888954, | |
"data": { | |
"id": 1508407888954, |
{ | |
"sections": [ | |
{ | |
"id": "b79725ce-a03a-48e3-bb07-b2aff774e4b1", | |
"title": "User Profile", | |
"children": [ | |
{ | |
"id": "03cc5f03-a712-4a39-b4f8-1a7420f4b88c", | |
"type": "view-edit-summary/horizontal-list", | |
"children": [ |