Skip to content

Instantly share code, notes, and snippets.

View james-see's full-sized avatar
🍀
make your own luck

JC james-see

🍀
make your own luck
View GitHub Profile
@james-see
james-see / getpins.py
Created January 2, 2015 03:26
getpins.py
# this script gets your most recent pinboard items
# set your username and tag of interest
# it copies a markdown formatted list to the clipboard for easy export
# the script gets the most recent five items by default
# code by James Campbell @jamescampbell on twitter
import feedparser
import console
import clipboard
import webbrowser
@james-see
james-see / TWEEPORTER.py
Created January 3, 2015 18:11
Python Command Line Interface Twitter Reporter tool
#python twitter example
#last updated December 24 2014
#James Campbell http://www.jamescampbell.us
# @jamescampbell on twitter
#
#
# twitter items available:
#contributors, truncated, text, in_reply_to_status_id, id, favorite_count, source, retweeted,
#coordinates, entities, in_reply_to_screen_name, in_reply_to_user_id, retweet_count, id_str, favorited,
#retweeted_status, user, geo, in_reply_to_user_id_str, lang, created_at, in_reply_to_status_id_str, place, metadata
@james-see
james-see / pyde.py
Created January 12, 2015 18:35
pyde.py
# this script takes a 26 char string that you provide and
# a cipher and converts it back to text
# it works in pythonista
import random
import sys
import string
import console
import clipboard
import webbrowser
@james-see
james-see / pyen.py
Created January 12, 2015 18:36
pyen.py
# this script takes a 26 char string that you provide and
# a phrase and turns it into a cipher
# it works in pythonista
import random
import sys
import string
import console
import clipboard
import webbrowser
@james-see
james-see / pycyplains.py
Created January 12, 2015 18:39
pycyplains.py
## PYCY
## A SIMPLE TOOL FOR SIMPLE CIPHER FOR EVERY DAY OF THE MONTH in plaintext
## set to work in pythonista
import string
import random, sys
import calendar
import datetime
import clipboard #pythonista app
@james-see
james-see / back-to-main-button.markdown
Last active August 29, 2015 14:16
back to main button

back to main button

CSS only with hover transform effects for the button resize with curved corners. This is the same button that is working on my site. Check it out on any article at https://jamescampbell.us

View the live working version on codepen as well, here is the Pen by James Campbell on CodePen.

License.

@james-see
james-see / dicts.py
Created April 11, 2015 03:44
Randomly select a word from a dictionary word list in dicts.py
diction="""List of words here"""
@james-see
james-see / _.md
Last active August 29, 2015 14:23
circle the square
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GS d+ s+: !a C++ UL+++ P+ L++ E W+++ N++ o-- K- w--
O- M++ V+ PS PE Y PGP++ t 5 X++ R tv b++ DI- D+
G-- e+ h---- r+++ y++++
------END GEEK CODE BLOCK------
@james-see
james-see / opencv3_build.sh
Last active February 2, 2016 14:58
how to get cv2 to import in python 3 on OSX
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D PYTHON3_PACKAGES_PATH=/lib/python3.5/site-packages \
-D PYTHON3_LIBRARY=/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/libpython3.5m.dylib \
-D PYTHON3_INCLUDE_DIR=/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/include/python3.5m \
-D INSTALL_C_EXAMPLES=OFF \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D BUILD_EXAMPLES=ON \
-D BUILD_opencv_python3=ON \
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules ..