This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The MIT License (MIT) | |
Copyright (c) 2013 HomeFinder.com | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
the Software, and to permit persons to whom the Software is furnished to do so, | |
subject to the following conditions: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mogrify -resize 2048x2048 -gravity Center -crop 2048x512+0+0 guitar.jpg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import os | |
import sys | |
import argparse | |
import iso8601 | |
import re | |
import subprocess | |
import logging | |
import json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source : http://stackoverflow.com/a/5551499/283572 | |
#!/usr/bin/env python | |
# kmeans.py using any of the 20-odd metrics in scipy.spatial.distance | |
# kmeanssample 2 pass, first sample sqrt(N) | |
from __future__ import division | |
import random | |
import numpy as np | |
from scipy.spatial.distance import cdist # $scipy/spatial/distance.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export EDITOR=~/bin/edit | |
export VISUAL=~/bin/edit | |
export ALTERNATE_EDITOR=emacs | |
alias t='terminator 2> /dev/null &' | |
alias g='gedit > /dev/null &' | |
alias em='emacsclient -c > /dev/null&' | |
alias ec='/home/sagar/eclipse/eclipse > /dev/null&' | |
alias ci='google-chrome --incognito > /dev/null&' | |
alias p='ps -e| grep ' | |
alias wifi='/home/sagar/Dropbox/scripts/wifi_rtl_cisco.sh' |
NewerOlder