Skip to content

Instantly share code, notes, and snippets.

View val314159's full-sized avatar

val314159 val314159

View GitHub Profile
hellow
@val314159
val314159 / .gitignore
Last active October 7, 2017 06:48
losp filter in C
*.log
losp_filter
*.o
*~
.\#*
\#*
*.lsp
@val314159
val314159 / circle_detection.py
Created July 23, 2017 01:53 — forked from martinsik/circle_detection.py
Circle detection with OpenCV 3.0
import cv2
import time
import math
import numpy as np
capture = cv2.VideoCapture(0)
print capture.get(cv2.CAP_PROP_FPS)
t = 100
w = 640.0
@val314159
val314159 / Dockerfile
Last active July 23, 2017 01:32
Install opencv 3.2 plus some other stuff
FROM ubuntu
RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get -y dist-upgrade
RUN apt-get -y autoremove
# 2. INSTALL THE DEPENDENCIES
# Build tools:
@val314159
val314159 / log.py
Created July 19, 2017 00:03
log goodness in python
import logging
_FMT = '%(filename)s : %(asctime)s : %(levelname)s : %(message)s'
_log = logging.getLogger()
_log.setLevel(logging.DEBUG)
debug = _log.debug
dbug = _log.debug
info = _log.info
@val314159
val314159 / classifier_from_little_data_script_3.py
Last active February 22, 2018 12:26 — forked from fchollet/classifier_from_little_data_script_3.py
Fine-tuning a Keras model. Updated to the Keras 2.0.5 API.
'''This script goes along the blog post
"Building powerful image classification models using very little data"
from blog.keras.io.
It uses data that can be downloaded at:
https://www.kaggle.com/c/dogs-vs-cats/data
In our setup, we:
- created a data/ folder
- created train/ and validation/ subfolders inside data/
- created cats/ and dogs/ subfolders inside train/ and validation/
- put the cat pictures index 0-999 in data/train/cats
@val314159
val314159 / modded_object_detection_tutorial.ipynb
Created June 29, 2017 17:06
my kick ass ML object detection demo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
################ Lispy: Scheme Interpreter in Python
## (c) Peter Norvig, 2010; See http://norvig.com/lispy.html
################ Symbol, Procedure, Env classes
from __future__ import division
Symbol = str
@val314159
val314159 / .gitignore
Last active May 27, 2017 01:42
lisp.py
*.log
*~
*.pyc
@val314159
val314159 / README.md
Last active May 6, 2017 21:21
eel-assembler

eel-assembler

=======

eel assembler

Install:

npm install eel-assembler