Skip to content

Instantly share code, notes, and snippets.

View subramanyamchitti's full-sized avatar

Subramanyam Chitti subramanyamchitti

  • Bigcommerce
  • Sydney
View GitHub Profile
### Keybase proof
I hereby claim:
* I am subramanyamchitti on github.
* I am subu (https://keybase.io/subu) on keybase.
* I have a public key whose fingerprint is 5201 BCAF 857F B279 C4A0 F3F2 A26D 1EE5 3D83 9A1E
To claim this, I am signing this object:
@subramanyamchitti
subramanyamchitti / failures
Created August 12, 2016 22:37 — forked from paulp/failures
testing coursier as a drop-in replacement
origin https://github.com/gitbucket/gitbucket (fetch)
origin https://github.com/gitbucket/gitbucket (push)
Aug 08 18:50:38 Downloaded https://repo1.maven.org/maven2/com/sun/mail/javax.mail/1.5.2/javax.mail-1.5.2.jar
Aug 08 18:50:38 Downloaded https://repo1.maven.org/maven2/com/typesafe/slick/slick_2.11/2.1.0/slick_2.11-2.1.0.jar
Aug 08 18:50:38 [info] Fetched artifacts of io.github.gitbucket:gitbucket_2.11:4.3.0
Aug 08 18:50:40 coursier.ResolutionException: 1 not found https://repo1.maven.org/maven2/org/apache/sshd/apache-sshd/1.2.0/apache-sshd-1.2.0.jar
Aug 08 18:50:40 [error] (*:update) coursier.ResolutionException: 1 not found https://repo1.maven.org/maven2/org/apache/sshd/apache-sshd/1.2.0/apache-sshd-1.2.0.jar
Aug 08 18:50:40 [error] Total time: 10 s, completed Aug 8, 2016 6:50:40 PM
@subramanyamchitti
subramanyamchitti / README.md
Created August 3, 2016 09:44 — forked from Igosuki/README.md
Create a DC/OS Single Master Cluster on AWS

Usage :

  chmod u+x ./zen.sh
  ./zen.sh my-dcos-stack
@subramanyamchitti
subramanyamchitti / asSeenFrom.md
Created July 27, 2016 04:39 — forked from gkossakowski/asSeenFrom.md
Understand Scala's core typechecking rules

Scala's "type T in class C as seen from a prefix type S" with examples

Introduction

Recently, I found myself in need to precisely understand Scala's core typechecking rules. I was particulary interested in understanding rules responsible for typechecking signatures of members defined in classes (and all types derived from them). Scala Language Specification (SLS) contains definition of the rules but lacks any examples. The definition of the rules uses mutual recursion and nested switch-like constructs that make it hard to follow. I've written down examples together with explanation how specific set of rules (grouped thematically) is applied. These notes helped me gain confidence that I fully understand Scala's core typechecking algorithm.

As Seen From

Let's quote the Scala spec for As Seen From (ASF) rules numbered for an easier reference:

@subramanyamchitti
subramanyamchitti / 0_reuse_code.js
Created April 7, 2016 03:57
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@subramanyamchitti
subramanyamchitti / compliment.b303.me.py
Created November 27, 2015 21:37 — forked from blha303/compliment.b303.me.py
Gets random comment from /r/gonewild, since they're pretty much all compliments. http://compliment.b303.me Warning: May contain sexual content
#!/usr/bin/env python3
import requests
from flask import *
import random
from apscheduler.schedulers.background import BackgroundScheduler
app = Flask(__name__)
scheduler = BackgroundScheduler()
url = "https://reddit.com/r/gonewild/comments.json?limit=200"