Skip to content

Instantly share code, notes, and snippets.

View B45i's full-sized avatar
:octocat:

Amal Shajan B45i

:octocat:
View GitHub Profile
@B45i
B45i / startSerial.ino
Created April 8, 2018 05:23
Serial logo for my arduino projects
void startSerial(int baud) {
Serial.begin(baud);
Serial.println(" ");
Serial.println(" ");
Serial.println(" ____ __ __ ______");
Serial.println("/\\ _`\\ /\\ \\\\ \\ /\\ ___\\ __");
Serial.println("\\ \\ \\_\\ \\\\ \\ \\\\ \\ \\ \\ \\__/ /\\_\\");
Serial.println(" \\ \\ _ <'\\ \\ \\\\ \\_\\ \\___``\\/\\ \\");
#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.
#include <stdio.h>
#include <ctype.h>
#include <string.h>
char stack[50];
int top = -1;
push(char elem) {
stack[++top] = elem;
// 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
#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)
#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() {
@B45i
B45i / RPD_2.c
Last active August 8, 2017 07:15
#include <stdio.h>
#include <conio.h>
void e();
void ePrime();
void t();
void tPrime();
void f();
char str[25];
#include <stdio.h>
#include <conio.h>
char str[25];
int i;
void a() {
if(str[i]=='a' && str[i+1]=='b')
i += 2;
//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");
#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];