Skip to content

Instantly share code, notes, and snippets.

View jgillmanjr's full-sized avatar

Jason Gillman Jr. jgillmanjr

View GitHub Profile
@jgillmanjr
jgillmanjr / style.sql
Last active February 13, 2016 04:05
SQL Styling example
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
@jgillmanjr
jgillmanjr / test.py
Created December 19, 2014 21:59
pySchema4neo test script
#!/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)
@jgillmanjr
jgillmanjr / __init__.py
Created December 15, 2014 21:44
Overload errors
"""
A layer to provide for dataconsistency utilizing a schema
Author: Jason Gillman Jr.
"""
import py2neo
import json
def validateSchema(schema):
@jgillmanjr
jgillmanjr / parse.py
Last active August 29, 2015 14:09
Comment Scraper
import facebook
import json
import iso8601
import pytz
tZone = pytz.timezone('US/Eastern')
token = raw_input('User Token: ')
threadID = raw_input('Thread ID: ')
@jgillmanjr
jgillmanjr / exceptionTest.py
Last active August 29, 2015 14:07
Requests Exception Test
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()