Skip to content

Instantly share code, notes, and snippets.

View rodgomesc's full-sized avatar
🎯
Focusing

Rodrigo Gomes rodgomesc

🎯
Focusing
View GitHub Profile
@rodgomesc
rodgomesc / track_eye_glasses.py
Created July 17, 2015 22:31
track_eye_glasses.py
#!/usr/bin/python
__autor__='Rodrigo gomes'
import time
from SimpleCV import *
def check_eyes(eyes):
@rodgomesc
rodgomesc / streamscrobbler_port_python3.py
Created July 15, 2015 01:35
streamscrobbler-python port to python3
#!/usr/bin/python3
# -*- coding: utf-8 -*-
'''
streamscrobbler is originaly created by Håkan Nylén, https://github.com/confact
and ported to python3 by Rodrigo Gomes, https://github.com/rodgomesc
for more info:
https://github.com/Dirble/streamscrobbler-python
'''
@rodgomesc
rodgomesc / Youtube_embed_PyQt
Created July 13, 2015 21:40
Youtube_embed_PyQt.py
from PyQt4.QtGui import QApplication
from PyQt4.QtCore import QUrl
from PyQt4.QtWebKit import QWebView
from PyQt4.QtCore import QString
import sys
__autor__= 'Rodrigo Gomes'
app = QApplication(sys.argv)
b = QWebView()
@rodgomesc
rodgomesc / simpleCamera
Created July 13, 2015 05:06
Detecta Rosto
from SimpleCV import Image, Camera
cam = Camera()
while True:
img = cam.getImage()
face = img.findHaarFeatures('face.xml')
if face:
face.draw(width=3,color=(255,0,0))
img.show()
#@gwidion code
print"".join(u"\x1b[%dm%c%s"%((42+y%2^y>>3&1),((1,3,2,-1,0,2,3,1)+(4,)*8+32*(-9781,)+8*(10,)+(7,9,8,5,6,8,9,7))[y]+9813,(y+1)%8and" "or" \x1b[48m\n")for y in range(64))
@rodgomesc
rodgomesc / cesar_1.py
Created February 12, 2015 17:41
cesar_1.py
python -c "print ''.join([chr(154 - ord(c)) for c in '65\'\$5,65z+z5,13-9z\'5z4+(z79*9 '])"
@rodgomesc
rodgomesc / AlienCode.py
Created February 1, 2015 18:12
AlienCode.py to generate wallpaper
_ = (
255,
lambda
V ,B,c
:c and Y(V*V+B,B, c
-1)if(abs(V)<6)else
( 2+c-4*abs(V)**-0.4)/i
) ;v, x=1500,1000;C=range(v*x
);import struct;P=struct.pack;M,\
j ='<QIIHHHH',open('M.bmp','wb').write
@rodgomesc
rodgomesc / BarcodeDetect.py
Created November 28, 2014 18:17
barcodeDetect
import time
import csv
from SimpleCV import Color, ColorCurve, Camera, Image, pg, np, cv
from SimpleCV.Display import Display
cam = Camera(0)
display = Display((800,600))
data = "None"
mydict = dict()
myfile = "barcode-list.csv"
This file has been truncated, but you can view the full file.
{
"metadata": {
"celltoolbar": "Slideshow",
"name": "",
"signature": "sha256:307e13dffd6cde5cf71460ac18e8b061059b29dec34130af5549ddd079b2431e"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{

MacOS

Download from here:

http://d.pr/f/QE3d

MD5: 59bab8f71f8c096cd3f72cd73851515d

Rename it to: Sublime Text

Make it executable with: chmod u+x Sublime\ Text