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
@foreach (var item in new string[] { "AspNetCore","AspNet","SomeJsThingWhatever"}) | |
{ | |
<div> | |
<input type="radio" name="technology" id="@item" value="@item" @onchange="RadioSelection" checked=@(RadioValue.Equals(item,StringComparison.OrdinalIgnoreCase)) /> | |
<label for="@item">@item</label> | |
</div> | |
} | |
<div> | |
<label>Selected Value is @RadioValue</label> | |
</div> |
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 static class DateTimeExtensions | |
{ | |
public static string ToFriendlyDate(this DateTime date) | |
{ | |
// Calculate the elapsed time | |
TimeSpan s = DateTime.UtcNow.Subtract(date); | |
// Get total number of days elapsed. | |
int dayDiff = (int)s.TotalDays; |
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
^+v:: ; paste text and emulate typing (CTRL+SHIFT+V) | |
AutoTrim,On | |
string = %clipboard% | |
Gosub,ONLYTYPINGCHARS | |
StringSplit, charArray, string | |
Loop %charArray0% | |
{ | |
this_char := charArray%a_index% | |
Send {Text}%this_char% | |
Random, typeSlow, 1, 3 |
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
Microsoft Visual Studio Solution File, Format Version 11.00 | |
# Visual Studio 2010 | |
Microsoft Visual Studio Solution File, Format Version 12.00 | |
# Visual Studio 2012 | |
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
;; Go to anything that is in the currently selected text: URLs, email addresses, Windows paths, or just "Google it" | |
;; Forum topic: http://www.autohotkey.com/community/viewtopic.php?f=2&t=85152&p=537116 | |
$#G:: | |
;Tip("Clipping...") ;; include my mouse-tip library for this https://gist.github.com/2400547 | |
clip := CopyToClipboard() | |
if (!clip) { | |
return | |
} | |
addr := ExtractAddress(clip) | |
if (!addr) |