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
MATCH (f:Candidate) | |
MATCH (f)<-[n:CONTRIBUTED_TO]-() | |
WITH f, sum(n.amount) AS received WHERE received > 0 | |
MATCH (f)-[n:PAYED]->() | |
WITH f, received, sum(n.amount) AS spent | |
RETURN f.name AS candidate, spent, received |
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
= Neoites who'd like Atom Editor invites | |
:neo4j-version: 2.0.0 | |
:author: Chris Leishman | |
:twitter: @cleishm | |
//setup | |
//hide | |
[source,cypher] | |
---- |
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
### Keybase proof | |
I hereby claim: | |
* I am cleishm on github. | |
* I am cleishm (https://keybase.io/cleishm) on keybase. | |
* I have a public key whose fingerprint is 80F6 D6B0 D90C 6747 7533 44CA B5A9 E81B 565E 89E0 | |
To claim this, I am signing this object: |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd"> | |
<meta> | |
<author>Zach Graves (zachg@yahoo-inc.com)</author> | |
<description>Gowalla API</description> | |
<documentationURL>http://gowalla.com/api/explorer#/spots/18568</documentationURL> | |
<documentationURL>http://gowalla.com/api/explorer#/spots?lat=30.2697&lng=-97.7494&radius=50</documentationURL> | |
<sampleQuery>select * from {table} where id=18568 and api_key='fa574894bddc43aa96c556eb457b4009';</sampleQuery> | |
<sampleQuery>select * from {table} where lat='30.2697' and lng='-97.7494' and radius='50' and api_key='fa574894bddc43aa96c556eb457b4009';</sampleQuery> | |
</meta> |
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
def tags=(tags) | |
@tags = [ tags ].flatten.flat_map {|k| k.split(',')}.map(&:strip).uniq | |
end |
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
import org.neo4j.kernel.impl.batchinsert.*; | |
import org.neo4j.graphdb.*; | |
import java.util.*; | |
class RandomDB { | |
public static void main(final String args[]) { | |
final Map<String, String> params = new HashMap<String,String>(); | |
params.put("neostore.nodestore.db.mapped_memory", "1024M"); | |
params.put("neostore.relationshipstore.db.mapped_memory", "2048M"); |
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
function formatTime(time) { | |
var hours = Math.floor(time / 3600000); | |
var min = Math.floor(((time % 3600000) / 60000)); | |
var sec = Math.floor(((time % 60000) / 1000)); | |
var msec = time % 1000; | |
if (hours < 10) | |
hours = '0' + hours; | |
if (min < 10) | |
min = '0' + min; | |
if (sec < 10) |
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
#!/usr/bin/env ruby | |
require 'digest/md5' | |
require 'base64' | |
if ARGV.length != 1 | |
$stderr.puts "usage: #{$0} secret" | |
exit 1 | |
end | |
timestamp = Time.now.to_i |
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
= Product Catalog | |
Aravind R. Yarram <yaravind@gmail.com> | |
v1.0, 17-Sep-2013 | |
== Domain | |
A product catalog is a collection of products, their categories, manufacturers with their pricing information. Products can be sold separately, included in one or more catalogs or used as substitute products | |
You can perform the following operations on a product: | |
Create, Update, Delete (Not recommended, deactivate instead), Deactivate (We should deactivate products that are no longer available instead of deleting them, because they are included in past orders, quotes, or opportunities.), Search etc. |
OlderNewer