Make a package.json
file if you don't have one yet:
npm init
# just keep pressing enter.
# this will create the file `package.json`
Being new to Cypher and Neo4j, I am having trouble constructing my query for my use-case. I am building a simple ACL (access control list) and am looking for a path through permission relationships an up a hierarchy as well. A picture may better explain it:
Key:
@Test public void testFilterWithPredicatePairNumbers() { | |
final List<Integer> numbers = getNumbers(); | |
final List<Integer> onlyPair = filter(numbers, new Predicate<Integer>() { | |
public boolean apply(Integer input) { | |
return input % 2 == 0; | |
} | |
}); | |
assertThat("deveriam vir apenas os numeros pares entre [0-10]", | |
onlyPair, are(2, 4, 6, 8, 10) ); |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
# Video: http://rubyhoedown2008.confreaks.com/08-chris-wanstrath-keynote.html | |
Hi everyone, I'm Chris Wanstrath. | |
When Jeremy asked me to come talk, I said yes. Hell yes. Immediately. But | |
then I took a few moments and thought, Wait, why? Why me? What am I supposed | |
to say that's interesting? Something about Ruby, perhaps. Maybe the | |
future of it. The future of something, at least. That sounds | |
keynote-y. | |