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
| public class RowVersionType : IUserVersionType | |
| { | |
| public object Seed(ISessionImplementor session) | |
| { | |
| return 0ul; | |
| } | |
| public object Next(object current, ISessionImplementor session) | |
| { | |
| return current; |
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
| # This program is free software. It comes without any warranty, to | |
| # the extent permitted by applicable law. You can redistribute it | |
| # and/or modify it under the terms of the Do What The Fuck You Want | |
| # To Public License, Version 2, as published by Sam Hocevar. See | |
| # http://sam.zoy.org/wtfpl/COPYING for more details. | |
| $script:GrinderPath = Resolve-Path (Join-Path $PSScriptRoot ../engine/grinder-3.4) | |
| $script:ClassPath = (Join-Path $script:GrinderPath lib/grinder.jar) + ";$env:classpath" | |
| $script:JavaHome = $env:java_home |
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
| colorscheme ir_dark | |
| if has("gui_macvim") | |
| set fuoptions=maxvert,maxhorz | |
| set guifont=Monaco:h14 | |
| set guioptions-=T | |
| set stal=2 | |
| end | |
| set anti |
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
| o (master) | |
| \ /--W (release-10.19-x) | |
| \ o---o (release-10.19) | |
| \ / | |
| A---o---o---o---M---o---o (develop) | |
| \ / | |
| B---C---E (bug-2248) | |
| M - Merge branch 'bug-2248' into develop |
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
| param ( | |
| [Parameter()] $foo, | |
| [Parameter()] $bar | |
| ) | |
| $foo | |
| $bar | |
| #output: | |
| #> .\test1.ps1 0 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
| void Main() | |
| { | |
| var f = new Foo (); | |
| f.Inc (); | |
| f.Inc (); | |
| f.X.Dump (); | |
| } | |
| struct Foo { | |
| public readonly int X; |
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
| Sub Main | |
| Dim type = GetType(List(Of String)) | |
| FindExplicitListType(type).Dump() | |
| End Sub | |
| Function FindExplicitListType(type As Type) As Type | |
| If type.IsClass Then | |
| 'TODO: Should check if type implements IList or IList(Of) | |
| Return type | |
| ElseIf IsGenericList(type) |
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
| Range: | |
| Min/Max rather than Start/End, better naming when dealing with non-contiguous ranges. | |
| Start and end values are inclusive. | |
| How enumeration works for stepping, etc is left to the class to decide, provide a static class with some standard implementations that use Math<T>. | |
| Assumption is the main IRange<T> can be either contiguous or non-contiguous | |
| Assumptions for SubRanges(): | |
| No two sub-ranges overlap. | |
| Each sub-range is atomic (ie contiguous). |
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; | |
| using System.IO; | |
| using System.Net; | |
| using System.Net.Security; | |
| using System.Security.Cryptography.X509Certificates; | |
| using System.Security.Principal; | |
| namespace SslTest | |
| { | |
| internal class Program |
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
| -- statement #1 | |
| begin transaction with isolation level: Unspecified | |
| -- statement #2 | |
| SELECT bar_.Foo, | |
| bar_.Rate as Rate1_, | |
| bar_.Value as Value1_ | |
| FROM [Bar] bar_ | |
| WHERE bar_.Foo = '2b76e14d-c48e-490d-9d1c-9d0900ee14ec' /* @p0 */ |