class A {}
struct B {}
class Main
{
public static void Foo()
{
new A();
new B();
This file contains hidden or 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
| result = `lsof -iTCP:3306 | grep mono-sgen` | |
| puts "#{result.lines.count} connections" | |
| puts result |
This file contains hidden or 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
| multitail -l 'redis-cli monitor' /usr/local/var/mysql/mysql-query.log |
This file contains hidden or 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
| javascript:$('body').css('background', 'white');$('*').not('.csharp >span').css('color', 'black'); |
This file contains hidden or 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
| Shader "tosik/UV-Test" | |
| { | |
| Properties | |
| { | |
| _MainTex ("Texture", 2D) = "white" {} | |
| _MovementX ("Movement X", float) = 1 | |
| _MovementY ("Movement Y", float) = 1 | |
| } | |
| SubShader | |
| { |
This file contains hidden or 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
| #include "il2cpp-config.h" | |
| #ifndef _MSC_VER | |
| # include <alloca.h> | |
| #else | |
| # include <malloc.h> | |
| #endif | |
| #include <cstring> | |
| #include <string.h> |
This file contains hidden or 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
| bom = [0xEF, 0xBB, 0xBF] | |
| double_bom = bom + bom | |
| Dir::glob("#{ARGV[0]}/**/*.cs").each do |path| | |
| f = File.open(path, "rb") | |
| s = f.read | |
| f.close | |
| head = s[0..5].unpack("C*") | |
| if head == double_bom |
This file contains hidden or 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
| $ cat main.cpp | |
| #define BOOST_TEST_MAIN | |
| #include <boost/test/included/unit_test.hpp> | |
| BOOST_AUTO_TEST_CASE(test_foo_1) | |
| { | |
| BOOST_CHECK(true); | |
| } | |
| $ g++ main.cpp |
This file contains hidden or 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
| g++ -std=c++11 foo.cpp | |
| foo.cpp:11:63: error: cannot increment value of type 'const std::__1::__wrap_iter<const T *>' | |
| for (const auto & it = foo.begin() ; it != foo.end() ; it ++); | |
| ~~ ^ | |
| 1 error generated. | |
| make: *** [all] Error 1 |
This file contains hidden or 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
| for i in {0..255}; do | |
| printf "\x1b[38;5;${i}mcolour${i}\x1b[0m\n" | |
| done |