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.Reflection; | |
using System.Windows.Forms; | |
namespace ExtensionMethods | |
{ | |
/// <summary> | |
/// <see cref="Control"/> extension methods. | |
/// </summary> | |
public static class ControlExtensions |
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
// ==UserScript== | |
// @name Choco-One-Click | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1.1 | |
// @description Install software from chocolatey.org with one-click. This requires choco:// protocol support (choco install choco-protocol-support). | |
// @author AJ Steers | |
// @include http://*chocolatey.org/* | |
// @include https://*chocolatey.org/* | |
// @grant none | |
// ==/UserScript== |
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
@echo off | |
IF "%~1"=="" GOTO NOFILE | |
set CSVPATH=%~1 | |
ECHO Loading CSV %CSVPATH% | |
powershell.exe -NoProfile -NoExit -NoLogo -Command "if ((Test-Path $env:CSVPATH -PathType Leaf) -and ($env:CSVPATH -like '*.csv')) {Import-Csv -Path $env:CSVPATH | Out-GridView -Wait -Title $env:CSVPATH};exit" | |
GOTO END | |
:NOFILE |
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
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
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 ExtensionMethods | |
{ | |
/// <summary> | |
/// Converts an <see cref="IEnumerable{T}"/> of <see cref="string"/>s to a flat string, delimited by a delimiter string. | |
/// </summary> | |
/// <param name="stringEnumerable"></param> | |
/// <param name="delimiter">Defaults to comma with a space (, )</param> | |
/// <param name="openEncloseString">Enclose each string in the IEnumerable inside two other strings. e.g. an apostrophe will produce: ('a', 'b', 'c')</param> | |
/// <param name="closeEncloseString"></param> | |
/// <returns></returns> |
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
//css_nuget -force:3600 -ng:"-Source https://nuget.org/api/v2/" ZetaLongPaths | |
using ZetaLongPaths; | |
namespace Zeta | |
{ | |
/* | |
=========================== | |
Zeta XCOPY. |
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
### Keybase proof | |
I hereby claim: | |
* I am tichau on github. | |
* I am tichau (https://keybase.io/tichau) on keybase. | |
* I have a public key ASBx9FqC7FNUOMSv3iPIo8ws99NiANoRToHKLQRyiktQ8go | |
To claim this, I am signing this object: |
This is a .NET Core / Standard port of the Microsoft assembly for the .Net 4.0 Dynamic language functionality.
With this library it's possible to write Dynamic LINQ queries (string based) on an IQueryable
:
var query = db.Customers
.Where("City == @0 and Orders.Count >= @1", "London", 10)
.OrderBy("CompanyName")
.Select("new(CompanyName as Name, Phone)");