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") | |
{ |
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
IMyRemoteControl gps = null; | |
IMyRadioAntenna ant = null; | |
IMyShipController controller = null; | |
Vector3D home = new Vector3D(0,0,0); | |
string shipName = "Autominer-Ship"; | |
Vector3D lastCoords = new Vector3D(0,0,0); | |
List<Vector3D> allCoords = new List<Vector3D>(); | |
public Program() |
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
// 4-15-18 | |
// Client | |
import java.net.*; | |
import java.io.*; | |
import java.util.*; | |
import java.nio.charset.*; | |
import java.time.LocalTime; | |
import java.nio.file.*; | |
import static java.nio.file.StandardOpenOption.CREATE; |
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.net.*; | |
import java.io.*; | |
import java.nio.charset.*; | |
import java.util.*; | |
import java.time.LocalTime; | |
import java.nio.file.*; | |
import static java.nio.file.StandardOpenOption.CREATE; | |
import static java.nio.file.StandardOpenOption.APPEND; | |
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
// Client | |
import java.net.*; | |
import java.io.*; | |
import java.util.*; | |
import java.nio.charset.*; | |
import java.time.LocalTime; | |
import java.nio.file.*; | |
import java.lang.System.*; | |
import static java.nio.file.StandardOpenOption.CREATE; |
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
// Client | |
import java.net.*; | |
import java.io.*; | |
import java.util.*; | |
import java.nio.charset.*; | |
import java.time.LocalTime; | |
import java.nio.file.*; | |
import java.lang.System.*; | |
import static java.nio.file.StandardOpenOption.CREATE; |
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
// Client | |
import java.net.*; | |
import java.io.*; | |
import java.util.*; | |
import java.nio.charset.*; | |
import java.time.LocalTime; | |
import java.nio.file.*; | |
import static java.nio.file.StandardOpenOption.CREATE; | |
import static java.nio.file.StandardOpenOption.APPEND; |