Skip to content

Instantly share code, notes, and snippets.

View regme's full-sized avatar
🤠

Andrey Katamanov regme

🤠
View GitHub Profile
@regme
regme / gist:5206078
Created March 20, 2013 16:29
Combres debugging
<resourceSets url="~/combres.axd"
defaultDuration="30"
defaultVersion="auto"
defaultDebugEnabled="auto"
defaultIgnorePipelineWhenDebug="true" >
<!--
in Combres 2.0 you can set the value of a new attribute defaultIgnorePipelineWhenDebug to true,
which will force Combres to generate direct links to the resources so that
the whole Combres processing pipeline is bypassed.
@regme
regme / DynamicSetValue.cs
Created March 5, 2014 11:40
Dynamic SetProperty
void SetValue(dynamic target, string propname, object val ){
var argInfo = new List<CSharpArgumentInfo>{
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null)
};
var binder = Binder.SetMember(
CSharpBinderFlags.None,
propname,
this.GetType(),
argInfo
@regme
regme / app.config
Created March 12, 2014 09:16
log4net self logging
<configuration>
<appSettings>
<add key="log4net.Internal.Debug" value="true"/>
</appSettings>
</configuration>
<system.diagnostics>
<trace autoflush="true">
<listeners>
<add name="textWriterTraceListener"
@regme
regme / no_package_hint
Created April 21, 2014 16:37
Find all wrong references
^(?!.*packages).*HintPath.*$
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@regme
regme / yandex_moscow_map.geojson
Created April 23, 2014 09:33
Yandex Moscow Map
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NuGet.exe update m:\1.GitHub\TaxiSMS\CompleteSolution\CompleteSolution\CompleteSolution.sln -Id Newtonsoft.Json
private static void MyMethod(string s, int x, int y)
{
try
{
throw new NotImplementedException();
}
catch (Exception ex)
{
LogError(MethodBase.GetCurrentMethod(), ex, s, x, y);
}
@regme
regme / gist:811d1d41c026d677c50c
Last active December 13, 2019 09:14
Friday Deploys
┓┏┓┏┓┃
┛┗┛┗┛┃\○/
┓┏┓┏┓┃ / Friday
┛┗┛┗┛┃ノ)
┓┏┓┏┓┃ Deploys
┛┗┛┗┛┃
┓┏┓┏┓┃
┛┗┛┗┛┃
┓┏┓┏┓┃
┃┃┃┃┃┃