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
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);
}
}
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 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 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
open System
type State = {
Tape : int[]
Index : int
}
let print_tape state : State =
printfn "%A" state.Tape
state
// Learn more about F# at http://fsharp.net
module Checker
open FSharp.Core
open Microsoft.FSharp.Reflection
type Person = {
name: string;
age: int
}
<html>
<head>
<script type="text/javascript">
if (undefined === window.exports) {
window.exports = {};
}
</script>
<script type="text/javascript" src="./ling-highlighter.js"></script>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {
.text
.file "blah.c"
.globl main
.align 16, 0x90
.type main,@function
main: # @main
.cfi_startproc
# BB#0:
pushq %rbp
.Ltmp0:
++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.