This file contains hidden or 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
#!/usr/bin/env i4s | |
#intuicio 4.0; | |
#stack 8k; | |
#memory 16k; | |
#entry @Main; | |
#pointersize 32; | |
#import from [IO:print] routine print(format:*i8, ...):; |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
namespace WinnerRandomSelector | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
This file contains hidden or 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
#!/usr/bin/env jaeger | |
# directive that tells compiler | |
# what function from which native module we will use. | |
/use roar from "jaeger_std"/ | |
/use waitForMilliseconds from "jaeger_std"/ | |
#/jaegerify "file_open(path:*i8, mode:*i8):*i32" from "IO"/ | |
# directive that tells compiler which function is program entry point. | |
/start main/ |
This file contains hidden or 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
#ifndef __GRAMMAR_H__ | |
#define __GRAMMAR_H__ | |
#include "std_extension.h" | |
#include <pegtl.hh> | |
namespace Grammar | |
{ | |
struct function_call; | |
struct data; |
This file contains hidden or 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
#!/usr/bin/env i4s | |
#intuicio 4.0; | |
#stack 8k; | |
#memory 16k; | |
#entry @Main; | |
#pointersize 32; | |
#import from [IO:print] routine print(format:*i8, ...):; | |
#import from [IO:get_line_new] routine get_line_new():*i8; |
This file contains hidden or 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
#include "library.h" | |
#ifdef BUILD_LINUX | |
#include <dlfcn.h> | |
#endif | |
#ifdef BUILD_WIN | |
#include <windows.h> | |
#endif | |
#include <map> | |
struct Handle |
This file contains hidden or 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
using I4.NET; | |
using System; | |
using System.Collections.Generic; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
using UnityEngine; | |
using UnityEngine.UI; | |
namespace I4.Unity.Example | |
{ |
This file contains hidden or 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
// calcualte position difference (a.k.a. tangent vector): | |
var dx = enemy.x - x; | |
var dy = enemy.y - y; | |
// calculate angle in radians of instance: | |
var rad = degtorad(image_angle); | |
// calculate where is instance right side (a.k.a. binormal vector): | |
var bx = -sin(rad); | |
var by = cos(rad); |
This file contains hidden or 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
// import './serialization.chrobry' | |
inject | |
``` | |
#pragma once | |
#include <string> | |
#include <sstream> | |
``` | |
extern 'int' 'float' { |
This file contains hidden or 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
#[test] | |
fn test_hello_world() { | |
// convenient macro that produces widget component processing function. | |
widget_component! { | |
// <component name> ( [list of context data to unpack into scope] ) | |
app(key, named_slots) { | |
// easy way to get widgets from named slots. | |
unpack_named_slots!(named_slots => { title, content }); | |
// we always return new widgets tree. |