Skip to content

Instantly share code, notes, and snippets.

@jayachandp
jayachandp / .bash_prompt.sh
Created November 16, 2017 14:26 — forked from miki725/.bash_prompt.sh
Custom bash prompt which displays: (virtualenv) user:/path (git-branch)
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the active virtualenv
# * the branch of the current git/mercurial repository
# * the return value of the previous command
# * the fact you just came from Windows and are used to having newlines in
# your prompts.

Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command

Open/Goto


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods
@jayachandp
jayachandp / chat.py
Created March 17, 2014 17:10 — forked from vyshuks/chat.py
from flask import Flask, request
chat = Flask(__name__)
html = """
<html><head><style>
#mychat{width:100%; font-size: 15px; padding: 10px; border: 1px solid #111111;}
</style></head><body>
<input id="mychat" placeholder="Type message and press enter"/>
<div id="chat"></div>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>