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
| 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
| #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
| 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
| 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
| 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
| 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
| defmodule Foo do | |
| def loop do | |
| receive do | |
| {:hello, msg} -> | |
| IO.puts msg | |
| loop | |
| {:world, _} -> | |
| IO.puts "bad" | |
| loop | |
| end |
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
| docker run --name mysql -d sameersbn/mysql:latest |
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
| foo = Time.now.to_s #=> "2014-05-14 15:35:01 +0900" | |
| bar = Time.now.to_s #=> "2014-05-14 15:35:32 +0900" | |
| foo == bar #=> false |