ueoaueoaueoa
ueoaueoau
ueo
ueoaueoaueoa
ueoaueoau
ueo
| web: node server.js |
| web: node server.js |
| #!/usr/bin/env coffee | |
| if process.argv.length!=5 | |
| throw new Error 'Usage: ./getroutes.iced input.rsc RTNAME NEXTHOP' | |
| fs = require 'fs' | |
| { | |
| exec | |
| } = require 'child_process' | |
| for route in fs.readFileSync(process.argv[2], 'utf8').match /[\d]+\.[\d]+\.[\d]+\.[\d]+\/[\d]+/g |
| svg.selectAll "polygon", | |
| data: [polyData] | |
| enter: | |
| append: 'polygon' | |
| style: | |
| "stroke": "gray" | |
| "stroke-width": 2 | |
| "fill": 'none' |
试一试 [试一试](javascript:var script;document.body.appendChild(script=document.createElement('script'));script.setAttribute('src','https://raw.github.com/layerssss/touchy/touchy.js'))
| #!/usr/bin/env sh | |
| # install nodejs on linux x64. | |
| # usage: | |
| # curl 'https://gist.github.com/layerssss/5105454/raw/install_nodejs_linux_x64.sh' | sudo bash | |
| NODE=`curl http://nodejs.org/dist/latest/ | perl -ne 'while(/\"(node[^\"]*linux-x64).tar.gz"/g){print "$1\n";}'` | |
| echo Installing $NODE ... | |
| curl http://nodejs.org/dist/latest/$NODE.tar.gz -o ./node.tar.gz | |
| tar xvzf node.tar.gz |
| all: components node_modules | |
| components: node_modules component.json | |
| node_modules/bower/bin/bower install | |
| touch $@ | |
| node_modules: package.json | |
| npm install | |
| touch $@ | |
| clean: |
| # usage: curl https://gist.github.com/raw/4631928/mirrornodejsdoc.sh | sh | |
| wget \ | |
| --recursive \ | |
| --level=5 \ | |
| --adjust-extension \ | |
| --convert-links \ | |
| --backup-converted \ | |
| --no-host-directories \ | |
| --page-requisites \ | |
| --timestamping \ |