Skip to content

Instantly share code, notes, and snippets.

@nkabir
nkabir / post.md
Created July 25, 2012 16:59
First Post

gist.io

A subsection

The server

The client

@nkabir
nkabir / blogger-setup.md
Created July 26, 2012 16:49
Set up Blogger-based documentation

Google CL

Install the googlecl tool with

$ sudo pip install googlecl

The command is called google

Blogger

@nkabir
nkabir / eclipse-juno.md
Created July 27, 2012 18:41
Eclipse Juno Setup for Python

Eclipse for Python Development

Note that we use separate installations of Eclipse for various languages:

  • Java
  • C/C++
  • Scripting: Javascript, Bash and Python

Download Eclipse Juno JEE.

@nkabir
nkabir / new_bashrc.sh
Created August 11, 2012 09:40 — forked from josephwecker/new_bashrc.sh
Replace .bashrc, .bash_profile, .profile, etc. with something much more clean, consistent, and meaningful.
#!/bin/bash
# License: Public Domain.
# Author: Joseph Wecker, 2012
#
# Are you tired of trying to remember what .bashrc does vs .bash_profile vs .profile?
# Are you tired of trying to remember how darwin/mac-osx treat them differently from linux?
# Are you tired of not having your ~/.bash* stuff work the way you expect?
#
# Symlink all of the following to this file:
# * ~/.bashrc
@nkabir
nkabir / txdb.sql
Created August 15, 2012 16:14
txdb database schema
alter table TX_SYMBOL
drop constraint TX_SYMBOL_QUOTABLE_ID_FK;
alter table TX_SYMBOL
drop constraint TX_SYMBOL_SERIES_ID_FK;
alter table TX_SYMBOL_SERIES
drop constraint TX_SYMBOL_SERIES_AGENT_ID_FK;
@nkabir
nkabir / deal-event.xml
Created August 15, 2012 18:39
Event Types
<dealEvent id="1">
<refQ>100</refQ> // reference quotable
<reporter>123</reporter> // reporter {Bloomberg, Reuters, Datastream}
<serialDay>42000</serialDay> // include Gregorian attribute?
<millis>0</millis> // utc millis
<level>543.0</level>
<facets> // facets include a set of integer flags that indicate CLOSE, OPEN, WARN
<facet>1</facet> // mixed purpose but may be small enough set to be ok
</facets>
<pMaker>100</pMaker> // price maker id
@nkabir
nkabir / config
Created September 27, 2012 15:41
BitBucket SSH
Host bb-agrothendieck
HostName bitbucket.org
PreferredAuthentications publickey
IdentityFile ~/.ssh/bb-agrothendieck
@nkabir
nkabir / gist:3835160
Created October 4, 2012 17:34
Time Series Cleaner in R
####################################################################################################################
# Name : DATACLEANING S&P
# Author : Nikos Rachmanis
# Version : 1.0
# Copyright : Your copyright notice
# Description : Data cleaning and merging
####################################################################################################################
####################################################################################################################
### Libraries + Settings ###########################################################################################
@nkabir
nkabir / eclipse-python.sh
Created October 5, 2012 21:51
Eclipse python launch script
#!/usr/bin/env bash
source dev-env.sh
# example that sets up LD_LIBRARY path for C++ libraries used by Python
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/fincad/fincad/lib
# We also increase the heap size
$HOME/local/eclipse-juno/eclipse-python/eclipse/eclipse -vmargs -Xmx2048M
@nkabir
nkabir / hgrc
Last active October 11, 2015 20:18
Mercurial hgrc
[ui]
#------------------------------------------------------------------------------
# change this to your email address
#------------------------------------------------------------------------------
# username = Alice Smith <asmith@example.com>
username = {{ username }}
editor=vi
merge=meld