Skip to content

Instantly share code, notes, and snippets.

View amirbakhtiari's full-sized avatar

amir bakhtiari amirbakhtiari

View GitHub Profile
@marcojetson
marcojetson / brainfuck.c
Last active August 29, 2015 13:56
brainfuck interpreter
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
char *p = malloc(1024);
int l[10], j = 0, i = 0;
while (argv[1][i]) {
switch (argv[1][i++]) {
@dodyg
dodyg / gist:5823184
Last active October 20, 2024 12:25
Kotlin Programming Language Cheat Sheet Part 1

#Intro

Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin M5.3

Kotlin project website is at kotlin.jetbrains.org.

All the codes here can be copied and run on Kotlin online editor.

Let's get started.