Skip to content

Instantly share code, notes, and snippets.

View spanishgum's full-sized avatar
🏠
Working from home

Adam Stallard spanishgum

🏠
Working from home
View GitHub Profile
@spanishgum
spanishgum / export.csv
Created November 4, 2016 22:10
How can I use LIMIT on specific nodes in a path in CYPHER? (stack question)
p
[{},{},{"value":2016},{},{"value":1},{},{"value":1}]
[{},{},{"value":2016},{},{"value":1},{},{"value":2}]
[{},{},{"value":2016},{},{"value":1},{},{"value":3}]
[{},{},{"value":2016},{},{"value":1},{},{"value":4}]
[{},{},{"value":2016},{},{"value":1},{},{"value":5}]
[{},{},{"value":2016},{},{"value":1},{},{"value":24}]
[{},{},{"value":2016},{},{"value":1},{},{"value":25}]
[{},{},{"value":2016},{},{"value":1},{},{"value":9}]
[{},{},{"value":2016},{},{"value":1},{},{"value":10}]
'''
My teacher put a one liner for isprime on the board and we got into a brief discussion regarding efficiency.
It is well known that the occurence of primes up to N is 1/log(N).
I've done qa sieve program before in my undergrad that was cool, but was not concered with efficiency. So I was
wondering if I could exploit a pattern that would allow one to quickly mark out primes.
I totally found one here!
Basically, I want to mark out non primes in a sieve, but ONLY ONCE. That is, 4's will not do anything, but 2's
@spanishgum
spanishgum / agu_abstract
Last active October 4, 2016 15:25
My abstract submission for the AGU meeting in California.
Hey friends, I figured I would just a post a gist here so ya'll can get a feel for what I am working on.
You'll find the actual abstract below (between the lines). Or skip further down to see a layman's terms
description for the less technical folk :)
-----------------------------------------------------------------------
Enhancing SAMOS Data Access in DOMS via a Neo4j Property Graph Database.
The Shipboard Automated Meteorological and Oceanographic System (SAMOS) initiative provides routine
access to high-quality marine meteorological and near-surface oceanographic observations from research
vessels. The Distributed Oceanographic Match-Up Service (DOMS) under development is a centralized service