Skip to content

Instantly share code, notes, and snippets.

View FantomJAC's full-sized avatar

Shotaro Uchida FantomJAC

  • SF Bay Area, California
View GitHub Profile
@FantomJAC
FantomJAC / gist:f80d0014f4fed3fe016c
Created July 22, 2014 10:57
objfw Ubuntu 14.04 error
[OFThread] -[start]: testing...
Runtime error: Unhandled exception:
Starting a thread of type TestThread failed!
Backtrace:
0x2af66ab9fcc8 <??> at ./libobjfw.so.7
0x2af66aba3a0e <??> at ./libobjfw.so.7
0x2af66aba3942 <??> at ./libobjfw.so.7
0x2af66ab62ca1 <??> at ./libobjfw.so.7
0x425a80 <??> at ./tests
public static int bitReverse(int i, int bit) {
if (bit == 1) return i;
int s = bit / 2;
int mask = 0xFFFFFFFF >>> (32 - s);
return bitReverse(i >> s, s) | bitReverse(i & mask, s) << s;
}
@FantomJAC
FantomJAC / gist:8dca0f47d72dab098274
Last active August 29, 2015 14:01
OpenNakamoto

Common

Ingredients of Miso Base

  • 1 cup aka-miso
  • 1 cup shiro-miso
  • Red pepper powder
  • Curry powder
  • Lard (for stir frying)
@FantomJAC
FantomJAC / armv7hf-pandaboard.patch
Created February 20, 2014 23:58
OMAP4/5(armv7hf) build patch for OpenJFX8 (b129) based on https://github.com/robclark/kmscube
diff -r b8d6295f4672 build.gradle
--- a/build.gradle Fri Feb 07 13:27:40 2014 -0800
+++ b/build.gradle Thu Feb 20 15:57:51 2014 -0800
@@ -1146,8 +1146,8 @@
if (IS_COMPILE_PANGO) {
// TODO: embedded support
- addNative(project, "fontFreetype", ["linux"])
- addNative(project, "fontPango", ["linux"])
+ addNative(project, "fontFreetype", ["linux", "armv7hf"])