Skip to content

Instantly share code, notes, and snippets.

# -*- coding: utf-8 -*-
from bulbs.neo4jserver import Graph, Config, Neo4jClient
from bulbs.config import DEBUG
from bulbs.model import Node, Relationship
from bulbs.property import String, Integer, DateTime
from bulbs.utils import current_datetime
class Person(Node):
@dchomicz
dchomicz / api-test.php
Created January 16, 2014 19:29
Shorte.st Sample API usage
<?php
$curl_url = "https://api.shorte.st/s/CHANGE_TO_YOUR_TOKEN/facebook.com";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $curl_url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close($ch);
$array = json_decode($result);