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
SELECT | |
t.some_field, | |
t2.another_field | |
FROM | |
table t | |
INNER JOIN table2 t2 ON t.fkey = t2.pkey | |
WHERE | |
t.some_field = 'f00bar' | |
UNION SELECT | |
t3.field |
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/python | |
import sys | |
sys.path.append('../') # So I can load pySchema4neo, yo | |
from pySchema4neo import Schema | |
import py2neo | |
myGraph = py2neo.Graph() | |
mySchema = Schema('../documentation/examples/schemas/exampleSchema.json', 'thisisnotapathjustaplaceholder', myGraph) |
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
""" | |
A layer to provide for dataconsistency utilizing a schema | |
Author: Jason Gillman Jr. | |
""" | |
import py2neo | |
import json | |
def validateSchema(schema): |
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 facebook | |
import json | |
import iso8601 | |
import pytz | |
tZone = pytz.timezone('US/Eastern') | |
token = raw_input('User Token: ') | |
threadID = raw_input('Thread ID: ') |
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 snakeStorm import snakeStorm | |
con = snakeStorm('validuser', 'validpass', 'storm/server/list', version = 'bleed') | |
con.changeBase('https://test-api-server.example.com', 20900) | |
print con.request() |
NewerOlder