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
| #include "query.h" | |
| using namespace std; | |
| Query::Query(){ | |
| std::ifstream fin; | |
| fin.clear(); | |
| fin.open(INPUTFILESQL.c_str()); | |
| std::getline(fin, raw_query, ';'); | |
| raw_query.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
| void Query::getQuery(){ | |
| std::istringstream iss(raw_query); | |
| string selectLine, fromLine, whereLine, tempString, trashString; | |
| int newlineCounter = 0; | |
| int embeddedCounter = 0; | |
| string next; | |
| do{ | |
| if(newlineCounter == 0){ | |
| std::getline(iss,selectLine, '\n'); | |
| std::istringstream selectStream(selectLine); |
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 random | |
| import math | |
| from copy import deepcopy | |
| class Sensor(object): | |
| def __init__(self, energy, radius, x, y, i): | |
| self.id = i | |
| self.energy = energy | |
| self.radius = radius | |
| self.x = x |
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 networkx as nx | |
| import matplotlib.pyplot as plt | |
| import random | |
| import operator | |
| from Queue import Queue | |
| from copy import deepcopy | |
| from sets import Set | |
| class node(object): | |
| def __init__(self): |
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
| curl -s http://localhost:5000/download | sh |
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
| public class SpaceGun { | |
| private Scene scene; | |
| private Location spawnLoc; | |
| private ArmorStand stand; | |
| private TaskHolder<Void> tickHolder; | |
| private Material mat; | |
| private boolean shouldTick; | |
| public SpaceGun(Scene scene) { | |
| this.scene = scene; |
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
| public class SpaceGun { | |
| private Scene scene; | |
| private Location spawnLoc; | |
| private ArmorStand stand; | |
| private TaskHolder<Void> tickHolder; | |
| private Material mat; | |
| private boolean shouldTick; | |
| public SpaceGun(Scene scene) { | |
| this.scene = scene; |
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 | |
| import subprocess | |
| import usb.core | |
| from time import sleep | |
| # - usbhid-dump --entity=all | |
| # to find the opcode the keyboard sends | |
| # run this command then press the button on the keeb, will display the opcode to the screen | |
| KEYBOARD_OPCODE = 88 | |
| TEXFILE = "notice.tex" | |
| def main(): |
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
| \documentclass{article} | |
| \usepackage{graphicx} | |
| \graphicspath { {./}} | |
| \title{It's been !Fun} | |
| \author{ | |
| Mark Anderson \\ | |
| Company\\ | |
| } | |
| \date{\today} |