Skip to content

Instantly share code, notes, and snippets.

@sonnyksimon
sonnyksimon / redditthing.py
Created December 4, 2019 15:56
reddithing.py
class NotFound(Exception):
pass
CreationError = tdb.CreationError
thing_types = {}
rel_types = {}
@sonnyksimon
sonnyksimon / sample.graphql
Last active December 5, 2019 17:14
sample.graphql
scalar Timestamp
type App {
users: [User]
securityEnabled: Boolean!
}
type User {
username: String!
displayName: String
@sonnyksimon
sonnyksimon / 20191205-tech.txt
Created December 5, 2019 17:12
20191205-tech.txt
golang, jq, dotnet-core
-
postgres, mysql, sqlite, oracledb, sqlserver, cassandra, mongodb, redis, memcached, kafka, rabbitmq, haproxy, log
-
react, jquery, angular, vue
-
18.01, 18.02, 18.03, 18.06
-
6.0001, 6.042J, 6.01/2/3/8, 6.004, 6.006, 6.009, 6.031, 6.033, 6.034, 6.045
-
@sonnyksimon
sonnyksimon / emacs-lisp.md
Created December 13, 2019 14:32
install routine for recommended Common LISP configuration

Fire up a terminal:

Install Emacs (IDE):

sudo apt-get install emacs

Install SBCL (Compiler):

package main
// This code is intended to be hackable to support for special-purpose or
// custom operations, though it's even better if you can come up with a new
// surgical primitive general enough to ship with the stock version. For
// either case, here's a guide to the architecture.
//
// The core classes are largely about deserializing and reserializing
// import streams. In between these two operations the repo state
// lives in a fairly simple object, Repository. The main part of
/* This is the Porter stemming algorithm, coded up as thread-safe ANSI C
by the author.
It may be be regarded as cononical, in that it follows the algorithm
presented in
Porter, 1980, An algorithm for suffix stripping, Program, Vol. 14,
no. 3, pp 130-137,
https://static.googleusercontent.com/media/guidelines.raterhub.com/en//searchqualityevaluatorguidelines.pdf
# -*- coding: utf-8 -*-
"""
rmake
~~~~~
A random string generator, with 62 distinct characters
and upto 62^N possible values. If 10^6 values
are already generated, there's a 10^6/62^N
chance of collision.
// -*- coding: utf-8 -*-
/*
rmake
~~~~~
A random string generator, with 62 distinct characters
and upto 62^N possible values. If 10^6 values
are already generated, there's a 10^6/62^N
chance of collision.
@sonnyksimon
sonnyksimon / web.py
Last active December 20, 2019 15:02
A label for a merger between Flask and web.py's database API.
# -*- coding: -*-
"""
web
~~~
A label for a merger between Flask and web.py's database API.
import flaskweb as web
app = web.app(__name__)