This file contains 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
def sweep(spaces, r1): | |
start = r1[0]/r1[1] | |
for i in range(0,len(spaces)): | |
if(spaces[i] - start) < 1: | |
return [-1, -1] | |
start = spaces[i] - start | |
return r1 | |
def answer(lst): | |
spaces = [lst[i+1] - lst[i] for i in range(0,len(lst) - 1)] |
This file contains 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
`timescale 1ns / 1ps | |
////////////////////////////////////////////////////////////////////////////////// | |
// Company: | |
// Engineer: | |
// | |
// Create Date: 15:47:21 05/22/2016 | |
// Design Name: | |
// Module Name: finalproject | |
// Project Name: | |
// Target Devices: |
This file contains 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
`timescale 1ns / 1ps | |
//////////////////////////////////////////////////////////////////////////////// | |
// Company: | |
// Engineer: | |
// | |
// Create Date: 03:14:12 05/31/2016 | |
// Design Name: finalproject | |
// Module Name: D:/XilinxVerilog/CSFiles/finalproject/testfinal.v | |
// Project Name: finalproject |
This file contains 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 the necessary packages | |
import argparse | |
import datetime | |
import imutils | |
import time | |
import cv2 | |
from facerec.feature import Fisherfaces | |
from facerec.classifier import NearestNeighbor | |
from facerec.model import PredictableModel |
This file contains 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 the necessary packages | |
import argparse | |
import datetime | |
import imutils | |
import time | |
import cv2 | |
#import subprocess | |
#subprocess.call("sudo modprobe bcm2835-v4l2") | |
# construct the argument parser and parse the arguments |
This file contains 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
#!flask/bin/python | |
from flask import Flask | |
from flask import abort | |
from flask import jsonify | |
app = Flask(__name__) | |
#app.config['SERVER_NAME'] = '192.168.176.139:5000' | |
app.run(host= '0.0.0.0',port=5000) | |
@app.route('/') | |
def index(): |
This file contains 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
`timescale 1ns / 1ps | |
//////////////////////////////////////////////////////////////////////////////// | |
// Company: | |
// Engineer: | |
// | |
// Create Date: 10:10:23 04/19/2016 | |
// Design Name: FPCVT | |
// Module Name: C:/Users/User/Documents/Classes/CS M152a/Lab2/FPCVT/FPCVT_TB.v | |
// Project Name: FPCVT |
This file contains 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
`timescale 1ns / 1ps | |
////////////////////////////////////////////////////////////////////////////////// | |
// Company: | |
// Engineer: | |
// | |
// Create Date: 10:39:45 04/14/2016 | |
// Design Name: | |
// Module Name: FPCVT | |
// Project Name: | |
// Target Devices: |
This file contains 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
`timescale 1ns / 1ps | |
////////////////////////////////////////////////////////////////////////////////// | |
// Company: | |
// Engineer: | |
// | |
// Create Date: 10:55:46 04/19/2016 | |
// Design Name: | |
// Module Name: floating_point | |
// Project Name: | |
// Target Devices: |