Skip to content

Instantly share code, notes, and snippets.

View abhiomkar's full-sized avatar

Abhinay Omkar abhiomkar

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@abhiomkar
abhiomkar / postgresl_hints.sql
Created June 24, 2011 20:19 — forked from luisuribe/Postgresl hints
Postgresql snippets
-- show tables
\dt
-- create a new database
# CREATE DATABASE mydb;
-- create user
# CREATE USER abhinay with password 'secret';
@abhiomkar
abhiomkar / pyedit.sh
Created March 26, 2010 12:04 — forked from defunkt/vipy.sh
Simple shell script that locates a Python module and opens it in your default editor.
#!/bin/bash
# forked from gist:320305 by mmalone
if [ $# -ne 1 ]; then
echo "Usage: pyedit <python module>"
exit 1
fi
MODULE_LOCATION=`python -c "import $1; print $1.__file__.rstrip('c')"`