Skip to content

Instantly share code, notes, and snippets.

View typesafedev's full-sized avatar
🏠
Functionally efficient

Andy Lam typesafedev

🏠
Functionally efficient
  • UK
View GitHub Profile
@typesafedev
typesafedev / latesttwotime.sh
Created November 30, 2018 08:45
Run latest twotime on latest node
npx -p node@latest twotime -v
//or
npx -p node-bin@latest twotime -v
@typesafedev
typesafedev / UpdateWinNpm5.6.0ToLatest
Last active November 29, 2018 11:04
Update npm on Windows from 5.6.0 to latest. From @arfaWong
#!/usr/bin/bash
cd "$PROGRAMFILES"/nodejs
rm npm npx npm.cmd npx.cmd
mv node_modules/npm node_modules/npm2
node node_modules/npm2/bin/npm-cli.js i -g npm@latest
rm -rf node_modules/npm2/
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 17 columns, instead of 9 in line 4.
id,name,owner_login,owner_id,owner_type,html_url,description,fork,created_at,updated_at,pushed_at,size,stargazers_count,language,forks_count,open_issues_count,score
943149,d3,mbostock,230541,User,https://github.com/mbostock/d3,A JavaScript visualization library for HTML and SVG.,FALSE,2010-09-27T17:22:42Z,2015-03-24T12:36:05Z,2015-03-20T19:01:30Z,72805,35863,JavaScript,9047,229,34.62675
2400938,fnordmetric,paulasmuth,564023,User,https://github.com/paulasmuth/fnordmetric,FnordMetric allows you collect and visualize timeseries data with SQL.,FALSE,2011-09-16T17:58:37Z,2015-03-24T05:48:15Z,2015-03-24T12:23:03Z,18137,4525,C++,362,89,9.765476
11010098,epoch,fastly,777070,Organization,https://github.com/fastly/epoch,"A general purpose, real-time visualization library.",FALSE,2013-06-27T23:04:32Z,2015-03-24T11:30:39Z,2015-03-08T03:44:15Z,3504,3911,HTML,186,45,24.238726
3859306,cubism,square,82592,Organization,https://github.com/square/cubism,Cubism.js: A JavaScript library for time series visualization.,FALSE,2012-0
@typesafedev
typesafedev / index.html
Last active January 22, 2018 09:21
RFC 4180 compliant CSV file demo with quoted strings.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>D3: Create SVG and Load CSV Data</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script>
<style type="text/css">
body {
background-color: grey;