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
| var fs = require("fs"); | |
| let decryptionAESKey = | |
| "02f3ffa287f78ba68c60f24f79c6fb18ce32b4ebaadac11af5ace8c67a50ae9f"; | |
| Decrypter = {}; | |
| Decrypter._headerlength = 16; | |
| Decrypter._encryptionKey = ""; | |
| Decrypter.SIGNATURE = "5250474d56000000"; | |
| Decrypter.VER = "000301"; | |
| Decrypter.REMAIN = "0000000000"; |
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.Runtime.InteropServices; | |
| namespace M64RPFW.Models.Helpers; | |
| /// <summary> | |
| /// Marks a pseudo-<see cref="DllImportAttribute"/>ed function resolved at runtime. | |
| /// | |
| /// <para> | |
| /// To register correctly, a <c>RuntimeDllImport</c>ed delegate must either | |
| /// set the <see cref="Name"/> property or start with a capital <c>D</c>. |
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
| std::vector<std::string> get_files_in_subdirectories( | |
| const std::string &directory) | |
| { | |
| std::string newdir = directory; | |
| if (directory.back() != '\0') | |
| { | |
| newdir.push_back('\0'); | |
| } | |
| WIN32_FIND_DATA find_file_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
| public class SkiaRenderEventArgs : EventArgs | |
| { | |
| public SkiaCanvas Sender { get; init; } | |
| public SKCanvas Canvas { get; init; } | |
| } | |
| public class SkiaCanvas : UserControl | |
| { | |
| private class SkiaCallbackRenderOperation : ICustomDrawOperation | |
| { |
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 type {Writable} from "svelte/store"; | |
| import {writable} from "svelte/store"; | |
| export function lsWritable<T>(path: string, default_value: T): Writable<T> { | |
| const store = writable<T>(localStorage.getItem(path) ? JSON.parse(localStorage.getItem(path)) as T : default_value); | |
| store.subscribe(x => { | |
| localStorage.setItem(path, JSON.stringify(x)); | |
| }); | |
| return store; | |
| } |
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 Avalonia; | |
| using Avalonia.Controls; | |
| using Avalonia.Media; | |
| using Avalonia.Platform; | |
| using Avalonia.Rendering.SceneGraph; | |
| using Avalonia.Skia; | |
| using Avalonia.Threading; | |
| using SkiaSharp; | |
| namespace M64RPFW.Views.Avalonia.Controls; |
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 "sound_pool.h" | |
| t_sound_pool *create_sound_pool(const char *path, int size) { | |
| t_sound_pool * soundPool = (t_sound_pool*)MemAlloc(sizeof(t_sound_pool)); | |
| soundPool->current_index = 0; | |
| soundPool->size = size; | |
| soundPool->sounds = (Sound*)MemAlloc(sizeof(Sound) * size); |
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
| public static class ArrayExtensions | |
| { | |
| public static T[] GetColumn<T>(this T[,] matrix, int columnNumber) | |
| { | |
| return Enumerable.Range(0, matrix.GetLength(0)) | |
| .Select(x => matrix[x, columnNumber]) | |
| .ToArray(); | |
| } |
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 type { INumberFormatterService } from "../services/INumberFormatterService"; | |
| export class BigFormatterService implements INumberFormatterService { | |
| private static formatLong: string[] = [' thousand', ' million', ' billion', ' trillion', ' quadrillion', ' quintillion', ' sextillion', ' septillion', ' octillion', ' nonillion']; | |
| private static prefixes = ['', 'un', 'duo', 'tre', 'quattuor', 'quin', 'sex', 'septen', 'octo', 'novem']; | |
| private static suffixes = ['decillion', 'vigintillion', 'trigintillion', 'quadragintillion', 'quinquagintillion', 'sexagintillion', 'septuagintillion', 'octogintillion', 'nonagintillion']; | |
| constructor() { | |
| for (var i in BigFormatterService.suffixes) { |
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
| { | |
| "hosting": { | |
| "public": "dist/", | |
| "ignore": ["firebase.json", "**/.*", "**/node_modules/**"], | |
| "rewrites": [ | |
| { | |
| "source": "**", | |
| "destination": "/index.html" | |
| } | |
| ] |
NewerOlder