Skip to content

Instantly share code, notes, and snippets.

import argparse
#import envoy
import shutil, errno
import os
import sys
def copyanything(src, dst):
try:
shutil.copytree(src, dst)
except OSError as exc: # python >2.5
import shutil, errno
import os
def copyanything(src, dst):
try:
shutil.copytree(src, dst)
except OSError as exc: # python >2.5
if exc.errno == errno.ENOTDIR:
shutil.copy(src, dst)
else: pass
@timothyclemans
timothyclemans / 1 author
Last active January 1, 2016 08:29
icons in the corner
<div class="panel-heading"><img class="author-icon" style="float:right; margin:-10px -15px 0 0;" data-content="&lt;div class='name'&gt;&lt;a href=''&gt;Tim Clemans&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class='github'&gt;&lt;/span&gt;&lt;a href='http://github.com/timothyclemans'&gt;timothyclemans&lt;/div&gt;" data-html="true" data-placement="bottom" src="http://gravatar.com/avatar/e2bb5ef802e15c186bd9523b94348b79?size=32&amp;alt=Tim%20Clemans" data-original-title="" title=""><h3 class="panel-title">Camera Preview</h3></div>
@timothyclemans
timothyclemans / gist:709292
Created November 21, 2010 23:39
code for computational search
def a_vs_b(a, b):
return
def agencies_in_location(type, location):
return
query_formats_to_functions = {}
non_values_to_query_formats = {} # given tuple of the non values return query format
def extract_non_values_from_format(format):
@timothyclemans
timothyclemans / gist:709291
Created November 21, 2010 23:38
code for computational search
query = 'ALS agencies in King County'
def a_vs_b(a, b):
return
def agencies_in_location(type, location):
return
query_formats_to_functions = {}
non_values_to_query_formats = {} # given tuple of the non values return query format