Skip to content

Instantly share code, notes, and snippets.

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

fajaryanw

🏠
Working from home
View GitHub Profile
@fajaryanw
fajaryanw / byobuCommands
Created September 12, 2017 07:18 — forked from jshaw/byobuCommands
Byobu Commands
Byobu Commands
==============
byobu Screen manager
Level 0 Commands (Quick Start)
------------------------------
<F2> Create a new window
@fajaryanw
fajaryanw / uniqueId.adoc
Created July 9, 2017 02:37 — forked from tekiegirl/uniqueId.adoc
Using the graph to control unique id generation.

Using the graph to control unique id generation

Introduction

This gist was prompted by Nigel Small’s tweet of a query to generate a unique id for a node (and is posted here with his agreement). It inspired me to think about how it could be used in a full example, unrestricted by Twitter’s 140 characters. I have also looked at how we could generate different sets of unique ids for different labels.

Auto-incrementing #Neo4j counter MERGE (x:Counter {name:'foo'}) ON CREATE SET x.count = 0 ON MATCH SET x.count = x.count + 1 RETURN x.count

— Nigel Small (@technige) December 16, 2013