brew install mongodb
Set up launchctl to auto start mongod
$ ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents
/usr/local/opt/mongodb/
is a symlink to /usr/local/Cellar/mongodb/x.y.z
(e.g., 2.4.9
)
//- templated by jade | |
svg(width=640 height=480 style="background-color:grey;") | |
circle( | |
cx=30 cy=30 | |
r=25 | |
stroke="grey" stroke-width=1 | |
fill="wheat") | |
rect( | |
width=50 height=50 | |
x=60 y=10 |
This example pulls together various examples of work with trees in D3.js.
The panning functionality can certainly be improved in my opinion and I would be thrilled to see better solutions contributed.
One can do all manner of housekeeping or server related calls on the drop event to manage a remote tree dataset for example.
Dragging can be performed on any node other than root (flare). Dropping can be done on any node.
Panning can either be done by dragging an empty part of the SVG around or dragging a node towards an edge.
<!doctype html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<!-- for Mobile view --> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | |
<!-- iOS Application Setting --> | |
<meta name="apple-mobile-web-app-capable" content="yes" /> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> |
var http = require('http'); | |
var WebSocketServer = require('websocket').server; | |
var port = 8080; | |
process.stdin.resume(); | |
process.stdin.setEncoding('utf8'); | |
var index = '<!DOCTYPE html><html><head><title>stdin-to-ws</title></head>' | |
+ '<body><div id="msg"></div><script>' | |
+ 'var msg = document.getElementById("msg");' | |
+ 'var ws = new WebSocket("ws:localhost:8080/stdin-to-ws", "stdin-to-ws");' |
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
#!/bin/bash | |
HOST=対象ホスト名(IPアドレス) | |
USER=ログインユーザ | |
PASS=パスワード | |
TARGET_DIR=バックアップディレクトリ(ファイル) | |
BACKUP_DIR=保存先ディレクトリ | |
expect -c " | |
set timeout -1 |