This is a test document. Lorem ipsum set amore, etc etc.
local f = function(x)
return x*x + 2*x + 4
end
---- Minecraft Crash Report ---- | |
// Who set us up the TNT? | |
Time: 6/15/15 9:29 AM | |
Description: Loading entity NBT | |
java.lang.IllegalArgumentException: Duplicate id value for 13! | |
at net.minecraft.entity.DataWatcher.func_75682_a(SourceFile:64) | |
at powercrystals.minefactoryreloaded.entity.EntitySafariNet.func_70037_a(EntitySafariNet.java:156) | |
at net.minecraft.entity.Entity.func_70020_e(Entity.java:1433) |
<table> | |
<thead> | |
<tr> | |
<th>Match Number</th> | |
<th>Competition Level</th> | |
<th>Red Score</th> | |
<th>Blue Score</th> | |
<th>Red 1</th> | |
<th>Red 2</th> | |
<th>Red 3</th> |
#!/usr/bin/env python3 | |
from wpilib import Timer | |
def main(): | |
start_time = Timer.getFPGATimestamp() | |
now = start_time | |
while now < start_time + 5: | |
do_stuff() | |
now = Timer.getFPGATimestamp() | |
Timer.delay(.001) |
import threading | |
import wpilib | |
import serial | |
import re | |
class IMUSimple(threading.Thread): | |
float_regex = """([\+\-]\d{3}\.\d{2})""" | |
int8_regex = """([0-9A-Fa-f]{2})""" | |
int16_regex = """([0-9A-Fa-f]{4})""" | |
termination_regex = int8_regex + "\n\r" |
import math | |
def returnPIDInput(self): | |
angle = self.gyro.getAngle() | |
set_point = self.pid_controller.getSetPoint() | |
angle_greater = angle + 2*math.pi | |
angle_lesser = angle - 2*maht.pi | |
use_angle = math.fabs(angle-set_point) < math.fabs(angle_greater - set_point) | |
use_angle = use_angle and math.fabs(angle-set_point) < math.fabs(angle_lesser - set_point) |
function isAlive(state, x, y) { | |
var count=0; | |
for(var i=-1;i<=1;i++){ | |
for(var j=-1;j<=1;j++){ | |
if(!(j===0&&i===0)){ | |
var xIndex = (i+x+state.length)%(state.length); | |
var yIndex = (j+y+state[xIndex].length)%(state[xIndex].length); | |
if(state[xIndex][yIndex]){ | |
count++; | |
} |
--Based on /u/ThatParadox's code. http://redd.it/2atn8f | |
--To use: | |
--pastebin get nD6eVHwy startup | |
for _,side in pairs(rs.getSides()) do | |
if peripheral.getType(side) == "ender_chest" then | |
chest = peripheral.wrap(side) | |
print("Found chest on "..side.." side.") | |
break | |
end | |
end |
header: !!python/tuple | |
- !!binary | | |
Uw== | |
- !!binary | | |
Qg== | |
- !!binary | | |
Vg== | |
- !!binary | | |
Sg== | |
- !!binary | |