This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This widget requires jQuery-iMask to run | |
| #https://github.com/cwolves/jQuery-iMask | |
| from gluon.dal import Field | |
| import re | |
| def factory(mask='', auto_start=True, empty_chr="_", error_message="Did not match!"): | |
| assert len(mask)>1, 'empty mask not is allowed' | |
| assert len(empty_chr)==1, 'empty_chr requires one character' | |
| from gluon.sqlhtml import StringWidget | |
| from gluon.validators import IS_MATCH, IS_NOT_EMPTY |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| __autor__='Rodrigo gomes' | |
| import time | |
| from SimpleCV import * | |
| def check_eyes(eyes): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 | |
| ''' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #@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)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| python -c "print ''.join([chr(154 - ord(c)) for c in '65\'\$5,65z+z5,13-9z\'5z4+(z79*9 '])" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _ = ( | |
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "metadata": { | |
| "celltoolbar": "Slideshow", | |
| "name": "", | |
| "signature": "sha256:307e13dffd6cde5cf71460ac18e8b061059b29dec34130af5549ddd079b2431e" | |
| }, | |
| "nbformat": 3, | |
| "nbformat_minor": 0, | |
| "worksheets": [ | |
| { |