Skip to content

Instantly share code, notes, and snippets.

View tanerochris's full-sized avatar

tanerochris tanerochris

View GitHub Profile
@tanerochris
tanerochris / coin.c
Last active August 29, 2015 14:17
A program to simulate the tossing of a coin
#include<stdio.h>
//a program to simulate the tossing of a coin
int flip();
int flip(){
return random()%2;
}
int main(void){
int i,h=0,t=0;
@tanerochris
tanerochris / cat.c
Created March 15, 2015 15:06
An incomplete C implementation of Linux cat command
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include<stdlib.h>
#include <stdio.h>
#define SIZE 50
int main(int argc,char* argv[]){
@tanerochris
tanerochris / autosave.json
Last active August 29, 2015 14:17
BONELIST
[{"id":"THISISTHEFIRSTIDYOUWOULDNTUSE"},{"id":"c209233396b265bc547b"},{"id":"20388fe644c4c627428c"},{"id":"65eac4b5c92b5e209f15"},{"id":"a3c0f442cd2f97829ed1"}]
[{"id": "THISISTHEFIRSTIDYOUWOULDNTUSE"}]
@tanerochris
tanerochris / CARD_0.html
Last active August 29, 2015 14:17
Bone101 Tutorial
&lt;html&gt;<div><br></div><div><div style="text-align: right;"><br></div><div>&lt;/html&gt;</div></div>
@tanerochris
tanerochris / CARD_0.html
Last active August 29, 2015 14:17 — forked from DiegoTc/CARD_0.html
Bone101 Tutorial
<h3>
Build and execute instructions</h3><div><img src="http://beagleboard.org/static/uploads/LEDs.PNG" style="width: 337px;"><br></div><div><ul style="color: rgb(82, 82, 82); font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12px;"><li>Run the example code of the next card and observe USR3 blinking.</li><li>Alter the frequency and re-run the example.</li></ul></div>
@tanerochris
tanerochris / CARD_Preview.html
Last active August 29, 2015 14:17
Bone101 Tutorial
<p>7977987979797</p>
@tanerochris
tanerochris / CARD_Preview.html
Created March 20, 2015 17:38
Bone101 Tutorial
<p><br></p>
@tanerochris
tanerochris / CARD_Preview.html
Created March 21, 2015 16:59
Bone101 Tutorial
<p><br></p>
@tanerochris
tanerochris / countWords.c
Created March 23, 2015 12:03
Counts the frequency of words in an input file and prints the result to an output file.Code makes use of binary search algorithm.
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<ctype.h>
#define SIZE 30
typedef struct node WORD;
struct node {
char *words;
int count;