Note
This no longer works in browser!
Note
This no longer works if you're alone in vc! Somebody else has to join you!
How to use this script:
- Accept the quest under User Settings -> Gift Inventory
eXtreme Go Horse (XGH) Process | |
Source: http://gohorseprocess.wordpress.com | |
1. I think therefore it's not XGH. | |
In XGH you don't think, you do the first thing that comes to your mind. There's not a second option as the first one is faster. | |
2. There are 3 ways of solving a problem: the right way, the wrong way and the XGH way which is exactly like the wrong one but faster. | |
XGH is faster than any development process you know (see Axiom 14). |
// parseTileLevel at the beginning | |
// genPath kinda often | |
// orient frequently | |
function parseTileLevel() { | |
// put this in a more central place? | |
// parse tile level into graph | |
graph = new Graph(); | |
final lvl = CharVars.get().tileLevel; |
// Sample code showing how to create a modern OpenGL window and rendering | |
// context on Win32, using Odin. | |
// | |
// Ported from https://gist.github.com/nickrolfe/1127313ed1dbf80254b614a721b3ee9c | |
package main | |
import "core:sys/windows" | |
import "core:strings" | |
import "core:fmt" |
package main | |
import "core:fmt" | |
import "base:intrinsics" | |
main :: proc() { | |
X :: enum { A, B, C } | |
Y :: bit_set[X]; | |
values := Y{.A, .C}; |
{ | |
"selector":"source.odin", | |
"file_regex": "^(.+)\\(([0-9]+):([0-9]+)\\) (.+)$", | |
"shell_cmd":"odin check \"$file_path\" -no-entry-point", | |
"variants":[ | |
// | |
// current file | |
// | |
// syntax check |
import android.annotation.SuppressLint; | |
import android.annotation.TargetApi; | |
import android.app.AppOpsManager; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.text.TextUtils; | |
import java.lang.reflect.Method; | |
// MIUI. Redefining Android. |
package main | |
import "core:fmt" | |
import "core:mem" | |
import "core:log" | |
import "core:runtime" | |
// NOTE(Oskar): An example of how to do a leak checking allocator with Odin's context system. | |
// |