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
class Globe : Scene | |
{ | |
const double PI = Math.PI; | |
const double DegToRad = PI / 180.0; | |
public const double EarthRadius = 2.0; | |
const double EarthFlattening = 1.0/298.257223563; | |
const double EarthFF = (1.0 - EarthFlattening) * (1.0 - EarthFlattening); | |
public const double CameraDistance = 50.0; |
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
$00965170 Rage.AI.NavigationMesh..navSectorData | |
$009687CC Rage.AI.NavigationMesh.navAABB.GetMax | |
$009687F8 Rage.AI.NavigationMesh.navAABB.GetMin | |
$00967C18 Rage.AI.NavigationMesh.navMesh.addInnerBlocks | |
$00967CD0 Rage.AI.NavigationMesh.navMesh.Create | |
$00967E8C Rage.AI.NavigationMesh.navMesh.getCenterPoint | |
$00968524 Rage.AI.NavigationMesh.navPoly.getVertexCount | |
$009685B0 Rage.AI.NavigationMesh.navPoly.setVertexCount | |
$0096D4D8 Rage.Audio2.IO.Bank..TRageAudio2BankContainer | |
$00977C70 Rage.Audio2.IO.Container..TBaseRageAudio2File |
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
- name: Import Apple Certificate | |
uses: apple-actions/import-codesign-certs@v1 | |
with: | |
create-keychain: true | |
keychain-password: ${{ secrets.APPSTORE_CERTIFICATE_P12_PASSWORD }} | |
p12-file-base64: ${{ secrets.APPSTORE_CERTIFICATE_P12 }} | |
p12-password: ${{ secrets.APPSTORE_CERTIFICATE_P12_PASSWORD }} | |
- name: Import Mac Installer Certificate | |
uses: apple-actions/import-codesign-certs@v1 |
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
module Neural.CoreMLSupport | |
open Data | |
open Neural.Layers | |
open CoreML.Specification | |
open FSharp.NativeInterop | |
#nowarn "9" | |
let rec modelDataFromCoreML (min : System.IO.Stream) : ModelData = |
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
#nullable enable | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Net.Http; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Foundation; | |
using Metal; |
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
namespace Neural | |
type Id = System.String | |
type Id<'T> = | |
| Id of Id | |
override this.ToString () = match this with Id id -> id | |
type IEntity = | |
abstract References : Id seq with get | |
abstract DeleteReference : Id -> IEntity option |
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
name: Build and Test | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: '13 13 * * *' |
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
#include "NNControl.h" | |
#include <math.h> | |
extern const float nncontrol_dense_74_weights0[320]; // (5, 64) | |
extern const float nncontrol_dense_74_weights1[64]; // (64,) | |
extern const float nncontrol_dense_75_weights0[4096]; // (64, 64) | |
extern const float nncontrol_dense_75_weights1[64]; // (64,) | |
extern const float nncontrol_dense_76_weights0[64]; // (64, 1) | |
static const float tf_math_multiply_69_Mul_0_const0[1] = {0}; |
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
using System; | |
using Ooui; | |
namespace MinimalOoui | |
{ | |
class Program | |
{ | |
static Element CreateUI() | |
{ |
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
// From https://www.best-microcontroller-projects.com/rotary-encoder.html | |
static uint8_t prevNextCode = 0; | |
static uint16_t store=0; | |
int8_t read_rotary() { | |
static int8_t rot_enc_table[] = {0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0}; | |
prevNextCode <<= 2; | |
if (digitalRead(RIGHT_PIN)) prevNextCode |= 0x02; |
NewerOlder