Skip to content

Instantly share code, notes, and snippets.

Privacy Policy

Last revised on [DATE]

The Gist

[COMPANY] will collect certain non-personally identify information about you as you use our sites. We may use this data to better understand our users. We can also publish this data, but the data will be about a large group of users, not individuals.

We will also ask you to provide personal information, but you'll always be able to opt out. If you give us personal information, we won't do anything evil with it.

momer / terms_of_service.markdown
Created March 12, 2023 18:02 — forked from devver/terms_of_service.markdown
A general Terms of Service under the Creative Commons License

Terms of Service

Last revised on [DATE]

The Gist

[COMPANY] operates the [SERVICE] service, which we hope you use. If you use it, please use it responsibly. If you don't, we'll have to terminate your account.

For paid accounts, you'll be charged on a monthly basis. You can cancel anytime, but there are no refunds.

momer / metadata
Last active February 22, 2023 22:39
"name": {
"title": "Full Name",
"type": "string",
"githubKey": "name"
"email": {
"title": "E-Mail",
"type": "string",
"githubKey": "email",
package myApp;
class ImplementsDynamic
implements Dynamic<String> {
public var present:Int;
public function new() {}
momer /
Last active April 22, 2024 18:07
SQL learning Resources for Beginners

There are a number of good introductory SQL resources available for free and online. There are also some paid resources which I recommend for beginners, that are very effective, and well worth expensing in my opinion.

A couple of notes:

  • I haven’t used all of these resources, but they come with strong recommendations around the web or myself/my peers.
  • You absolutely don’t need to use every single resource. Find a couple that work for you, and go to town.
  • You can always reach out to me if you have questions. I always paste this online when people are new to asking very technical questions – it’s not meant to be snarky – it's a gentle guide on how to compose your questions and gather necessary resources in order to best give technical people the information needed to get a quick/effective response:

Video/Class/Mini-course based:

  1. Stanford Self-paced ‘Database’ course
  • The original Coursera
momer / grpc_with_reconnect.go
Last active February 7, 2024 00:44
A pattern I created to maintain connections to an RPC server in Go. Since net/rpc does not provide any methods for automatically reconnecting to an RPC server, I needed a work-around. Additionally, rpc.Client does not export any state variables (rpc.Client.shutdown and rpc.Client.closing) nor does it export the Client's Mutex. So, we wrap the rp…
package main
import (
"fmt" RACK1 Up Normal 658.17 MB 34.04% -9216737431043722247 RACK1 Up Normal 309.34 KB 32.87% -9211045726435137916 RACK1 Up Normal 309.34 KB 32.87% -9197920792308199209
momer / example.xml
Created May 31, 2014 22:16
Solrxml unmarshal
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">10</int>
<arr name="filelist">
<str name="name">segments_d</str>
<long name="size">110</long>
; Sample supervisor config file.
file=/tmp/supervisor.sock ; (the path to the socket file)
;chmod=0700 ; sockef file mode (default 0700)
;chown=nobody:nogroup ; socket file uid:gid owner
;username=user ; (default is no username (open server))
;password=123 ; (default is no password (open server))
;[inet_http_server] ; inet (TCP) server disabled by default