Skip to content

Instantly share code, notes, and snippets.

@Heasummn
Heasummn / .vimrc
Last active September 10, 2016 01:20
vim config
" Set everything to a default
set nocompatible
let g:dotvim = "~/.vim/"
" Enable and use Pathogen
execute pathogen#infect()
call pathogen#helptags()
@Heasummn
Heasummn / Shell Run
Created June 30, 2016 06:29
Incorrect Executable type generated by llvmlite
>>> from llvmlite import ir
>>> from llvmlite import binding as llvm
>>> llvm.initialize()
>>> llvm.initialize_native_asmprinter()
>>> llvm.initialize_native_target()
>>> target = llvm.Target.from_default_triple()
>>> target.triple
'x86_64-pc-windows-msvc'
>>> llvm.get_object_format("x86_64-pc-windows-msvc")
#include <iostream>
#include <string.h>
void guessNumber();
bool isSolution(int);
bool tooHigh(int);
int main() {
guessNumber();
}
#include <iostream> // IO
#include <string> // String variable
#include <fstream> // File IO
#define HEAPSIZE 30000
// Prototypes
void lexer(std::string);
void parser(char);
void help();
#!/usr/bin/env python3
import os
while True:
args = input('> ').split()
line = args
os.execvp(args[0], line)
/**
* Created by Heasummn on 12/20/2015.
*/
public class BFRunner {
public static void main(String[] args) {
Interpreter brainFuck = new Interpreter();
brainFuck.interpret("++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.+.");
}
}