Skip to content

Instantly share code, notes, and snippets.

Hi,
Just a snippet of code to demonstrate the solution to people who arrive here and are still scratching their heads:
import flickr_api
flickr_api.set_keys(api_key = 'my_api_key', api_secret = 'my_secret')
a = flickr_api.auth.AuthHandler()
url = a.get_authorization_url("read")
print url
@empireshades
empireshades / my_podcasts.opml
Last active September 3, 2019 13:27
my podcast and rss feeds
<?xml version="1.0"?>
<opml version="1.0"><head><title>Overcast Podcast Subscriptions</title></head><body><outline type="rss" text="IRE Radio Podcast" title="IRE Radio Podcast" xmlUrl="http://feeds.feedburner.com/ire-nicar" htmlUrl="http://www.ire.org/"/><outline type="rss" text="O'Reilly Data Show - O'Reilly Media Podcast" title="O'Reilly Data Show - O'Reilly Media Podcast" xmlUrl="http://feeds.podtrac.com/IOJSwQcdEBcg" htmlUrl="https://www.oreilly.com/"/><outline type="rss" text="Korea and the World" title="Korea and the World" xmlUrl="http://koreaandtheworld.libsyn.com/rss" htmlUrl="http://www.koreaandtheworld.org/"/><outline type="rss" text="Tumble Science Podcast for Kids" title="Tumble Science Podcast for Kids" xmlUrl="http://feeds.sciencepodcastforkids.com/tumblepodcast" htmlUrl="http://www.tumblepodcast.com/"/><outline type="rss" text="China Tech Talk" title="China Tech Talk" xmlUrl="https://feeds.simplecast.com/400uRY7l" htmlUrl="https://anchor.fm/china-tech-talk"/><outline type="rss" text="Radiolab"

Unit 1: God's Will and Your Life

"I am the vine; You are the branches. If a man remains in me and I in him, he will bear much fruit; apart from me you can do nothing." -John 15:5

Day 1: Jesus Is Your Way

  • As I follow Jesus one day at a time, He will keep me in the center of God's will.
  • Jesus is my Way. I don't need any other road map.

Day 2: Jesus is Your Model

  • The Bible is my guide for faith and practice
  • The right question is, What is God's will?
@empireshades
empireshades / transfer.fish
Last active August 31, 2016 02:39 — forked from nl5887/transfer.fish
Bash and zsh alias for transfer.sh. Transfers files and directories to transfer.sh.
function transfer
if test (count $argv) -eq 0
echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"
return 1
end
## get temporarily filename, output is written to this file show progress can be showed
set tmpfile ( mktemp -t transferXXX )
## upload stdin or file
#########
# Steps to enable CUDA (NVIDIA GPU) on a Centos7 box
# (This is not a script, just some notes)
#########
# setup chroot sftp user for workers to be able to drop files:
# http://www.thegeekstuff.com/2012/03/chroot-sftp-setup/
#########
# CUDA
function onGLC(glc) {
glc.loop();
// glc.playOnce();
// glc.size(400, 400);
glc.setDuration(2);
glc.setFPS(28);
// glc.setMode("single");
// glc.setEasing(false);
glc.setMaxColors(22);
var list = glc.renderList,
function onGLC(glc) {
glc.loop();
// glc.playOnce();
// glc.size(400, 400);
glc.setDuration(1);
glc.setFPS(22);
// glc.setMode("single");
// glc.setEasing(false);
glc.setMaxColors(25);
glc.styles.backgroundColor = "#101010";
function onGLC(glc) {
glc.loop();
// glc.playOnce();
// glc.size(400, 400);
glc.setDuration(3.5);
glc.setFPS(24);
// glc.setMode("single");
// glc.setEasing(false);
glc.setMaxColors(32);
glc.styles.backgroundColor = "rgba(0,0,90,.3)";
@empireshades
empireshades / goog_img_display
Created May 22, 2015 19:35
Iterate through list of terms, google image search each, and display results in ipython notebook inline
# Yes i know i could have used Requests
import urllib2
import json
from IPython.display import display
from IPython.display import Image
for car in yearlist:
url = ('https://ajax.googleapis.com/ajax/services/search/images?' +
'v=1.0&rsz=8&q=%s') % car.replace(" ", "%20")

This document contains some notes I have gathered while I was trying to setup a redis service using boot2docker running on OS X. This won't cover what Docker is, see Docker website for details.

Installing boot2docker

First, install Virtualbox and follow the steps at http://docs.docker.com/installation/mac/

Since Docker only runs on Linux, boot2docker runs a virtual machine in Virtualbox (or VMWare etc), however you can run the docker command on OS X