Skip to content

Instantly share code, notes, and snippets.

View pribadihcr's full-sized avatar

Pribadi HCR pribadihcr

  • Taiwan Tech, Aoitek ATeam
  • Taipei
View GitHub Profile
@pribadihcr
pribadihcr / installiTorch.sh
Created January 31, 2016 10:54 — forked from jetsonhacks/installiTorch.sh
Install iTorch and prerequisites
#!/bin/sh
# Install Python prerequisites on NVIDIA Jetson TK1 for iTorch
# This is for https://github.com/facebook/iTorch
# L4T 21.3, Torch 7 (http://torch.ch)
# Python 2.7 or greater must be installed before running this script
# Torch 7 should already be installed before running this script
# iPython is loaded using pip, as repository version is 1.x version, > 2.0 is needed
# Need to compile from source as repository version libzmq3-dev is not the correct revision
wget http://download.zeromq.org/zeromq-4.0.5.tar.gz
tar xzvf zeromq-4.0.5.tar.gz
@pribadihcr
pribadihcr / gist:b53d3dd79743cc20fb06
Created December 23, 2015 02:00 — forked from davidbauer/gist:11055010
Python script to download images from a CSV of image urls
#!/usr/bin/env python
# assuming a csv file with a name in column 0 and the image url in column 1
import urllib
filename = "images"
# open file to read
with open("{0}.csv".format(filename), 'r') as csvfile: