(\u001B\[\d+;?\d?m)+
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
########## | |
# Win10 Initial Setup Script | |
# Author: Disassembler <disassembler@dasm.cz> | |
# Version: 1.7, 2016-08-15 | |
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/ | |
# THIS IS A PERSONALIZED VERSION | |
# This script leaves more MS defaults on, including MS security features. | |
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1 |
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
[ | |
{ | |
"Key" : "webServerHost1", | |
"Value" : "http://localhost:8080/", | |
"Type" : "string" | |
}, | |
{ | |
"Key" : "webServerHost2", | |
"Value" : "http://*:8080/", | |
"Type" : "string" |
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
public static void ExecuteSqlScript(string fileName, string connectionString) | |
{ | |
try | |
{ | |
FileInfo file = new FileInfo(fileName); | |
string script = file.OpenText().ReadToEnd(); | |
SqlConnection conn = new SqlConnection(connectionString); | |
Server server = new Server(new ServerConnection(conn)); | |
server.ConnectionContext.ExecuteNonQuery(script); | |
file.OpenText().Close(); |
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
void Main() | |
{ | |
int i = 3; | |
decimal d = 2M; | |
var r = (i / d); | |
Console.WriteLine("Default Behavior:"); | |
Console.WriteLine("Result Type: {0}", r.GetType().Name); | |
Console.WriteLine("Result: {0}", r); | |
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
[DebuggerHidden] | |
private IEnumerator SaveGame(string saveName, string savePath, bool useCloud) | |
{ | |
// ISSUE: object of a compiler-generated type is created | |
return (IEnumerator) new SavePanel.\u003CSaveGame\u003Ec__Iterator2F() | |
{ | |
saveName = saveName, | |
useCloud = useCloud, | |
\u003C\u0024\u003EsaveName = saveName, | |
\u003C\u0024\u003EuseCloud = useCloud, |
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
public bool SaveGame(string savename) | |
{ | |
if (Singleton<LoadingManager>.get_exists() && !Singleton<LoadingManager>.get_instance().m_currentlyLoading) | |
{ | |
if (!SavePanel.m_IsSaving) | |
{ | |
CODebugBase<LogChannel>.Log(LogChannel.Core, "Save requested"); | |
SavePanel.m_IsSaving = true; | |
((MonoBehaviour) this).StartCoroutine(this.Snapshot(644, 360)); | |
((MonoBehaviour) this).StartCoroutine(this.SaveGame(savename, SavePanel.GetSavePathName(savename), false)); |
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
public IEnumerable<uint> GetCitizenIDs() | |
{ | |
var citizenManager = Singleton<CitizenManager>.instance; | |
var citizens = citizenManager.m_instances.m_buffer; | |
foreach (var citizen in citizens) | |
{ | |
if (citizen.m_flags == CitizenInstance.Flags.None) { continue; } | |
yield return citizen.m_citizen; | |
} |
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
public static class CitizenExtensions | |
{ | |
public static String GetName(this Citizen citizen) | |
{ | |
return Singleton<CitizenManager>.instance.GetCitizenName(citizen.m_instance); | |
} | |
} |
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
:) |