Skip to content

Instantly share code, notes, and snippets.

// -*- 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.
https://static.googleusercontent.com/media/guidelines.raterhub.com/en//searchqualityevaluatorguidelines.pdf
/* 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,
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
@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):

@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 / 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 / redditthing.py
Created December 4, 2019 15:56
reddithing.py
class NotFound(Exception):
pass
CreationError = tdb.CreationError
thing_types = {}
rel_types = {}
@sonnyksimon
sonnyksimon / README.md
Last active March 13, 2020 17:47
content mapping in jq :: the filter maps each post to its slug, and the reverse filter reverts it

content mapping in jq :: the filter maps each post to its slug, and the reverse filter reverts it