This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function updatearc() { | |
var point = [45.337, -0.472]; | |
var point2 = [49.045, 2.153]; | |
pathArcs.attr("d", function (d) { | |
var source = map.latLngToLayerPoint(new L.LatLng(point[0], point[1])); | |
var target = map.latLngToLayerPoint(new L.LatLng(point2[0], point2[1])); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
.node { | |
stroke: #fff; | |
stroke-width: 1.5px; | |
} | |
.link { |
d3.js hello world block.
d3.js hello world block.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source_lng | source_lat | target_lng | target_lat | |
---|---|---|---|---|
-99.5606025 | 41.068178502813595 | -106.503961875 | 33.051502817366334 | |
-99.5606025 | 41.068178502813595 | -97.27544625 | 34.29490081496779 | |
-99.5606025 | 41.068178502813595 | -92.793024375 | 34.837711658059135 | |
-99.5606025 | 41.068178502813595 | -100.3076728125 | 41.85852354782116 | |
-99.5606025 | 41.068178502813595 | -104.6143134375 | 43.18636214435451 | |
-99.5606025 | 41.068178502813595 | -106.152399375 | 45.57291634897 | |
-99.5606025 | 41.068178502813595 | -105.5811103125 | 42.3800618087319 | |
-99.5606025 | 41.068178502813595 | -74.610651328125 | 42.160561343227656 | |
-99.5606025 | 41.068178502813595 | -78.148248984375 | 40.20112201100485 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
.node { | |
fill: #000; | |
} | |
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
tcp { | |
port => 242 | |
} | |
file { | |
type => "syslog" | |
path => [ "/var/log/*.log", "/var/log/messages", "/var/log/syslog" ] | |
start_position => "beginning" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vim -p [filename] [filename] : open all files in tabs | |
:set syntax=perl : force syntax (usually taken from file extension) | |
* # g* g# : find word under cursor (<cword>) (forwards/backwards) | |
% : match brackets {}[]() | |
. : repeat last modification | |
<C-W><C-W> : switch vindow, very handy for split screen, quick fix.. | |
<C-J> : join lines (current with following) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# warning order of json keys/values pairs could change on the twitter stream api, | |
# and you should modify the sed regexp | |
export TUSER=toto | |
export PASS=123456 | |
curl -s -d 'track=google' http://stream.twitter.com/1/statuses/filter.json -u$TUSER:$PASS | sed 's/.*text":"\(.*\)","crea.*_name":"\(.*\)","name.*/\2\t\t\1/' |
OlderNewer