This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this code stops when the user presses the 'q' key | |
the only chars accepted are the brain chars | tabs and spaces | |
+ add one to the 0th cell to start the while | |
[ while (true) | |
, read input at 1st cell | |
>[-] clean 2nd cell | |
make letter 'q' before copying at 3rd cell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This is the source code of Brain Programming Language. | |
* It is licensed under GNU GPL v. 3 or later. | |
* You should have received a copy of the license in this archive (see LICENSE). | |
* | |
* Copyright Brain, 2016. | |
*/ | |
#include "Bootstrap.h" | |
#include "llvm/IR/LegacyPassManager.h" | |
#include "llvm/Support/TargetRegistry.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auto TargetTriple = sys::getDefaultTargetTriple(); | |
Owner->setTargetTriple(TargetTriple); | |
std::string Error; | |
auto Target = TargetRegistry::lookupTarget(TargetTriple, Error); | |
if (!Target) { | |
errs() << Error; | |
return 1; | |
} | |
auto CPU = "generic"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var table = document.getElementsByClassName("blob-wrapper")[0].getElementsByTagName("table")[0]; | |
var cells = table.querySelectorAll('tbody td'); | |
for (var i = 0, cell; cell = cells[i]; i++) { | |
if (cell.id.indexOf("LC") !== -1) { | |
console.log(cell.innerHTML); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
struct _Node { | |
int data; | |
struct _Node *next; | |
}; | |
typedef struct _Node Node; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"fmt" | |
) | |
const ( | |
READ_KEY = 1 | |
READ_VALUE = -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ncurses.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
typedef char sprite[8]; | |
typedef struct | |
{ | |
sprite *s; | |
int x; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Your project is amazing. Thanks for it. Here goes my considerations: | |
/* The first thing that called my attention was that you had 4 warnings on your project. | |
* I want you to understand that warnings are in fact possible future runtime errors, thus | |
* we need to try to solve them before shipping a product. | |
* | |
* After that, one other thing that I saw as I opened your project was that you did not quite | |
* choose good names for your different files. I am saying that because they are arranged as | |
* function names, for example: Start_Game.c should call main.c, or only game.c, as the names | |
* should be easy to be identified by any programmer. Other example would be the 'Print_Matrix.c', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
++++++++++ make number 10 at cell 0 | |
>+++*++ make number 32 at cell 1 | |
>+*>+*>+*>+*>+*>+*> make number 32 from cell 2 to 7 | |
<<<<<<%++*+ make number 65 at cell 2 | |
>>>%<%+++*>+*+<------ make number 90 at cell 4 and 97 at cell 5 | |
>>>%++++*------ make number 122 at cell 7 | |
<<<----. print 'V' | |
>++++++++. print 'i' | |
>>-------. print 's' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stddef.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <signal.h> | |
#include <stdio.h> | |
#define PROGRAM "docker run jaca -a google -u username -p password -l 'Vancouver, British Columbia' -m all -w 25 -c 0" |