Skip to content

Instantly share code, notes, and snippets.

View EricSchles's full-sized avatar

Eric Schles EricSchles

View GitHub Profile
import sys
from PIL import Image, ImageDraw
try:
import cv
except ImportError:
print 'Could not import cv, trying opencv'
import opencv.cv as cv
<!doctype html>
<html>
<script src="http://cdn.jsdelivr.net/sockjs/0.3.4/sockjs.min.js"></script>
<script src="http://cdn.jsdelivr.net/syncanojs/3.1.3beta/syncano.min.js"></script>
<script src="http://cdn.jsdelivr.net/jquery/2.1.1/jquery.min.js"></script>
<head></head>
<body>
<p id="page_description" style="display:none;">Description goes here</p>

Keybase proof

I hereby claim:

  • I am EricSchles on github.
  • I am ericschles (https://keybase.io/ericschles) on keybase.
  • I have a public key whose fingerprint is 1637 964C 97D6 CD68 1118 BB38 A52B 87D4 B9A7 1826

To claim this, I am signing this object:

# http://chase-seibert.github.io/blog/2016/07/22/pygithub-examples.html
# https://stackoverflow.com/questions/41691327/ssl-sslerror-ssl-certificate-verify-failed-certificate-verify-failed-ssl-c
from github import Github
from github import UnknownObjectException
import pandas as pd
# creating your own Github token:
# https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/
from config import GITHUB_API_TOKEN
import argparse
import time
@EricSchles
EricSchles / solver.py
Created June 10, 2018 03:04 — forked from dutc/solver.py
code improvement exercise: solver.py
from numpy.random import random
from numpy import array, isclose, zeros_like, sign
from numpy.linalg import lstsq
def solve(func, values, atol=0.1):
while True:
result = func(values)
if isclose(result, 0, atol=atol):
break
values -= sign(result) * random(values.size)
@EricSchles
EricSchles / poormansdag.ipynb
Created July 18, 2018 19:49 — forked from mariusvniekerk/poormansdag.ipynb
How to make a simple task execution engine in basically no code
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@EricSchles
EricSchles / poormansdag.ipynb
Created July 18, 2018 19:49 — forked from mariusvniekerk/poormansdag.ipynb
How to make a simple task execution engine in basically no code
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.