=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
BrainFuck Programming Tutorial by: Katie
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
/* The world's smallest Brainfuck interpreter in C, by Kang Seonghoon | |
* http://j.mearie.org/post/1181041789/brainfuck-interpreter-in-2-lines-of-c */ | |
s[99],*r=s,*d,c;main(a,b){char*v=1[d=b];for(;c=*v++%93;)for(b=c&2,b=c%7?a&&(c&17 | |
?c&1?(*r+=b-1):(r+=b-1):syscall(4-!b,b,r,1),0):v;b&&c|a**r;v=d)main(!c,&a);d=v;} |
<canvas id="canvas" width="512" height="256" ></canvas> | |
<p id="controls"> | |
<input type="button" id="start_button" value="Start"> | |
| |
<input type="button" id="stop_button" value="Stop"> | |
</p> | |
<!-- ----------------------------------------------------- --> |
TL;DR* Here's what the license entails:
1. Anyone can copy, modify and distribute this software.
2. You have to include the license and copyright notice with each and every distribution.
3. You can use this software privately.
4. You can use this software for commercial purposes.
5. If you dare build your business solely from this code, you risk open-sourcing the whole code base.
public final class Print { | |
private str = new String(); | |
public Print(String string) { | |
this.str = string; | |
} | |
public void print() { | |
system.out.println(str); | |
} | |
} |
Hello! I'm Amish (also known as hydrabolt), and I am the creator of discord.js.
I created discord.js as a hobby/learning project for myself in August 2015 while I was still a teenager in school.
More than 6 years later, discord.js has become more popular than I could ever imagine, and I cannot express how grateful I am to the other contributors and the community for this amazing experience.
A few of my favourite highlights include:
// Multiplication in raw TypeScript. Please, please do not ever ever ever use this | |
type TupleOfLength< | |
T, | |
L extends number, | |
R extends T[] = [] | |
> = R["length"] extends L ? R : TupleOfLength<T, L, [...R, T]>; | |
type FlattenResult< | |
T extends 0[][], |