Skip to content

Instantly share code, notes, and snippets.

View jeffschulthies's full-sized avatar
🚀
👨🏾‍💻

Jeff Schulthies jeffschulthies

🚀
👨🏾‍💻
View GitHub Profile
@jeffschulthies
jeffschulthies / gist:31df5f96fafa666862bc
Last active August 29, 2015 14:07
vaidateRow Method
import java.util.Scanner;
public class Combine {
public static void main(String[] argv) {
Scanner scnr = new Scanner(System.in); // talk to Gabe Monday to better
// understand scanner
// String row = scnr.next();
// row = moveLeft(row); // remember to call methods
// row = combineLeft(row);
// System.out.print(row);
import java.util.Scanner;
public class Combine2 {
public static void main(String[] argv) {
Scanner scnr = new Scanner(System.in); // talk to Gabe Monday to better
// understand scanner
// String row = scnr.next();
// row = moveLeft(row); // remember to call methods
// row = combineLeft(row);
// System.out.print(row);
@jeffschulthies
jeffschulthies / gist:2256c5ef20265a6ebcc8
Created October 16, 2014 20:22
Ultrasonic Avoidance
//General Avoidance
import lejos.nxt.*;
import lejos.robotics.navigation.*;
public class Ultra {
public static void main(String[] args) throws Exception {
UltrasonicSensor sonic = new UltrasonicSensor(SensorPort.S1);
DifferentialPilot pilot = new DifferentialPilot(2.1f, 4.4f, Motor.A, Motor.B);
while(!Button.ESCAPE.isPressed()) {
if(sonic.getDistance() < 10) {
pilot.setTravelSpeed(8);
@jeffschulthies
jeffschulthies / gist:8880d24e6687750ca0bd
Created October 16, 2014 20:22
Ultrasonic Avoidance(Go Around)
import lejos.nxt.*;
import lejos.robotics.navigation.*;
public class UltraObstacle {
public static void main(String[] args) throws Exception {
UltrasonicSensor sonic = new UltrasonicSensor(SensorPort.S1);
DifferentialPilot pilot = new DifferentialPilot(2.1f, 4.4f, Motor.A, Motor.B);
while(!Button.ESCAPE.isPressed()) {
if(sonic.getDistance() < 10) {
pilot.setTravelSpeed(8);
//pilot.steer(-90, 90);
/*import lejos.nxt.*;
public class Line {
public static void main (String[] args) throws Exception {
LightSensor light = new LightSensor(SensorPort.S1);
light.setHigh(420);
light.setLow(270);
while (true) {
LCD.drawInt(light.readValue(), 4, 0, 0);
LCD.drawInt(light.readNormalizedValue(), 4, 0, 1);
LCD.drawInt(light.getLightValue(), 4, 0, 2);
/*import lejos.nxt.*;
public class Line {
public static void main (String[] args) throws Exception {
LightSensor light = new LightSensor(SensorPort.S1);
light.setHigh(420);
light.setLow(270);
while (true) {
LCD.drawInt(light.readValue(), 4, 0, 0);
LCD.drawInt(light.readNormalizedValue(), 4, 0, 1);
LCD.drawInt(light.getLightValue(), 4, 0, 2);

Keybase proof

I hereby claim:

  • I am jeffschulthies on github.
  • I am jeffs (https://keybase.io/jeffs) on keybase.
  • I have a public key ASCc_ElpD4B1oH564fcqtnpc9D75e6No-lqI03ZZUHewyAo

To claim this, I am signing this object:

@jeffschulthies
jeffschulthies / Base.sql
Last active August 30, 2016 19:55
Vero SQL
-- Inventory DB (MySQL)1
;
CREATE TEMPORARY TABLE `QBCW5ISAJ` AS
SELECT `t0`.`product_id` `productid`
FROM
`inventory`.`daily_unit_level` `t0`
;
-- Engine Block: EBJYF5VRO
CREATE TEMPORARY TABLE `@[Inventory DB (MySQL)1]` AS
SELECT `t0`.`product_id` `productid`
FROM
`inventory`.`daily_unit_level` `t0`
CREATE TEMPORARY TABLE "EBSM5VR0B" AS (
SELECT "t0"."ProductID" "productid"
FROM
"public"."products" "t0"
) WITH DATA;
SELECT
"t0"."productid" "productid",
"t1"."productid" "inventory_db__mysql_1_productid"
FROM