Skip to content

Instantly share code, notes, and snippets.

@arunsrin
arunsrin / webapp.go
Created June 13, 2021 07:31
from the book "Learning Go"
package main
import (
"errors"
"fmt"
"net/http"
)
func main() {
l := LoggerAdaptor(LogOutput)
@arunsrin
arunsrin / librarything.py
Created October 17, 2016 10:05
librarything stats
# -*- coding: utf-8 -*-
"""
Created on Tue Sep 27 15:34:55 2016
@author: arunsrin
"""
import csv
from bokeh.plotting import output_file, show
from bokeh.charts import Bar
@arunsrin
arunsrin / gist:ec6350a3a6149732ef75372ad2c53c65
Created July 28, 2016 03:58
Undelivered Mail Returned to Sender
Return-Path: <>
Received: from compute6.internal (compute6.nyi.internal [10.202.2.46])
by sloti36d1t17 (Cyrus 3.0.0-beta3-git-fastmail-13630) with LMTPA;
Wed, 27 Jul 2016 19:08:12 -0400
X-Cyrus-Session-Id: sloti36d1t17-2899356-1469660892-2-11601642058660059628
X-Sieve: CMU Sieve 2.4
X-Spam-known-sender: no
X-Spam-score: 1.4
X-Spam-hits: BAYES_50 0.8, HTML_MESSAGE 0.001, ME_NOAUTH 0.01, RCVD_IN_DNSWL_LOW -0.7,
TRACKER_ID 1.306, LANGUAGES en, BAYES_USED global, SA_VERSION 3.3.2
@arunsrin
arunsrin / duckpan-crontab
Created August 9, 2012 10:37
duckpan query for crontab
Query: crontab 42 12 3 Feb Sat
DDG::ZeroClickInfo {
Parents WWW::DuckDuckGo::ZeroClickInfo
Linear @ISA DDG::ZeroClickInfo, WWW::DuckDuckGo::ZeroClickInfo, Moo::Object
public methods (1) : new
private methods (0)
internals: {
answer "Cron will schedule the job at this frequency:
12:42:00 on 2 Feb, 2013