Skip to content

Instantly share code, notes, and snippets.

import porc
# Create client with your API key
client = porc.Client("YOUR_API_KEY")
# Example Data
collection = "users"
key = "test"
data = {
"tax_id": "",
require 'celluloid/io'
require 'json'
# require 'celluloid/autostart'
class TestServer
include Celluloid::IO
finalizer :shutdown
def initialize(host, port)
puts "*** Starting echo server on #{host}:#{port}"
require 'celluloid/io'
require 'json'
# require 'celluloid/autostart'
class TestServer
include Celluloid::IO
finalizer :shutdown
def initialize(host, port)
puts "*** Starting echo server on #{host}:#{port}"
require 'celluloid/io'
require 'json'
# require 'celluloid/autostart'
class TestServer
include Celluloid::IO
finalizer :shutdown
def initialize(host, port)
puts "*** Starting echo server on #{host}:#{port}"

Keybase proof

I hereby claim:

  • I am roder on github.
  • I am roder (https://keybase.io/roder) on keybase.
  • I have a public key whose fingerprint is 811C 6F2C 76FA D983 DE9D A29E 45A4 4308 4142 CD52

To claim this, I am signing this object:

@roder
roder / gist:6641650
Last active December 23, 2015 13:19
{
"results":[
{
"path" : {
"collection":"people",
"key":"james",
"ref":"28f29fc9dae6372c"
},
"value":{"msg":"hello world"},
"score":0.15,
@roder
roder / gist:5428312
Created April 21, 2013 03:14
quick and dirty function for JSON REST APIs for your shell.
function jurl() {
case `echo $1 | tr '[a-z]' '[A-Z]'` in
"PUT"|"POST")
curl -vs -H "Content-Type: application/json" -X $1 -d "${2}" $3 | python -mjson.tool
;;
"GET"|"DELETE")
curl -vs -H "Content-Type: application/json" -X $1 $2 | python -mjson.tool
;;
*)
echo "Error: Please use of the following HTTP methods: GET, POST, PUT, DELETE."
ssh-dss AAAAB3NzaC1kc3MAAACBAOJba+6pCO6cKl3MvDctH1EQwKd+qpLtI3NhEzB3TZLDTDZ59mbThWWdeTAyFiutryysDozUeR50G0OSF0iXfCzQ++ntM/VNrUJDn72IsfEFXv24YAOVhBeM0Voq2hl34Sdcy/UdBxBWRDRbRPp/BaLrQa9ERq030TTLS4FNBG19AAAAFQCJLc5UDT0J+LayGBEhCg8gI1Gz9QAAAIAQL3q7smp3CkB6SpVHyRw4Y4GHCyiMu7qhfEz9lFhDa3OJIyPXgOV4dnIIokCze3YB97hg7cNp3tB4/istRhyoXeQ7/dr1wNCg/5pkOfq9eJJNAt0C6XiVAx7ydAKDG1HW3BU1vEoCaABzJR9S8Z5BOD9MKEPPdeuADpNXsYrbMQAAAIAoOnf+VQC2IHj5yGdMJ8jdeG3u9a8t1UTqTNfl8VwOA1sG6QLiS7HmY1SICLwLZu/7pkTOKK1wkaMPem8WoNabb1oe3ezK/VFgy5P8WifAeTWuESk7j7K65RvfUcb9yjSWf9sqZA439vJssQtC9pYUi/zlAkToC4IzvmtjXUzMxQ== jtran@ubuntu
@roder
roder / gist:1478299
Created December 14, 2011 20:16
Matt Heitzenroder SSH Public Key
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuvp4DliG7bRgSKEFywMLcIFefxa9h7ThH13Gp3ZnmjkwedC6KFvqVEYWMK7MO9HXYa8eLS389Cq1tPrUXnC2z9AkvFReGfg+SID+zkY+1vP5j4gJSR6RD9DxCgdT13ncUzgtoC/q76OAVImH7actvNZ9KjLH3gft3tbBMC3Xpiwhjirh+BY+ObJ4QjRK/DWyWUv7pn13wWt1jo+6lfUv4gqSzmthubWI7oUPjTyRqpSuAQf2CFPsV3s51k6JveixaS+tJ/jaCv4usZCyTTLviyh8fLCpVojYEU9S67PLqrWhjWUGuW+B2ietPMEaq5WZFyZvOVXpASeQY9PB3umgUQ== Matt Heitzenroder <mheitzenroder at gmail dot com>
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuvp4DliG7bRgSKEFywMLcIFefxa9h7ThH13Gp3ZnmjkwedC6KFvqVEYWMK7MO9HXYa8eLS389Cq1tPrUXnC2z9AkvFReGfg+SID+zkY+1vP5j4gJSR6RD9DxCgdT13ncUzgtoC/q76OAVImH7actvNZ9KjLH3gft3tbBMC3Xpiwhjirh+BY+ObJ4QjRK/DWyWUv7pn13wWt1jo+6lfUv4gqSzmthubWI7oUPjTyRqpSuAQf2CFPsV3s51k6JveixaS+tJ/jaCv4usZCyTTLviyh8fLCpVojYEU9S67PLqrWhjWUGuW+B2ietPMEaq5WZFyZvOVXpASeQY9PB3umgUQ== [email protected]