Skip to content

Instantly share code, notes, and snippets.

View brandonjank's full-sized avatar

Brandon Jank brandonjank

View GitHub Profile
/*
* cs452-hw4.c
*
* Created: 3/1/2016 11:21:02 AM
* Author : Brandon Jank <[email protected]>
*
* Size of code in program: <from elf viewer>
*
*/
-- GOLBALS
H, T, P, D = 0, 0, 0, 0
-- WIFI SETUP
enduser_setup.start(
function()
print("Connected to wifi as:" .. wifi.sta.getip())
-- SYNC TIME
tmr.alarm(0, 1000, tmr.ALARM_SINGLE, function()
sntp.sync('192.168.1.1',
private Vector3 worldToIso(Vector3 point, int tileWidth, int tileHeight) {
gameCamera.unproject(point);
point.x /= tileWidth;
point.y = (point.y - tileHeight / 2) / tileHeight + point.x;
point.x -= point.y - point.x;
return point;
}
FRAME:
HobbyKing X666 Glass Fiber Quadcopter Frame 666mm
http://www.hobbyking.com/hobbyking/store/uh_viewitem.asp?idproduct=24227
$17.50
-OR-
Turnigy Talon Carbon Fiber Quadcopter Frame 550mm
http://www.hobbyking.com/hobbyking/store/__22397__Turnigy_Talon_Carbon_Fiber_Quadcopter_Frame.html
$29.99
NDefines.NEconomy.START_ENERGY = 50.0; -- The amount of money each country starts with 50.0
NDefines.NEconomy.START_INFLUENCE = 100.0; -- The amount of influence each country starts with 100.0
NDefines.NEconomy.START_MINERALS = 200.0; -- The amount of minerals each country starts with 200.0
NDefines.NGameplay.BASE_MONTHLY_INFLUENCE = 5; -- Base Influence gained per month (3)
NDefines.NGameplay.BASE_MONTHLY_MINERALS = 20; -- Base Minerals gained per month (0)
NDefines.NGameplay.BASE_MONTHLY_PHYSICS = 20; -- Base Physics gained per month (5)
NDefines.NGameplay.BASE_MONTHLY_SOCIETY = 20; -- Base Society gained per month (5)
NDefines.NGameplay.BASE_MONTHLY_ENGINEERING = 20; -- Base Engineering gained per month (5)
NDefines.NGameplay.BASE_MONTHLY_ENERGY = 20; -- Base Energy gained per month (0)
@brandonjank
brandonjank / udrc2-dr1x-svxlink-init.sh
Last active November 21, 2016 06:41
Script to setup the UDRC-II with the DR-1X for use with SvxLink
-- Beast Mastery Hunter DPS Rotation
-- Legion 7.1 - 12/4/2016
local function resting()
-- PET MANAGEMENT
if pet.exists then
if pet.dead and player.castable('Revive Pet') then
return player.cast('Revive Pet')
elseif pet.alive and pet.health.percent < 90 and player.castable('Mend Pet') then
return player.cast('Mend Pet')
-- Beast Mastery Hunter DPS Rotation
-- Legion 7.1 - 12/11/2016
--- COMBAT ROTATION
local function combat()
-- PAUSES
if -player.buff(SB.FeignDeath) or target.is(player) or player.channeling or IsMounted() or IsAoEPending() or UnitControllingVehicle("player") then
return false
end
/* Calculator Assignment 5
*
* A simple calculator program controlled program, controlled by a menu and
* divided into separate functions.
*
* Name: Brandon Jank
* Section: CS 120-05
* Due Date: 10/06/2014
* Assignment #5
*
/* Lab Assignment #4
* Name: Brandon Jank
* Due: February 19th, 2015
*
* A basic Reverse Polish Notation (RPN) Calculator that implements basic
* math functions.
*
* Date Created: February 16th, 2015, 12:21 PM
* Date Modified: February 18th, 2015, 6:40 PM
*/