Skip to content

Instantly share code, notes, and snippets.

View widged's full-sized avatar

Marielle Lange widged

View GitHub Profile
@widged
widged / notes.md
Last active September 12, 2017 19:17
GraphQL links. Articles to read and code to check.
@widged
widged / Readme.md
Last active August 28, 2015 10:43
Instant server without command line

For when you get tired of having to open the command line to quickly check a javascript demo that requires the code to run over a server.

Save the file server.command on your machine, make it executable chmod u+x server.command, drop (with copy) the file in the demo folder, double click on it. Press the reload button on the browser window that automatically opened.

For the nodeserver, you must have http-server pre-installed (npm install -g http-server)

@widged
widged / .gitignore
Created October 12, 2015 10:39 — forked from tomgp/.gitignore
Ternary Plot refactoring.
notional2005result.csv
notional2005result.json
@widged
widged / bertin500x490.jpg
Created October 12, 2015 10:42 — forked from tomgp/bertin500x490.jpg
Vibrational effect 1
bertin500x490.jpg

Importing the csv file from data.govt.nz. The header row is "Title","Url","DatasetType","Agency","AgencyContact","AgencyContactEmail","AgencyContactPhone","Description","Format","UpdateFrequency","Cost","CostInformation","SubmissionSource","Licence","LicenceURL","Date listed","Date last updated","DatasetLastUpdated","DatasetCreation","Guid"

USING PERIODIC COMMIT 100
LOAD CSV WITH HEADERS FROM "https://data.govt.nz/search/csv/?q=&CategoryID=0"
  AS line
WITH line LIMIT 500

LOAD CSV into Neo4j quickly and successfully

Since version 2.1 Neo4j provides out-of-the box support for CSV ingestion. The LOAD CSV command that was added to the Cypher Query language is a versatile and powerful ETL tool. It allows you to ingest CSV data from any URL into a friendly parameter stream for your simple or complex graph update operation, that …​ conversion.

@widged
widged / README.md
Created October 14, 2015 22:53 — forked from enjalot/README.md
cosine similarity

Click on the various examples

Each example is a random vector in the same "space" as the sample in the top left.

Drag on individual rows

Each row represents one dimension of our vectors. You can drag them back and forth to change the value of our vector for that dimension.

Watch how the similarity bar changes

The bar below each vector is a measure of how similar it is to the sample in the top left.

Whats going on?

@widged
widged / README.md
Created October 14, 2015 22:54 — forked from enjalot/README.md
manhattan distance

Click on the various examples

Each example is a random vector in the same "space" as the sample in the top left.

Drag on individual rows

Each row represents one dimension of our vectors. You can drag them back and forth to change the value of our vector for that dimension.

Watch how the similarity bar changes

The bar below each vector is a measure of how similar it is to the sample in the top left.

Whats going on?

@widged
widged / east.geojson
Created October 16, 2015 05:15 — forked from mapsam/east.geojson
a geometry collection
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@widged
widged / index.html
Last active October 27, 2016 11:08 — forked from anonymous/index.html
example of search on tree layout
<!DOCTYPE html>
<title>Callgraph expandable tree visualization on 16 processors</title>
<meta charset="utf-8">
<style>
.node {
cursor: pointer;
}
.node circle {