Skip to content

Instantly share code, notes, and snippets.

View sushihangover's full-sized avatar

Robert N. sushihangover

View GitHub Profile
@sushihangover
sushihangover / bash
Created June 20, 2015 16:57
CppSharp build output for issue report
config=release_x32 make
==== Building CppSharp.AST (release_x32) ====
make[1]: Nothing to be done for `all'.
==== Building CppSharp.Runtime (release_x32) ====
make[1]: Nothing to be done for `all'.
==== Building CppSharp.CppParser (release_x32) ====
Creating ../obj/x32/Release/CppSharp.CppParser
AST.cpp
Comments.cpp
CppParser.cpp
@sushihangover
sushihangover / console output
Created June 17, 2015 05:28
monodevelop-build
ruby -e "$(curl -fsSL bit.ly/1zCQCam)"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 75.4M 100 75.4M 0 0 381k 0 0:03:22 0:03:22 --:--:-- 672k
Password:
Sorry, try again.
Password:
installer: Package name is Xamarin.Mac
installer: Installing at base path /
installer: The install was successful.
using System;
using System.Collections;
namespace TestNamespace
{
public class TestClass
{
static long ticks = 0;
static double globalvar;
using System;
using System.Collections;
namespace TestNamespace
{
public class TestClass
{
static long ticks = 0;
static double globalvar;
@sushihangover
sushihangover / assembly.h_missing
Created February 21, 2015 16:24
Monoobjc native package compile error
Cleaning: Fireworks (Release)
Removing output files...
Clean complete
Building: Fireworks (Release)
Pre-Building...
Building
Performing main compilation...
@sushihangover
sushihangover / UnitTests
Created February 21, 2015 11:42
MonaServer OS-X Compile output via HomeBrew gcc 4.9.2_1
Mars:UnitTests administrator$ ./UnitTests -module=all
sources/Test.cpp[32] BinaryReaderWriterTest::Native OK (0ms)
sources/Test.cpp[32] BinaryReaderWriterTest::BigEndian OK (0ms)
sources/Test.cpp[32] BinaryReaderWriterTest::LittleEndian OK (0ms)
sources/Test.cpp[32] BufferTest::Dynamic OK (0ms)
sources/Test.cpp[32] BufferTest::Fix OK (0ms)
sources/Test.cpp[32] DNSTest::HostByName OK (30ms)
sources/Test.cpp[32] DNSTest::HostByAddress OK (4ms)
sources/Test.cpp[32] DatabaseTest::Load OK (32ms)
sources/Test.cpp[32] DatabaseTest::Add OK (2ms)
require 'formula'
class Git < Formula
homepage 'http://git-scm.com'
url 'https://git-core.googlecode.com/files/git-1.9.0.tar.gz'
sha1 'e60667fc16e5a5f1cde46616b0458cc802707743'
head 'https://github.com/git/git.git'
bottle do
sha1 "582a276b608de17888da01922648522bf7a9c11a" => :mavericks
@sushihangover
sushihangover / build
Last active August 29, 2015 13:56
Ellcc Build fix for OS-X (ellcc/gnu/build)
#!/bin/sh
# ELLCC GNU tools build script.
# Get the staging directory.
prefix=`cd ..; pwd`
# Figure out the compilers to use.
. ../build-setup $*
echo Configured to $WHY.
@sushihangover
sushihangover / lllvm_initial_build.sh
Created February 11, 2014 23:50
OS-X LLVM / CLANG Initial Build Script
git clone http://llvm.org/git/llvm.git
pushd llvm/tools
git clone http://llvm.org/git/clang.git
popd
pushd llvm/projects
git clone http://llvm.org/git/compiler-rt.git
popd
pushd llvm/projects
git clone http://llvm.org/git/test-suite.git
popd
@sushihangover
sushihangover / OmetaJSPNG
Created February 10, 2014 16:30
Ometa/JS Parsing Example of a PNG (Binary) File
ometa BinaryParser <: Parser {
// Portable Network Graphics (PNG) Specification (Second Edition)
// http://www.w3.org/TR/PNG/
// Note: not all chunk are defined, this is just a POC
//entire PNG stream
START = [header:h (chunk+):c number*:n] -> [h,c,n],
//chunk definition
chunk = int4:len str4:t apply(t,len):d byte4:crc
-> [#chunk, [#type, t], [#length, len], [#data, d], [#crc, crc]],