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 /
Created Aug 15, 2013
Simple Issue fetching from GitHub
import github
import codecs
from getpass import getpass
passwd = getpass()
gh = github.Github('punchagan', passwd)
o2b = gh.get_repo('punchagan/org2blog')
open_issues = list(o2b.get_issues(state='open'))
punchagan / nikola-tag-completion.el
Last active Dec 23, 2015
Tag completion for Nikola in emacs
View nikola-tag-completion.el
;; Get tags used in the nikola site, using the tags plugin.
(defun nikola-tags-get ()
"Get the current tags in the site, given the site path."
(let* ((nikola-command
(nikola-site (file-name-directory
(or (buffer-file-name (current-buffer)) "/")))))
(tags (shell-command-to-string
punchagan /
Created Oct 13, 2013
A simple script to calculate average pore diameter.
""" A simple script to calculate average pore diameter.
Written for Ayush on 13th Oct 2013.
Usage: python </dir/containing/pore-files>
This script assumes that the pore files are .txt files. Point the
script to a directory containing all your pore files, and it should
print out the average pore diameter from all the files.
punchagan /
Last active Dec 25, 2015
Scripts to import blog from o-blog to Nikola.
punchagan /
Last active Jan 2, 2016
Practice Sessions flow chart
digraph {
label="Ideas for practice for 1 or 2 players."
node[shape="box", style="rounded"]
start; end;
node[shape="box", style="solid"]
node[shape="parallelogram", style=""]
punchagan /
Created Jan 16, 2014
GTG Backend for FogBugz
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Getting Things GNOME! - a personal organizer for the GNOME desktop
# Copyright (c) 2008-2013 - Lionel Dricot & Bertrand Rousseau
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
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 / video-loopback
Created Mar 29, 2014
Brighter video, thanks to video loopback and gstreamer
View video-loopback
if grep -q $MODULE /proc/modules;
echo $MODULE already loaded
echo loading $MODULE
sudo modprobe $MODULE
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/'+
You can’t perform that action at this time.