Skip to content

Instantly share code, notes, and snippets.

View atduskgreg's full-sized avatar

Greg Borenstein atduskgreg

View GitHub Profile
127.0.0.1 - - [17/Apr/2014 15:13:08] "GET /boomerang?f=rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR/ HTTP/1.1" 500 -
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/Library/Python/2.7/site-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/Library/Python/2.7/site-packages/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/Library/Python/2.7/site-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
127.0.0.1 - - [20/Apr/2014 23:50:39] "GET /boomerang?f=rn1qkbnr/ppp2bpp/3p1p2/3Pp3/4P3/5N2/PPP2PPP/RNBQKB1R/%20w HTTP/1.1" 500 -
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/Library/Python/2.7/site-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/Library/Python/2.7/site-packages/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/Library/Python/2.7/site-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
127.0.0.1 - - [21/Apr/2014 00:10:13] "GET /boomerang?f=rnbqk2r/pppp1ppp/5n2/2P1Q3/8/5P2/PPP3PP/RNB1KBNR/%20b HTTP/1.1" 500 -
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/Library/Python/2.7/site-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/Library/Python/2.7/site-packages/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/Library/Python/2.7/site-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
import gab.opencv.*;
import org.opencv.imgproc.Imgproc;
import org.opencv.core.Mat;
import org.opencv.core.MatOfInt;
import org.opencv.core.MatOfInt4;
import org.opencv.core.MatOfPoint;
import java.awt.Rectangle;
import java.util.Arrays;
* tap to stop timer when villain defeated
* add screen for counting down villain turns
* after villain complete, add button to go back to countdown screen
@atduskgreg
atduskgreg / gist:afa2660ceec88eb4ea86
Created June 10, 2014 17:59
Internet Warning Labels
## Website Warning Labels
AirBnB
"Caution: May cause sudden and catastrophic gentrification."
Uber
Google+
@atduskgreg
atduskgreg / setup.py
Created July 9, 2014 13:51
pyfacetracker setup.py for mac
from setuptools import setup
from setuptools.extension import Extension
import numpy as np
import os
NAME = 'pyFaceTracker'
PACKAGE_NAME = 'facetracker'
VERSION = '0.1.1'
DESCRIPTION = 'A python wrapper for the FaceTracker library by Jason Mora Saragih'
LONG_DESCRIPTION = """
What follows below is the stockfish position evaluation for this position:
♜ _ ♝ ♛ ♚ ♝ ♞ ♜
_ ♟ _ ♟ _ ♟ ♟ ♟
♟ _ ♞ _ ♟ _ _ _
_ _ ♟ _ _ _ _ _
_ _ _ _ ♙ ♙ _ _
_ _ ♘ _ _ ♘ _ _
♙ ♙ ♙ ♙ _ _ ♙ ♙
♖ _ ♗ ♕ ♔ ♗ _ ♖
→ ./stockfish rnbqkbnr/pppppppp/8/8/3P4/8/PPP1PPPP/RNBQKBNR/ b
Stockfish 250714 64 by Tord Romstad, Marco Costalba and Joona Kiiski
rnbqkbnr/pppppppp/8/8/3P4/8/PPP1PPPP/RNBQKBNR/ b
Eval term | White | Black | Total
| MG EG | MG EG | MG EG
----------------+-------------+-------------+-------------
Material | --- --- | --- --- | 0.16 0.00
Imbalance | --- --- | --- --- | 0.00 0.00
Pawns | --- --- | --- --- | -0.02 -0.02
Knights | 0.12 0.00 | 0.12 0.00 | 0.00 0.00
  • Average number of moves in a game
  • Length of games between players of ELO vs this game
  • Choice of openings - grandmasters vs amateur (mainlines vs sidelines)
  • "novelty" -- two games that are the same up to a point
  • Queen sacrifices that lead to victory
  • Blunder: plays move way worse than good moves the computer found, reversal into the negative
  • Missed opportunities: computer found a great and you played an ok move (for strong players missing great moves is a blunder)