Skip to content

Instantly share code, notes, and snippets.

View xenoken's full-sized avatar
🤖
Probably writing some code. With a smile.

Ken Ekeoha xenoken

🤖
Probably writing some code. With a smile.
View GitHub Profile
@xenoken
xenoken / FormExtensions.cs
Created February 16, 2020 15:28
Windows.Forms.Control Extensions for Async Development
public static class FormExtensions
{
/// <summary>
/// Extension to support passing a Lambda to Invoke.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <typeparam name="R"></typeparam>
/// <param name="c"></param>
/// <param name="action"></param>
/// <param name="arg"></param>
%YAML 1.2
---
# http://www.sublimetext.com/docs/3/syntax.html
name: C++
comment: Adapted from C++.sublime-syntax
file_extensions:
- tps
- ush
first_line_match: '-\*- C\+\+ -\*-'
scope: source.c++
@xenoken
xenoken / json.json
Last active December 2, 2018 19:53
Snippet Declaration Snippet for Visual Studio Code
"Snippet Declaration": {
"prefix": "snp",
"description": "Snippet Declaration",
"body": [
"\"${1:Snippet-Name}\" : {",
"\t\"prefix\": \"${2:Snippet-Prefix}\",",
"\t\"description\": \"${3:Snippet-Description}\",",
"\t\"body\": [",
"\t\t\"$4\",",
"\t],",