This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
type node struct { | |
children map[rune]*node | |
value rune | |
} | |
func newNode(v rune) *node { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on | |
set cursorline " Highlight the currently selected line | |
set hlsearch " highligh search results | |
set expandtab " expand <Tab>s with spaces; death to tabs! | |
set ruler " show current position at bottom | |
set number " Show line numbers | |
set ignorecase " Enable case insenstive search | |
set showmatch " show matching brackets | |
set autoindent " set the cursor at same indent as line above | |
set smartindent " try to be smart about indenting (C-style) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"net/http" | |
"time" | |
"golang.org/x/time/rate" | |
) | |
// ThrottledTransport Rate Limited HTTP Client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:8.1.2 | |
# Update the system | |
RUN apt-get -y update && apt-get -y install build-essential chrpath libssl-dev libxft-dev netcat unzip jq python-pip libpython-dev | |
# installing aws-cli | |
RUN pip install awscli | |
# frontend build dependencies | |
RUN npm install -g [email protected] --unsafe-perm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Result r4 = db.execute("MATCH (l:lorry)-->(d:delivery) OPTIONAL MATCH (d)-->(f:food {name:'avocado'}) RETURN l.driver AS driver, f.count as count"); | |
while (r4.hasNext()) { | |
Map<String, Object> row = r4.next(); | |
System.out.println("driver: "+row.get("driver") + ", avocados: " + row.get("count")); | |
} |