Skip to content

Instantly share code, notes, and snippets.

@tianqig
tianqig / uninstall.sh
Created November 25, 2017 03:25 — forked from myusuf3/uninstall.sh
how to cleanly uninstall python packages installed with python setup.py
# Next time you need to install something with python setup.py -- which should be never but things happen.
python setup.py install --record files.txt
# This will cause all the installed files to be printed to that directory.
# Then when you want to uninstall it simply run; be careful with the 'sudo'
cat files.txt | xargs sudo rm -rf
@tianqig
tianqig / ipython_fft_example.ipynb
Created October 23, 2017 12:25 — forked from jedludlow/ipython_fft_example.ipynb
IPython Notebook FFT Example
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tianqig
tianqig / dft.py
Created October 23, 2017 11:50 — forked from bellbind/dft.py
[python]DFT(discrete fourier transform) and FFT
"""DFT and FFT"""
import math
def iexp(n):
return complex(math.cos(n), math.sin(n))
def is_pow2(n):
return False if n == 0 else (n == 1 or is_pow2(n >> 1))
def dft(xs):
@tianqig
tianqig / Blob detection.ipynb
Created October 12, 2017 09:59 — forked from jeanpat/Blob detection.ipynb
Blobs detection with mahotas
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tianqig
tianqig / generating 82146 lowres.ipynb
Created October 12, 2017 09:57 — forked from jeanpat/generating 82146 lowres.ipynb
Generating 82146 examples (greyscaled image+ ground truth label) of overlapping chromosomes
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tianqig
tianqig / SkeletonToGraph.ipynb
Created October 12, 2017 09:54 — forked from jeanpat/SkeletonToGraph.ipynb
A ipython notebook. Takes an image, converts its skeleton to a networkx graph
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tianqig
tianqig / fix-homebrew-npm.md
Created September 16, 2017 09:04 — forked from DanHerbert/fix-homebrew-npm.md
Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew

Fixing npm On Mac OS X for Homebrew Users

Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.

Solution

This solution fixes the error caused by trying to run npm update npm -g. Once you're finished, you also won't need to use sudo to install npm modules globally.

Before you start, make a note of any globally installed npm packages. These instructions will have you remove all of those packages. After you're finished you'll need to re-install them.

@tianqig
tianqig / DeepLearningPartOne.R
Created September 12, 2017 09:44 — forked from flovv/DeepLearningPartOne.R
Deep Learning for Brand Logo detection in R
########## data proprocessing!
## download the file set from here: http://image.ntua.gr/iva/datasets/flickr_logos/
## extract image to a folder flickrData
### copy files in the right directories
options(stringsAsFactors = F)
df <- read.csv("flickrData/flickr_logos_27_dataset_query_set_annotation.txt", sep="\t")
@tianqig
tianqig / readme.md
Created September 11, 2017 09:43 — forked from jcoreyes/readme.md
Image Captioning LSTM
@tianqig
tianqig / gif.py
Created September 2, 2017 14:08 — forked from xyfeng/gif.py
python script turn images into gif
# From https://github.com/wnyc/PIL/blob/master/Scripts/gifmaker.py
#
# The Python Imaging Library
# $Id$
#
# convert sequence format to GIF animation
#
# history:
# 97-01-03 fl created
#