Skip to content

Instantly share code, notes, and snippets.

@ck196
ck196 / flirckr_search.py
Created January 27, 2016 04:29
Flick search api
# Using flickr_api to search and download images
# https://github.com/alexis-mignon/python-flickr-api/wiki/Tutorial
import flickr_api as f
f.set_keys(api_key = 'xxxxxxxxxxxxxxxxxxxxxxx',
api_secret = 'xxxxxxxxxxx')
auth = f.auth.AuthHandler()
w = f.Walker(f.Photo.search, tags="sumo")
@ck196
ck196 / caffe_simple_python.py
Created January 6, 2016 09:19
caffe_simple_python.py
import numpy as np
import matplotlib.pyplot as plt
# Make sure that caffe is on the python path:
caffe_root = '../' # this file is expected to be in {caffe_root}/examples
import sys
sys.path.insert(0, caffe_root + 'python')
import caffe
@ck196
ck196 / Play_WS_Standalone.scala
Last active November 27, 2015 01:40
Play WS standalone
import play.api.libs.ws.ning._
import play.api.libs.ws._
import play.api.libs.concurrent.Execution.Implicits
object Sample {
def main(args: Array[String]) {
implicit val client = NingWSClient()
implicit val context = Implicits.defaultContext
// close with sslClient.close() when finished with client