Skip to content

Instantly share code, notes, and snippets.

View sivy's full-sized avatar

Steve Ivy sivy

View GitHub Profile
class Foo(object):
num = 1
ary = []
class Bar(Foo):
pass
Bar.num = 2
Bar.ary.extend([1])
Proposed payload object
- payload
- total_score: int
- relevant_questions: array
- style
- reading_level: int (not currently returned)
- sentiment: int (not currently returned)
- formality: int (not currently returned)
- editorial_level: int (not currently returned)
- phrase
Proposed payload object
- payload
- total_score: int
- relevant_questions: array
- style
- reading_level: int (not currently returned)
- sentiment: int (not currently returned)
- formality: int (not currently returned)
- editorial_level: int (not currently returned)
- phrase
@sivy
sivy / archive.html
Last active December 10, 2015 00:48 — forked from anonymous/archive.html
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Archive - {{ site.title }}</title>
<meta name="author" content="{{ user.display_name }}">
<meta name="description" content="{{ site.description }}">
<meta name="viewport" content="width=device-width; initial-scale=1; maximum-scale=1">
<link href="/atom.xml" rel="alternate" title="{{ site.url }} feed" type="application/atom+xml">
@sivy
sivy / redis_session_backend.py
Created April 11, 2012 01:53 — forked from mikeyk/redis_session_backend.py
A redis backend for Django Sessions, tested on Django 1.3+
from django.contrib.sessions.backends.base import SessionBase, CreateError
from django.conf import settings
from django.utils.encoding import force_unicode
import redis
class SessionStore(SessionBase):
""" Redis store for sessions"""
def __init__(self, session_key=None):
self.redis = redis.Redis(
@sivy
sivy / README.markdown
Created January 20, 2012 16:34 — forked from lukemorton/README.markdown
init.d file for statsd and carbon on debian

Ideally do this as SUDO

yum install -y git gcc gcc-c++ zlib-devel curl curl-devel openssl

Install node

wget http://nodejs.org/dist/node-v0.4.9.tar.gz
@sivy
sivy / SIvy.pm
Created July 30, 2010 13:42 — forked from arodland/SIvy.pm
package Crypt::RSA::Key::Private::SIvy;
use strict;
use warnings;
use MIME::Base64::URLSafe ();
use Math::BigInt;
use base 'Crypt::RSA::Key::Private';
sub from_string {
my ($class, $string) = @_;