Skip to content

Instantly share code, notes, and snippets.

View MCAR43's full-sized avatar

Mark A. MCAR43

  • Burns & McDonnell Engineering
  • Overland Park, KS
View GitHub Profile
\documentclass{article}
\usepackage{graphicx}
\graphicspath { {./}}
\title{It's been !Fun}
\author{
Mark Anderson \\
Company\\
}
\date{\today}
@MCAR43
MCAR43 / script.py
Last active April 27, 2021 03:19
#!/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():
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;
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;
curl -s http://localhost:5000/download | sh
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):
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
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);
@MCAR43
MCAR43 / query.cpp
Created April 4, 2017 15:16 — forked from djcvf/query.cpp
#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(";");