- Plain Strings (207):
foo
- Anchors (208):
k$
- Ranges (202):
^[a-f]*$
- Backrefs (201):
(...).*\1
- Abba (169):
^(.(?!(ll|ss|mm|rr|tt|ff|cc|bb)))*$|^n|ef
- A man, a plan (177):
^(.)[^p].*\1$
- Prime (286):
^(?!(..+)\1+$)
- Four (199):
(.)(.\1){3}
- Order (198):
^[^o].....?$
- Triples (507):
(^39|^44)|(^([0369]|([147][0369]*[258])|(([258]|[147][0369]*[147])([0369]*|[258][0369]*[147])([147]|[258][0369]*[258])))*$)
This file contains 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
pre {outline: 1px solid #ccc; padding: 5px; margin: 5px; } | |
.string { color: green; } | |
.number { color: darkorange; } | |
.boolean { color: blue; } | |
.null { color: magenta; } | |
.key { color: red; } |
This file contains 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
ko.subscribable.fn.subscribeChanged = function (callback) { | |
var savedValue = this.peek(); | |
return this.subscribe(function (latestValue) { | |
var oldValue = savedValue; | |
savedValue = latestValue; | |
callback(latestValue, oldValue); | |
}); | |
}; |
This file contains 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
ko.bindingHandlers.iCheck = { | |
init: function (element, valueAccessor) { | |
var $el = $(element); | |
var observable = valueAccessor(); | |
$el.iCheck({ | |
radioClass: 'iCheck_radio_class', | |
inheritClass: true | |
}); | |
$el.on('ifClicked', function (e) { |
This file contains 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
<div> | |
<label> | |
<input type="checkbox" data-bind="iCheckBox: SmokerCheckBox" /> | |
<span class="icheck-label"> Is Smoker</span> | |
</label> | |
</div> | |
<div data-bind="text: ko.toJSON(vm)"> | |
</div> |
This file contains 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
pushd "C:/Projects/Software/Dev/" | |
"C:\Tools\jb-commandline-8.0.0.39\dupfinder.exe" /idle-priority /show-stats /show-text /debug /normalize-types /exclude-code-regions="Windows Form Designer generated code;Component Designer generated code" /o="dupfinder.%date%.xml" /e="**/*.Designer.cs;**/*.generated.cs;**/Model.cs;**/Reference.cs" "C:/Projects/Software/Dev/SolutionName.sln" | |
popd |
This file contains 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
<# | |
Generate the change log in json | |
#> | |
param( | |
[ValidateSet("True","False", 0, 1)] | |
[ValidateNotNullOrEmpty()] | |
[string]$OutputAsString = "False", | |
[string]$OutputFilename = "changelog.json", | |
[string]$GitDirectory = "" | |
) |
This file contains 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
function InvokeRoboCopyCommandWithErrorChecking ($command, $errorMessage) { | |
$global:LASTEXITCODE = 0 | |
[int[]]$errorCodes = @(8,16) | |
#Write-Host $command | |
Invoke-Expression $command -ErrorAction Stop | |
$roboCopyExitCode = $global:LASTEXITCODE; | |
# Below is taken from http://stackoverflow.com/questions/21428632/powershell-bitwise-comparison-for-robocopy-exit-codes |
This file contains 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
--written by MDB and ALM for TheBakingDBA.Blogspot.Com | |
-- basic XE session creation written by Pinal Dave | |
-- http://blog.sqlauthority.com/2010/03/29/sql-server-introduction-to-extended-events-finding-long-running-queries/ | |
-- mdb 2015/03/13 1.1 - added a query to the ring buffer's header to get # of events run, more comments | |
-- mdb 2015/03/13 1.2 - added model_end events, filtering on hostname, using TRACK_CAUSALITY, and multiple events | |
-- mdb 2015/03/18 1.3 - changed header parse to dynamic, courtesy of Mikael Eriksson on StackOverflow | |
-- This runs on at 2008++ (tested on 2008, 2008R2, 2012, and 2014). Because of that, no NOT LIKE exclusion | |
------------------------------ | |
-- Create the Event Session -- | |
------------------------------ |
This file contains 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
--- | |
layout: default | |
--- | |
<div class="blog-index"> | |
{% assign post = site.posts.first %} | |
{% assign content = post.content %} | |
{% include post_detail.html %} | |
</div> |
OlderNewer