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
| yearOne = 0 | |
| yearTwo = -1 | |
| def getYears(): | |
| global yearOne, yearTwo | |
| prompt = "Enter the years you would like movies for: " |
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 dpkt | |
| from socket import inet_ntoa | |
| try: | |
| import cPickle as pickle | |
| except: | |
| import pickle | |
| from multiprocessing import Process, Queue | |
| data = {'source':set([]), | |
| 'destination':set([]), |
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 pomegranate import * | |
| import dpkt, traceback, random, time | |
| # Small test, 1 for all data, 0 for none | |
| def log(text): | |
| fileName = "HMM-output.txt" | |
| with open(fileName, "a+") as output: | |
| output.write(text) |
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 dpkt | |
| from socket import inet_ntoa | |
| import traceback | |
| import datetime | |
| import sys | |
| import csv | |
| myAddress = '10.0.0.3' | |
| badFrames = 0 |
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 dpkt | |
| from socket import inet_ntoa | |
| import traceback | |
| import datetime | |
| import multiprocessing | |
| import sys | |
| try: | |
| import cPickle as pickle | |
| except: | |
| import pickle |
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 dpkt | |
| from socket import inet_ntoa | |
| import traceback | |
| import datetime | |
| import multiprocessing | |
| try: | |
| import cPickle as pickle | |
| except: | |
| import pickle |
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 UIKit | |
| // Assuming this is the values, not the even indexes | |
| func sumOfEvens(array: [Int]) -> Int | |
| { | |
| var total = 0 | |
| for value in array | |
| { | |
| if value % 2 == 0 | |
| { |
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 numpy as np | |
| import skfuzzy as fuzz | |
| from skfuzzy import control as ctrl | |
| import json, sys | |
| class FuzzyPlantSystem: | |
| def __init__(self, humidity, temp, waterLevel): | |
| # Input/output sets | |
| self._a_temp = ctrl.Antecedent(np.arange(32, 213, 1), 'temperature') |
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 java.io.*; | |
| import java.net.*; | |
| import java.lang.*; | |
| import java.nio.charset.*; | |
| import java.util.*; | |
| import java.util.concurrent.TimeUnit; | |
| class NetworkDiscovery | |
| { | |
| protected static final int BCAST_PORT = 9050; |
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
| <?php | |
| include 'index.txt'; | |
| include 'diclib.php'; | |
| $theParts = array('Noun','Adjective','Adverb','Conjunction','Pronoun','Verb','Preposition','Interjection'); | |
| $key = $parts = $definition = ""; | |
| if ($_SERVER["REQUEST_METHOD"] == "POST") | |
| { |