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 bash | |
| # Copy all VS Code chatSessions folders to a backup location, preserving timestamps. | |
| set -euo pipefail | |
| SRC="$HOME/Library/Application Support/Code/User/workspaceStorage" | |
| DEST="$HOME/Dropbox/Backups/VSCodeChatSessions" | |
| if [ ! -d "$SRC" ]; then | |
| echo "Source directory not found: $SRC" >&2 |
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
| function clean_bin_obj | |
| argparse --name clean_bin_obj 'n/dry-run' -- $argv | |
| or return $status | |
| set -l dry_run 0 | |
| if set -q _flag_n | |
| set dry_run 1 | |
| end | |
| set -l roots $argv |
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 math | |
| from collections import namedtuple | |
| from typing import Any, Callable, Dict, Optional | |
| import json | |
| import torch | |
| from torch import Tensor | |
| import torch.nn as nn | |
| import torch.nn.functional as F | |
| import torchvision.transforms.v2 |
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
| 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 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
| $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 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
| - 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 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
| 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 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
| #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 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
| 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 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
| name: Build and Test | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| schedule: | |
| - cron: '13 13 * * *' |
NewerOlder