What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-16 13:36:22
run python script from unity
Instead of using a process which can be unreliable outside your controlled development environment (you don't know if your users will even have Python installed and which version) you could try to run Python directly in your code using IronPython, IronPyt... Add solution -
Shell/Bash 2021-11-16 04:09:16
powershell read xaml file
# ========================================================================================= # Read XAML Window # ========================================================================================= $currentDir = Split-Path $myInvocation.MyCommand.Pat... Add solution -
Other 2021-11-11 00:00:18
HarddiskVolume
# Biuild System Assembly in order to call Kernel32:QueryDosDevice. $DynAssembly = New-Object System.Reflection.AssemblyName('SysUtils') $AssemblyBuilder = [AppDomain]::CurrentDomain.DefineDynamicAssembly($DynAssembly, [Reflection.Emit.AssemblyBuild... Add solution -
C# 2021-11-10 23:16:07
get all classes that extend a class c#
//through reflection using System.Reflection; //as a reusable method/function Type[] GetInheritedClasses(Type MyType) { //if you want the abstract classes drop the !TheType.IsAbstract but it is probably to instance so its a good idea to keep it. ret... Add solution -
SQL 2021-11-09 19:27:23
how to automate smo task to generate sql database object via powershell
[System.Reflection.Assembly]::LoadWithPartialName('Microsoft.SqlServer.SMO')| out-null # Create an SMO connection to the instance $s = new-object ('Microsoft.SqlServer.Management.Smo.Server') "LOCALHOST\SQL2005_1" $dbs = $s.Databases $dbs[&qu... Add solution -
C# 2021-11-09 01:19:12
HttpClient .net Core add Certificate
Module m = Assembly.GetEntryAssembly().GetModules()[0]; using (var cert = m.GetSignerCertificate()) using (var cert2 = new X509Certificate2(cert)) { var _clientHandler = new HttpClientHandler(); _clientHandler.ClientCertificates.Add(cert2); _clie... Add solution -