Skip to content

Instantly share code, notes, and snippets.

View robinmitra's full-sized avatar
👋
h3110 w0r1d

Robin Mitra robinmitra

👋
h3110 w0r1d
View GitHub Profile
### Keybase proof
I hereby claim:
* I am robinmitra on github.
* I am robinmitra (https://keybase.io/robinmitra) on keybase.
* I have a public key ASCodCcll-pjzpklJKdlVMWRqYuG2yHNA7yLtZmAP-ETVwo
To claim this, I am signing this object:
@robinmitra
robinmitra / post-comment-on-pull-requests.sh
Last active May 9, 2019 16:22
Post comment on multiple Pull Requests
#!/usr/bin/env bash
GITHUB_USERNAME=<username>
GITHUB_ACCESS_TOKEN=<access-token>
REPO_URL=https://api.github.com/repos/<repo-owner>/<repo>
PR_BASE_URL=${REPO_URL}/pulls
COMMENT_BASE_URL=${REPO_URL}/issues
# initialization file (not found)
@robinmitra
robinmitra / main.dart
Created July 8, 2019 08:12
Learning Dart
class Deck {
List<Card> cards = [];
Deck() {
var ranks = ['Ace', 'Two', 'Three', 'Four'];
var suits = ['Diamonds', 'Hearts', 'Clubs', 'Spades'];
for (var suit in suits) {
for (var rank in ranks) {
var card = Card(rank: rank, suit: suit);
this.cards.add(card);