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
void startSerial(int baud) { | |
Serial.begin(baud); | |
Serial.println(" "); | |
Serial.println(" "); | |
Serial.println(" ____ __ __ ______"); | |
Serial.println("/\\ _`\\ /\\ \\\\ \\ /\\ ___\\ __"); | |
Serial.println("\\ \\ \\_\\ \\\\ \\ \\\\ \\ \\ \\ \\__/ /\\_\\"); | |
Serial.println(" \\ \\ _ <'\\ \\ \\\\ \\_\\ \\___``\\/\\ \\"); |
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 <Servo.h> | |
Servo myservo; | |
static int pos = 0; | |
int sensorPin1 = 12; | |
int sensorPin2 = 11; | |
int sensorPin3 = 10; | |
int motionSpeed = 15; // Change this to adjust the speed, less the value higher the speed. |
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 <stdio.h> | |
#include <ctype.h> | |
#include <string.h> | |
char stack[50]; | |
int top = -1; | |
push(char elem) { | |
stack[++top] = elem; |
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
// Maurice Ribble | |
// 6-28-2009 | |
// http://www.glacialwanderer.com/hobbyrobotics | |
// This app just probes two external sensors (ADXL330 and IDG300) and | |
// then sends that data over a serial connection. I used a sparkfun | |
// breakout board to make using these chips easier. | |
// http://www.sparkfun.com/commerce/product_info.php?products_id=741 | |
// I wrote a processing.org app that reads in this data and graphs it |
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 <stdio.h> | |
int m, n, o, p, q; | |
int i, j, k; | |
int navi = 0; | |
int mat[10000][10000]; | |
void blast(int a, int b) { | |
if(b<n) |
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 <stdio.h> | |
#include <string.h> | |
int lol[3][11] = { | |
{1,0,0,0,1,1,1,0,1,0,0}, | |
{1,0,0,0,1,0,1,0,1,0,0}, | |
{1,1,1,0,1,1,1,0,1,1,1}, | |
}; | |
int main() { |
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 <stdio.h> | |
#include <conio.h> | |
void e(); | |
void ePrime(); | |
void t(); | |
void tPrime(); | |
void f(); | |
char str[25]; |
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 <stdio.h> | |
#include <conio.h> | |
char str[25]; | |
int i; | |
void a() { | |
if(str[i]=='a' && str[i+1]=='b') | |
i += 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
//FILE NAME : ServerGUI.java | |
import java.awt.*; | |
import java.awt.event.*; | |
import java.io.*; | |
import java.net.*; | |
public class ServerGUI extends Frame implements ActionListener { | |
Button sendButton = new Button("Send"); |
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<stdio.h> | |
#include<conio.h> | |
#include<string.h> | |
int state=0,l,tcnt=0,scnt=0,i,j; | |
FILE *fptr; | |
char ch,lex[20]; | |
struct token{ | |
char tname[20],attr[20]; |