Skip to content

Instantly share code, notes, and snippets.

View arindampradhan's full-sized avatar
🎯
Focusing

Arindam Pradhan arindampradhan

🎯
Focusing
View GitHub Profile
We couldn’t find that file to show.
We couldn’t find that file to show.
@arindampradhan
arindampradhan / git aliases.sh
Created April 1, 2015 12:52
Some helpful git aliases
alias gs="git status"
alias ga="git add"
alias gb="git branch"
alias gc="git commit -m "$1""
alias gp="git push $1 $2" # gp OR gp [remote] [branch]
alias pull="git pull"
alias gt="git tag "$1""
alias gpt="git push --tags"
alias pull="git pull"
alias co="git checkout"
@arindampradhan
arindampradhan / express route.js
Last active August 29, 2015 14:19
express routing.js
var express = require('express');
var app = express();
var router = express.Router();
app.set('view','./views');
app.set('view engine', 'jade');
@arindampradhan
arindampradhan / Python | acsii
Last active December 17, 2015 14:11
Python logo Ascii
.?777777777
7..77777777777+
. 777777777$$
.7..77777777$$$$
...77777$$$$$$
.777777777777$$$$$$$$.=======.
77777777777$$$$$$$$$$..=======+.
777777777$$$$$$$$$$$~========++++.
777777$$$$$$$$$$$$~========+++++.
777$$$$$$$$$$$$~=========++++++.
@arindampradhan
arindampradhan / urllib_json.py
Created December 15, 2015 08:15
Python | requests
import urllib2
import json
class requests(urllib2.Request):
@classmethod
def json(self,URL=None):
return json.load(urllib2.urlopen(URL))
@arindampradhan
arindampradhan / pocket.ascii
Last active December 15, 2015 10:22
Pocket | ascii
███████████████████████████████████
███████████████████████████████████
███████▀███████████████████▀███████
████████▄▀███████████████▀▄████████
▀█████████▄▀███████████▀▄█████████▀
███████████▄▀███████▀▄███████████
████████████▄▀███▀▄████████████
█████████████▄ ▄█████████████
███████████████████████████
███████████████████████
@arindampradhan
arindampradhan / todo.md
Last active February 11, 2016 15:29
future mapper

TODO EXTRACTOR

  • Scraping wiki contents
  • Audit Folder path
  • User integration with extractor app
  • write an api for file upload get and post

Scraping

##Singapore Universities

  • National University of Singapore | Ongoing
@arindampradhan
arindampradhan / py2.7.10.sh
Last active January 20, 2016 04:05 — forked from subsetpark/gist:367f0d3fde503a1e481c
Building Python 2.7.10 on Ubuntu 14.04 LTS
sudo apt-get install -y gcc-multilib g++-multilib libffi-dev libffi6 libffi6-dbg python-crypto python-mox3 python-pil python-ply libssl-dev zlib1g-dev libbz2-dev libexpat1-dev libbluetooth-dev libgdbm-dev dpkg-dev quilt autotools-dev libreadline-dev libtinfo-dev libncursesw5-dev tk-dev blt-dev libssl-dev zlib1g-dev libbz2-dev libexpat1-dev libbluetooth-dev libsqlite3-dev libgpm2 mime-support netbase net-tools bzip2
wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz
tar xvf Python-2.7.10.tgz
cd Python-2.7.10/
./configure --prefix /usr/local/lib/python2.7.10 --enable-ipv6
@arindampradhan
arindampradhan / spin.py
Last active August 12, 2019 05:38
Spinners for python | python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import signal
from os import system
### MENU ###
# Here are all the elements you can import
# Box elements