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
| [package] | |
| name = "livekit-ffi-csharp" | |
| version = "0.1.0" | |
| edition = "2024" | |
| [lib] | |
| crate-type = ["cdylib"] | |
| [build-dependencies] | |
| csbindgen = "1.9.6" |
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
| services: | |
| windows: | |
| image: dockurr/windows | |
| container_name: windows11 | |
| environment: | |
| VERSION: "11" | |
| USERNAME: "shiben" | |
| PASSWORD: "xxx" | |
| RAM_SIZE: "16G" | |
| CPU_CORES: "8" |
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
| #!/bin/bash | |
| IPTABLES=iptables | |
| STATIC=10.6.121.210 | |
| IF=bond0 | |
| echo "STATIC: ${STATIC}" | |
| for addr in ${STATIC//,/ }; do | |
| echo "addr: ${addr}" | |
| done |
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
| # "your-user-name-on-host@hostname" | |
| param ( | |
| [Parameter(Mandatory=$true)] | |
| [string]$host_and_name, | |
| [Parameter(Mandatory=$false)] | |
| [int]$p | |
| ) | |
| write-host $host_and_name |
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 Microsoft.AspNetCore.Mvc.ApplicationParts; | |
| using Microsoft.AspNetCore.Mvc.Razor; | |
| using Microsoft.Extensions.DependencyInjection; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Reflection; | |
| using System.Runtime.Loader; |
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
| //Prevent Visual Studio Node.js Console closing | |
| //2. From the Debug menu in Visual Studio choose "Options". After this choose "NodeJS Tools" and tick the checkbox | |
| //"Wait for input when process exits normally". press Ctrl + F5 the console window will stay open. | |
| require('readline') | |
| .createInterface(process.stdin, process.stdout) | |
| .question("Press [Enter] to exit...", function () { | |
| process.exit(); | |
| }); |
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 ClassLibrary1 | |
| { | |
| class Test | |
| { | |
| private static void Main(string[] args) | |
| { | |
| new Foo().UseXxx().UseYyy().UseZzz().Execute(); | |
| new Foo().UseXxx().UseYyy().UseZzz().Invoke(); | |
| } | |
| } |
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
| // vim:syntax=C# | |
| public class ConfigXmlReader | |
| { | |
| private const string xmlPath = @"Config/settiingFileList.config"; | |
| private const string baseXPath = @"//setupType[text()={0}]//following-sibling::settingFiles//settingFile//accounts[contains(., '{1}')]/.."; | |
| private static ConfigXmlReader xmlReader = null; | |
| private XDocument xDocument = null; |
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
| // vim:syntax=Java | |
| package com.shiben.asm; | |
| public class GeneratorClassLoader extends ClassLoader { | |
| public GeneratorClassLoader() { | |
| super(ClassLoader.getSystemClassLoader()); | |
| } | |
| public Class<?> defineClassFromClassFile(String className, byte[] classFile) |
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
| // vim:syntax=Java | |
| public class BrowserFrame extends JFrame { | |
| /** | |
| * | |
| */ | |
| private static final long serialVersionUID = 4144302791917251886L; | |
| private LoadingPanel loadingPanel; | |
| public BrowserFrame(String[] args, String initString, boolean useOsr, boolean isTransparent) { |
NewerOlder