Skip to content

Instantly share code, notes, and snippets.

View jishnu7's full-sized avatar
🤷‍♂️

Jishnu Mohan jishnu7

🤷‍♂️
View GitHub Profile

Using bitlbee with HipChat

Initial setup

  • account add jabber [email protected] 'PASSWORD'
  • account hipchat set nick_source full_name
  • account hipchat set resource bot
  • account hipchat on
@jishnu7
jishnu7 / module_watcher.py
Created December 4, 2012 21:11 — forked from eberle1080/module_watcher.py
Automatically reload python module / package on file change
#!/usr/bin/env python
# Author: Chris Eberle <[email protected]>
# Watch for any changes in a module or package, and reload it automatically
import pyinotify
import imp
import os
class ModuleWatcher(pyinotify.ProcessEvent):
"""
@jishnu7
jishnu7 / tree.md
Created May 31, 2012 12:17 — forked from hrldcpr/tree.md
one-line tree in python

One-line Tree in Python

Using Python's built-in defaultdict we can easily define a tree data structure:

def tree(): return defaultdict(tree)

That's it!