Skip to content

Instantly share code, notes, and snippets.

View Calabonga's full-sized avatar
💭
Пишите правильный код

Calabonga Calabonga

💭
Пишите правильный код
View GitHub Profile
@joelpt
joelpt / go-to-anything.ahk
Created April 16, 2012 18:51
Go To Anything for Autohotkey - highlight some text, hit Win+G and "go"!
;; 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)
@JamesSkemp
JamesSkemp / Visual Studio solution file headers
Last active February 11, 2023 21:42
Visual Studio solution file headers - 2010, 2012, 2013, 2015
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
@definitelynotsoftware
definitelynotsoftware / app.router.config.js (Aurelia - simple role-based navigation using 'aurelia-authentication')
Last active March 22, 2019 05:12
Aurelia - simple role-based navigation using 'aurelia-authentication'
import {AuthenticateStep} from 'aurelia-authentication';
import {inject} from 'aurelia-framework';
import {Router} from 'aurelia-router';
import {Session} from 'services/session';
import * as log from 'toastr';
@inject(Router)
export default class {
constructor(router) {
@JamoCA
JamoCA / EmulateTyping.ahk
Last active July 10, 2024 15:12
AutoHotKey Script to emulate typing. Use CTRL+SHIFT+V to paste clipboard character-by-character as if typing.
^+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
@jasongaylord
jasongaylord / DateTimeExtensions.cs
Created November 5, 2018 18:38
A DateTime extension to show a friendly date based on the value passed in and DateTime.Now
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;
@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>