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
| using System; | |
| namespace ConsoleApplication3 | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| Undead undead = null; | |
| try | |
| { |
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
| using System; | |
| namespace ConsoleApplication1 | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| var sellers = new string[2, 2]; | |
| sellers[1, 1] = Seller.Amazon.ToString(); |
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
| using NUnit.Framework; | |
| using TestingClasses; | |
| namespace Tests | |
| { | |
| [SetUpFixture] | |
| public class BaseContext | |
| { | |
| private A _a; | |
| [SetUp] |
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
| time | |
| down | |
| life | |
| left | |
| back | |
| code | |
| data | |
| show | |
| only | |
| site |
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
| private T Mesure<T>(Func<T> func, out TimeSpan time) | |
| { | |
| var stopwatch = new Stopwatch(); | |
| stopwatch.Start(); | |
| var result = func(); | |
| stopwatch.Stop(); | |
| time = stopwatch.Elapsed; | |
| return result; | |
| } | |
| private void Mesure(Action func, out TimeSpan time) |
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
| https://pp.vk.me/c638823/v638823354/122a6/6HydUwbnGEs.jpg | |
| a + b = 8 | |
| b + c = 8 | |
| d - c = 6 | |
| a + d = 13 | |
| ------------------------ | |
| b = 8 - a |
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
| // default exports | |
| export default 42; | |
| export default {}; | |
| export default []; | |
| export default (1 + 2); | |
| export default foo; | |
| export default function () {} | |
| export default class {} | |
| export default function foo () {} | |
| export default class foo {} |
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
| <html> | |
| <head> | |
| </head> | |
| <body> | |
| <script src="lib/yourlib.js"></script> | |
| <script> | |
| window.onload = function () { | |
| EntryPoint.run(); | |
| }; | |
| </script> |
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
| # https://github.com/mongodb/bson-ruby/blob/master/lib/bson/object_id.rb#L369 | |
| # https://repl.it/languages/ruby | |
| require "digest/md5" | |
| require "socket" | |
| @counter = rand(0x1000000) | |
| puts "counter: #{@counter}" | |
| @machine_id = Digest::MD5.digest(Socket.gethostname).unpack("N")[0] | |
| puts "machine_id: #{@machine_id}" | |
| @process_id = Process.pid % 0xFFFF |
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
| namespace Ploeh.AutoFixture | |
| { | |
| using Kernel; | |
| using System; | |
| public class PostProcessWhereIsACustomization<T> : ICustomization | |
| where T : class | |
| { | |
| readonly PostProcessSpecimensBehavior _behavior; |
OlderNewer