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
/* | |
Google I/O 2008 - Dalvik Virtual Machine Internals | |
Interpreters 101, toy interpreter | |
This is a simple toy bytecode interpreter | |
*/ | |
#include <cstdio> | |
static void interpreter(const char* stringOfBytecode); |
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
/* | |
The gcc way | |
*/ | |
#define DISPATCH() \ | |
{ goto *op_table[*((stringOfBytecode)++) - 'a']; } | |
static void interpreter_the_gcc_way(const char* stringOfBytecode) { | |
static void* op_table[] = { | |
&&op_a, &&op_b, &&op_c, &&op_d, &&op_e | |
}; |
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
// vim: ft=cpp sw=4 ts=4 et | |
/* (C) 2003-2008 Willem Jan Hengeveld <[email protected]> | |
* | |
* Web: http://www.xs4all.nl/~itsme/projects/ida/ | |
*/ | |
#define UNLOADED_FILE 1 | |
#include <idc.idc> | |
// this script processes the objective C typeinfo tables, | |
// and names functions accordingly. |
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
#Category:main - the main binary packages needed to run enigma | |
lgm 3b76ba33dd2d3a321bdd6a501c4137dd lgm16b4.jar http://dl.dropbox.com/u/9975312/enigma-dep/lgm16b4.jar none | |
main b5f6de84285a0795ad74f03c32bccafd plugins/enigma.jar http://dl.dropbox.com/u/9975312/enigma-dep/enigma.jar jnaJar,lgm | |
jnaJar d3ba41fcad5df53da1fe12fc772bb8b6 plugins/shared/jna.jar http://dl.dropbox.com/u/9975312/enigma-dep/jna.jar none | |
#Category:examples | |
hit_the_ball bbc69c20a4e5d71025e96148b8c83c89 examples/hit_the_ball.gmk http://dl.dropbox.com/u/5072558/EnigmaUpdater/hit_the_ball.gmk none | |
#Category:sdks | |
androidSDK-darwin 387fed6cbdbd89958778c0395be7ce27 SDKs/androidSDK-darwin.epackage http://dl.dropbox.com/u/5072558/EnigmaUpdater/android-ndk-r7b.epackage none |
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 hexChar = ["0", "1", "2", "3", "4", "5", "6", "7","8", "9", "A", "B", "C", "D", "E", "F"]; | |
function byteToHex(b) { | |
return hexChar[(b >> 4) & 0x0f] + hexChar[b & 0x0f]; | |
} |
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
/** | |
* Inserts a warning box under the current cursor location | |
*/ | |
function insertWarningTableAtCursor() { | |
if (!doesTheUserWantToContinue('This will insert a warning Box at your current cursor location, are you sure you want to do this?')) return; | |
var cursor = DocumentApp.getActiveDocument().getCursor(); | |
if (!cursor) {showCursorError(); return;} | |
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
/* | |
Angular | |
*/ | |
//http://stackoverflow.com/questions/13681116/angularjs-dynamic-routing |
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
Seems to be possible in a project called Kivy: | |
http://kivy.org/docs/guide/packaging-ios.html | |
Kivy seems pretty interesting: | |
Kivy - Open source Python library for rapid development of applications | |
that make use of innovative user interfaces, such as multi-touch apps. | |
But not sure how much it forces the user to code in thier own style.. |
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
http://gist.io seemed like a good solution but it doesn't seem to work anymore. |
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
// | |
// # Prettify Javascript files | |
// | |
"jsbeautifier": { | |
files: ["<%= config.app %>/js/*{,*/}*.js", './dashboards/**/*.js', './app/**/*.js', './bin/**/*.js'], | |
options: {} | |
}, | |
// | |
// # Prettify HTML files |
OlderNewer