Skip to content

Instantly share code, notes, and snippets.

Puneeth Chaganti punchagan

Block or report user

Report or block punchagan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
punchagan / .gitignore
Last active Oct 17, 2019
Whatsapp Broadcast Export to Zulip
View .gitignore
punchagan /
Created Aug 3, 2019
UPAI topscore request example
import requests
import json
# Obtain this from
client_id = 'XXX'
client_secret = 'YYY'
data = {
'grant_type': 'client_credentials',
punchagan / quidditch.clj
Created Mar 30, 2019
Quidditch simulation - ClojureBridge BLR workshop
View quidditch.clj
(ns teaching-clojure.quidditch)
(def game-at-start
{:gryffindor {:score 0
:players 7}
:slytherin {:score 0
:players 7}})
(def opposition {:gryffindor :slytherin
:slytherin :gryffindor})
punchagan /
Last active Dec 7, 2019
Nikola to Hugo tools
#!/usr/bin/env python3
""" Script to convert a Nikola blog to Hugo
- toml
./ /path/to/nikola/blog
punchagan / kindle.js
Last active Aug 21, 2018
Readable view & Downloads for Kindle notebook (highlights) page
View kindle.js
// Visit
var highlights_markdown = function(){
var markdown = "";
for (var i=0; i < highlights.length; i++){
markdown += "> " + highlights[i] + "\n\n";
var note = notes[i];
if (note !== "") {
markdown += note + "\n\n";
punchagan /
Last active Apr 23, 2019 — forked from bartoszmajsak/
How to automatically prepend git commit with a branch name
# This way you can customize which branches should be skipped when
# prepending commit message.
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master develop test release/candidate)
BRANCH_NAME=$(git symbolic-ref --short HEAD)
punchagan / *scratch*.el
Created Jun 21, 2016
Org drill related code
View *scratch*.el
(defun my/org-drill (tag)
(interactive "MTag: ")
(let ((org-drill-tag tag))
(call-interactively #'org-drill)))
punchagan / elfeed-url-bookmarklet.js
Created Jun 11, 2016
Elfeed org-capture bookmarklet
View elfeed-url-bookmarklet.js
var url_element =
document.querySelector('link[type="application/rss+xml"]') ||
document.querySelector('link[type="application/atom+xml"]') ||
var url = url_element.href;
location.href = 'org-protocol://capture://L/'+
View org-column-new-row.el
(org-defkey org-columns-map "N" 'pc/org-columns-new-row)
(defun pc/org-columns-new-row (&optional key)
"Allow adding a new row."
punchagan / *clocking*.el
Last active Jun 1, 2017
Org clock demo code
View *clocking*.el
(if (org-clocking-p)
(message (concat "I am currently clocking into " org-clock-heading))
(message "I am slacking off!"))
You can’t perform that action at this time.