Skip to content

Instantly share code, notes, and snippets.

View luizperes's full-sized avatar

Luiz Fernando Peres luizperes

  • Simon Fraser University
  • Vancouver, BC
View GitHub Profile
this code stops when the user press the space key
the only chars accepted are the brain chars | tabs and spaces
[65][65][32] continue loop
[32][32][32] end program
+ add one to the 0th cell to start the while
[ while (true)
, read input at 1st cell
@luizperes
luizperes / io.c
Last active July 10, 2016 19:33
Gist for syntax highlight in brain
#include <stdio.h>
#include <termios.h>
#include <unistd.h>
// you can overwrite those functions! :)
void b_putchar(int idx, int *cells);
#define KNRM "\x1B[0m"
#define KRED "\x1B[31m"
//
// BEENewGameView.m
// beezy-bee
//
// Created by Hiroshi on 1/27/16.
// Copyright © 2016 Ideia do Luiz. All rights reserved.
//
#import "BEENewGameView.h"
#import "BEESessionHelper.h"
//
// AppDelegate.m
// UITests
//
// Created by Luiz Fernando Peres on 2016-02-23.
// Copyright © 2016 Ideia do Luiz. All rights reserved.
//
#import "AppDelegate.h"
#import "ViewController.h"