Skip to content

Instantly share code, notes, and snippets.

Yury Timofeev y-gagar1n

Block or report user

Report or block y-gagar1n

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:7ea53a448eae2d216f0867d482e39302
/Users/yury-timofeev/projects/shad/cpp/shad-cpp0/cmake-build-asan/test_multiplication
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
test_multiplication is a Catch v2.2.3 host application.
Run with -? for options
-------------------------------------------------------------------------------
Advanced
-------------------------------------------------------------------------------
/Users/yury-timofeev/projects/shad/cpp/shad-cpp0/multiplication/test.cpp:8
View gist:fda26312b76018af58e5b2e29b270a19
This file has been truncated, but you can view the full file.
<char>::lookup_collatename<char const*>(char const*, char const*) const::__collatenames' from file '../libcontrib_catch_main.a(catch_main.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
itReporter>::SectionNode> > > > >&)' from file '../libcontrib_catch_main.a(catch_main.cpp.o)' to global weak symbol 'std::__cxx11::regex_traits<char>::lookup_collatename<char const*>(char const*, char const*) const::__collatenames' from file '../libcontrib_catch_main.a(catch_main.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
View AssertUtils.cs
using NUnit.Framework;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace TestUtils
@y-gagar1n
y-gagar1n / gist:a5dcba9bcc3f889912e2
Created Aug 16, 2014
debugging with node-inspector
View gist:a5dcba9bcc3f889912e2
sudo npm install -g node-inspector
sudo node-debug app.js --debug-brk
@y-gagar1n
y-gagar1n / gist:8469484
Created Jan 17, 2014
DateTime format patterns
View gist:8469484
DateTime.ToString() Patterns
All the patterns:
0 MM/dd/yyyy 08/22/2006
1 dddd, dd MMMM yyyy Tuesday, 22 August 2006
2 dddd, dd MMMM yyyy HH:mm Tuesday, 22 August 2006 06:30
3 dddd, dd MMMM yyyy hh:mm tt Tuesday, 22 August 2006 06:30 AM
4 dddd, dd MMMM yyyy H:mm Tuesday, 22 August 2006 6:30
5 dddd, dd MMMM yyyy h:mm tt Tuesday, 22 August 2006 6:30 AM
@y-gagar1n
y-gagar1n / gist:6742265
Created Sep 28, 2013
VisualStudio.gitignore
View gist:6742265
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
*.sln.docstates
# Build results
@y-gagar1n
y-gagar1n / gist:6353759
Last active Dec 21, 2015
hg grep - Find revision history of specific line of code
View gist:6353759
hg grep --all "PATTERN" FILENAME
@y-gagar1n
y-gagar1n / gist:5820503
Created Jun 20, 2013
jQuery - AJAX call
View gist:5820503
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: window.location.href + "/SomeMethod",
data: { paramA : valueA, paramB : valueB },
dataType: 'json',
success: function (response) {
...
}
});
@y-gagar1n
y-gagar1n / gist:5788834
Created Jun 15, 2013
Python - Print cyrillic symbols
View gist:5788834
import sys
import pprint
def pretty_print(object):
class decoder_stream:
def write(self, s):
if s.startswith("'") and s.endswith("'"):
s = "'%s'" % s[1:-1].decode('string_escape')
elif s.startswith("u'") and s.endswith("'"):
s = "u'%s'" % s[2:-1].decode('unicode_escape').encode('utf8')
You can’t perform that action at this time.