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
function sierpinski(pair1,pair2,pair3) | |
X = (((pair1(1)-pair2(1))^2)+((pair1(2)-pair2(2))^2))^(1/2); | |
Y = (((pair3(1)-pair2(1))^2)+((pair3(2)-pair2(2))^2))^(1/2); | |
Z = (((pair3(1)-pair1(1))^2)+((pair3(2)-pair1(2))^2))^(1/2); | |
if X >= 0.1 && Y >= 0.1 && Z >= 0.1 | |
x = [pair1(1) pair2(1) pair3(1) pair1(1)]; | |
y = [pair1(2) pair2(2) pair3(2) pair1(2)]; | |
for index = 1:length(pair1) | |
A(index) = (pair2(index)+pair3(index))/2; | |
B(index) = (pair1(index)+pair3(index))/2; |
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
#Hunter Scott | |
#Version for MARS | |
#declare and reserve space for data and variables after .data | |
.data | |
#string constant | |
title: .asciiz "Program computes the pariety of number" | |
prompt: .asciiz "Input a number please: " | |
o_title: .asciiz "The pariety is " | |
# newline junk | |
newline: .byte 10,13,00,00 |
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
// Perfect.cpp : Defines the entry point for the console application. | |
#include "stdafx.h" | |
#include "Windows.h" | |
#include "LIMITS.h" | |
static HANDLE Thread_mutex; | |
int prime_count1; | |
int prime_count2; | |
int prime_count3; | |
int prime_count4; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Planck Cosmic Microwave Background</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> | |
<style> |
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
float analog0; | |
float analog1; | |
float analog2; | |
float analog3; | |
float analog0_close; | |
float analog1_close; | |
float analog2_close; | |
float analog3_close; | |
float analog0_open; | |
float analog1_open; |
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
float analog0; | |
float analog1; | |
float analog2; | |
float analog3; | |
float analog0_close; | |
float analog1_close; | |
float analog2_close; | |
float analog3_close; |
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 <board.h> | |
#include "main.h" | |
#include "status.h" | |
#include "timer.h" | |
#include "ball_sense.h" | |
#include "adc.h" | |
//How much ambient IR light we can handle | |
//FIXME This number is arbitrary and needs to be chosen experimentally |
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
### Keybase proof | |
I hereby claim: | |
* I am blueintegral on github. | |
* I am hunter (https://keybase.io/hunter) on keybase. | |
* I have a public key whose fingerprint is DECD 24A6 5BB9 7D5E 12B9 CCAE C5B3 F178 DF88 9B2F | |
To claim this, I am signing this object: |
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
Microsoft Windows [Version 10.0.10586] | |
(c) 2015 Microsoft Corporation. All rights reserved. | |
C:\>cd "Program Files (x86)\Microsoft Visual Studio 9.0" | |
C:\Program Files (x86)\Microsoft Visual Studio 9.0>cd VC | |
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC>cd bin | |
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin>cd amd64 |