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
using System.Diagnostics; | |
namespace HotBot.Core | |
{ | |
public static class _DeleteMe | |
{ | |
[Conditional("UNITY_EDITOR")]//Make sure its the correct one | |
public static void Log(string format, params object[] args) | |
{ | |
//Code that logs stuff |
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
using System; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Text; | |
using System.Xml.Serialization; | |
namespace HotBot.Core | |
{ | |
public static class ErrorReporting |
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
using System; | |
using System.Diagnostics; | |
using System.Linq; | |
namespace HotBot.Core | |
{ | |
public class TwitchIrc | |
{ | |
//Imagine this class is only available when !SOME_CONSTANT | |
} |
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
using System; | |
/* | |
THIS FILE WORKS BEST WHEN READ FROM TOP TO BOTTOM | |
WARNING, ENTITY FRAMEWOKR IS REALLY COOL BUT IM NOT AN EXPERT. | |
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
using System; | |
using System.Linq; | |
using System.Collections.Generic; | |
public class Class1 | |
{ | |
public static IEnumerable<Class1> SomeMethodThatReturnsAllCardsAvailable() | |
{ | |
return null; | |
} |
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
--[[-- | |
Script from some base entity I once made, | |
usage: | |
Call InitProperties() from the entity's Init method. | |
Call ThinkProperties() from the entity's Think method. | |
This solution is kinda heavy because it uses think to find changes in the variables | |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Runtime.CompilerServices; | |
using System.Threading; | |
namespace CompilerGeneratedEnhancement | |
{ | |
// Token: 0x02000002 RID: 2 |
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 main(String[] args){ | |
Model schema = FileManager.get().loadModel("test_ontology.xml"); | |
Model data = FileManager.get().loadModel("royal92.owl"); | |
Reasoner reasoner = ReasonerRegistry.getRDFSReasoner(); | |
reasoner = reasoner.bindSchema(schema); | |
InfModel infmodel = ModelFactory.createInfModel(reasoner, data); | |
final String NS = "http://www.daml.org/2001/01/gedcom/royal92#"; |
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
Deployment | |
- Code for real-time measurements & logging | |
- Instrumentation for testing / benchmarking | |
- Runtime tools | |
Use cases (with examples) | |
- Benchmarking impact of new or updated features (regression testing) | |
- Realtime monitoring to create alerts when performance lowers | |
- Analysing production logs to find bottlenecks / memoryleaks |
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
using System; | |
using System.Collections.Generic; | |
namespace ConsoleApplication4 | |
{ | |
public class Program | |
{ | |
private struct Vector | |
{ | |
private int x, y, z; |
OlderNewer