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 /
Last active Jul 2, 2019
A simple script to scrape a google group.
import json
from os.path import exists
from selenium import webdriver
from import WebDriverWait
from selenium.common.exceptions import TimeoutException
class GoogleGroupsScraper(object):
""" A simple class to scrape a google group. """
punchagan /
Last active Jun 25, 2019
Nikola to Hugo tools
#!/usr/bin/env python3
""" Script to convert a Nikola blog to Hugo
- toml
./ /path/to/nikola/blog
punchagan /
Last active Jun 12, 2019
A simple Flask sockets example
# Copy of
from flask import Flask, render_template
from flask_sockets import Sockets
app = Flask(__name__)
app.debug = True
sockets = Sockets(app)
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 / 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 / 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 / gh-ipynb.user.js
Last active Oct 8, 2017
GitHub IPynb rendering
View gh-ipynb.user.js
// ==UserScript==
// @name GitHub IPynb rendering
// @namespace ghipynb
// @version 0.3.1
// @description Renders raw IPython notebooks on GitHub using nbviewer and Frames!
// @license WTFPL
// @match *://**
// @match *://*
// @match *://*
// @grant none
""" A simple script to search for GitHub users. """
from __future__ import print_function
import json
from os.path import abspath, dirname, exists, join
import requests
from requests.utils import quote
punchagan / Presentation.ipynb
Created Jul 15, 2014
cinspect presentation IPython notebook
View Presentation.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
punchagan / pygmentize.el
Created Nov 9, 2014
Pygmentize code for Nikola
View pygmentize.el
;; Use pygments highlighting for code
(defun pygmentize (lang code)
"Use Pygments to highlight the given code and return the output"
(insert code)
(let ((lang (or (cdr (assoc lang org-pygments-language-alist)) "text")))
;; A crazy hack!! Why src-block have no info?!@!@#
(let* ((file-name (format "%s.png" (sha1 code)))
(output-path (format "%s" file-name))
(url (format "%s" file-name)))
You can’t perform that action at this time.