Showing Voronoi with TubeMaps
Visualization
I hereby claim:
- I am nicola on github.
- I am nicolagreco (https://keybase.io/nicolagreco) on keybase.
- I have a public key whose fingerprint is 4BE2 A94A C6B3 51B4 2D36 F3F1 FFB3 E1D8 A842 4F55
To claim this, I am signing this object:
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
var fs = require("fs"); | |
var forge = require('node-forge'); | |
var debug = require('debug')('converter'); | |
var BigInteger = forge.jsbn.BigInteger; | |
/* | |
* Convert | |
* | |
* @param {String} login | |
* @param {String} public |
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
// v1 | |
const GossipSwarm = require('gossip-swarm') | |
const CyclonProtocol = require('gossip-cyclon') | |
const swarm = GossipSwarm({ | |
shuffle: CyclonProtocol | |
}) | |
swarm.shuffle() |
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
cat messages.htm \ | |
| iconv -f utf8 -t ascii//TRANSLIT//IGNORE \ | |
| sed "s/['\`]//g" \ | |
| tr '\n' ' ' \ | |
| sed 's/<div class="thread">\([a-zA-Z0-9,\.\ &#;-]*\)\(<div class="message">\)/\ | |
{ thread: @ESCAPE0x1@\1@ESCAPE0x1@, messages:[\2/g' \ | |
| sed 's/<div class="message"><div class="message_header"><span class="user">\([a-zA-Z0-9,\.\ &#;-]*\)<\/span>/, {from:@ESCAPE0x1@\1@ESCAPE0x1@,/g' \ | |
| sed 's/<span class="meta">\([a-zA-Z0-9\ ,:+-]*\)<\/span><\/div><\/div>/ date:@ESCAPE0x1@\1@ESCAPE0x1@,/g' \ | |
| sed 's/<p>/message:@ESCAPE0x1@/g' \ | |
| sed 's/<\/p>/@ESCAPE0x1@}/g' \ |
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
Verifying my Blockstack ID is secured with the address 1BsBtACmEk1mbx2Ngpqudo4wraZ87WiU9W https://explorer.blockstack.org/address/1BsBtACmEk1mbx2Ngpqudo4wraZ87WiU9W |
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
[ | |
{ | |
"lambda": 10, | |
"return": 4, | |
"eix": 1152921504606847000, | |
"gib": 1073741824, | |
"kib": 1024, | |
"mib": 1048576, | |
"pib": 1125899906842624, | |
"tib": 1099511627776, |
This is part of a set of visualisation that try to improve the Barclay's bike distribution in London. Visualizing the map of the London Tube is the first step to understand any correlation with bikes usage.
The technical aim I tried to achieve, is a very simple codebase that enables interaction (such as zooming) for later data analysis.
I have been using RandomETC's idea. However, in order to support scaling and to have a more structured code-base, most of the code has been re-written.
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
// This script counts how many days you have been in the USA | |
// This is a personal script, use it at your own risk | |
// This is not an official tool and it can do wrong calculations | |
// which might result in loss in visa status, green card, citizenship | |
// and whatever you can think of | |
// This extracts data from the i94 website from the history result view | |
function daysInYear(year) { | |
var recs = angular.element(".history-results").scope().vm.recs |