Skip to content

Instantly share code, notes, and snippets.

= Time & Versioning in Graphs

== Time as Attributes

  • Long (Seconds or Milliseconds since Epoch)
  • String ISO-XXX -> comparable
  • Simple String yyyy-mm-dd

Issues:

@pwpearson
pwpearson / Scala Spark Window Function Example.scala
Created July 22, 2016 14:18
Spark example of using row_number and rank.
// This example shows how to use row_number and rank to create
// a dataframe of precipitation values associated with a zip and date
// from the closest NOAA station
import org.apache.spark.sql.expressions.Window
import org.apache.spark.sql.functions._
// mocked NOAA weather station data
case class noaaData(zip:String,station:String,date:Long,value:String=null,distance:Int)
val t = Seq(
anonymous
anonymous / .tmux.conf
Created July 7, 2016 04:54
set -g default-terminal "screen-256color"
# change prefix command to C-z
set -g prefix C-z
unbind C-b
bind C-z last-window
bind z send-prefix
# setup | and - for window splitting
unbind %
bind | split-window -h
@DaniSancas
DaniSancas / neo4j_cypher_cheatsheet.md
Created June 14, 2016 23:52
Neo4j's Cypher queries cheatsheet

Neo4j Tutorial

Fundamentals

Store any kind of data using the following graph concepts:

  • Node: Graph data records
  • Relationship: Connect nodes (has direction and a type)
  • Property: Stores data in key-value pair in nodes and relationships
  • Label: Groups nodes and relationships (optional)
@btroncone
btroncone / rxjs_operators_by_example.md
Last active March 30, 2025 21:26
RxJS 5 Operators By Example
@psi-4ward
psi-4ward / waitForPort.sh
Created December 11, 2015 17:31
waitForPort.sh
#!/bin/bash
MAXTIME=30
PORTS=()
START_TSTAMP=$(date "+%s")
function help() {
>&2 echo "Wait until a port becomes open"
>&2 echo
>&2 echo "Usage: $0 [options] -h HOST -p Port"
@harlow
harlow / golang_job_queue.md
Last active March 29, 2025 04:55
Job queues in Golang
@catwell
catwell / localua.md
Last active February 17, 2016 20:28
Build self-contained versions of Lua + LuaRocks

Superseded by this.

@ericelliott
ericelliott / essential-javascript-links.md
Last active March 22, 2025 17:28
Essential JavaScript Links