これは超訳です。
CSSLintは「なんでこんなルールなんだ…」とイラっとすることが多いですけど、それぞれにそれなりに理由があります。まぁ勿論無視するべきなルールとかもあります。例えば見出し要素の再定義禁止とかはHTML5に対するCSSなら無理な話です。そんなわけでどんな理由なのかを簡単に訳しました。無視するかどうかは自分で決めましょう!
この訳はCSSLintと同じライセンスで提供されます。
#!/bin/bash | |
HOST=対象ホスト名(IPアドレス) | |
USER=ログインユーザ | |
PASS=パスワード | |
TARGET_DIR=バックアップディレクトリ(ファイル) | |
BACKUP_DIR=保存先ディレクトリ | |
expect -c " | |
set timeout -1 |
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" |
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");' |
<!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" /> |
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.
//- 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 |