This file contains 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
global main | |
extern puts | |
extern sprintf | |
section .text | |
main: | |
push rbx | |
mov r15, 100 | |
mov r14, 1 | |
loop: | |
;print the loop variable into the buffer |
This file contains 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
execute pathogen#infect() | |
filetype indent plugin on | |
syntax on | |
set nu | |
set backspace=indent,eol,start | |
set shiftwidth=4 | |
set softtabstop=4 | |
set expandtab | |
set shiftwidth=4 |
This file contains 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 java.io.*; | |
import java.net.*; | |
import java.util.concurrent.locks.ReentrantReadWriteLock; | |
import java.util.concurrent.locks.ReadWriteLock; | |
import java.util.regex.*; | |
import java.util.HashMap; | |
import java.util.Scanner; | |
import java.util.Timer; | |
import java.util.TimerTask; |
This file contains 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/env python3 | |
import yaml | |
from pprint import pprint | |
yaml_code = """ | |
Example: | |
name: "Example" | |
timestamp: 1500421023 | |
nested: | |
- name: "Part 1" |
This file contains 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 "math.h" | |
//based on https://www.youtube.com/watch?v=GtQdIYUtAHg | |
//used for my alarm clock. | |
//warning: loud. | |
int main(t) { | |
for(;;t++){ | |
putchar(t*t>>8); | |
} | |
} |
This file contains 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/env python3 | |
from networktables import NetworkTables | |
import urllib.request | |
import re | |
import time | |
from pprint import pprint | |
data_regex = re.compile("(\w+) = ([\d\.\-]+)") | |
def getTable(): | |
with urllib.request.urlopen("http://10.40.9.13/data.html") as f: |
This file contains 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 <string.h> | |
#include <stdio.h> | |
static const float scale[] = { | |
0, //rest | |
11.175303405856125, | |
13.289750322558245, | |
15.804265640195972, | |
16.74403617923831, | |
17.739688382519812, |
This file contains 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
package org.usfirst.frc.team4009.robot; | |
import edu.wpi.first.wpilibj.SpeedController; | |
class CorrectionSpeedController implements SpeedController { | |
SpeedController actualController; | |
double correctionFactor; | |
public CorrectionSpeedController(SpeedController controller){ | |
actualController = controller; | |
} |
This file contains 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/env python3 | |
import urllib.request | |
import json | |
import sys | |
import time | |
def get_url(url): | |
opener = urllib.request.build_opener() | |
opener.addheaders = [('User-agent', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36')] | |
return opener.open(url) |
This file contains 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/env python3 | |
import urllib.request | |
import json | |
import sys | |
import time | |
def get_url(url): | |
opener = urllib.request.build_opener() | |
opener.addheaders = [('User-agent', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36')] | |
return opener.open(url) |