Skip to content

Instantly share code, notes, and snippets.

View funrep's full-sized avatar

Karl-Oskar Rikås funrep

View GitHub Profile
@funrep
funrep / assdasd.c
Created September 22, 2012 22:00
sasads
#include <stdio.h>
main()
{
int c, nw, nc, i, count[10], total;
count[0] = 0;
count[1] = 0;
count[2] = 0;
count[3] = 0;
count[4] = 0;
@funrep
funrep / assdasd.c
Created September 22, 2012 21:48
sasads
#include <stdio.h>
main()
{
int c, wc, count[10];
count[0] = 0;
count[1] = 0;
count[2] = 0;
count[3] = 0;
count[4] = 0;
@funrep
funrep / gist:3767859
Created September 22, 2012 21:13
FUCIK FUCKFUCK
#include <stdio.h>
main()
{
}
@funrep
funrep / mindfuck.c
Created September 22, 2012 20:02
mindfuck
#include <stdio.h>
main()
{
int i, c, counts[256];
for (i = 0; i < 256; ++i)
counts[i] = 0;
while((c = getchar()) != EOF)
@funrep
funrep / gist:3767620
Created September 22, 2012 19:56
asdsad
#include <stdio.h>
main()
{
int c, counts[256];
while((c = getchar()) != EOF)
++counts[c];
printf("%d\n", counts[c]);
}
@funrep
funrep / mindfuck.c
Created September 22, 2012 19:17
mindfuck
#include <stdio.h>
main()
{
int c, i, nwhite, nother;
int ndigit[10]; /* okey, so this make a "array" with 10 variables/values in it? */
nwhite = nother = 0;
for (i = 0; i < 10; ++i)
@funrep
funrep / foobar.c
Created September 22, 2012 18:08
foobar.c
#include <stdio.h>
main()
{
int c;
while ((c = getchar()) != EOF) {
if (c == '\t' || c == '\n')
putchar('\n');
}
@funrep
funrep / gist:3751341
Created September 19, 2012 18:33
FOOBAR!!!1
/* FOOBAR */
#include <stdio.h>
main()
{
long nc;
nc = 0;
while (getchar() != EOF)
@funrep
funrep / gist:3751145
Created September 19, 2012 18:02
asads
/* FOOBAR */
#include <stdio.h>
main()
{
int fuu;
int c;
fuu = ((c=getchar()) != EOF);
@funrep
funrep / gist:3744548
Created September 18, 2012 17:40
asdassdasdasadsad
error:
foo.c: In function 'main':
foo.c:7:9: warning: unknown escape sequence: '\c' [enabled by default]
code:
/* FOOBAR */