Skip to content

Instantly share code, notes, and snippets.

View dterracino's full-sized avatar
🐢
I may be slow to respond…

David Terracino dterracino

🐢
I may be slow to respond…
View GitHub Profile
@lucasloss
lucasloss / ControlExtensions.cs
Created December 19, 2019 22:17
System.Windows.Forms.Control extension methods.
using System;
using System.Reflection;
using System.Windows.Forms;
namespace ExtensionMethods
{
/// <summary>
/// <see cref="Control"/> extension methods.
/// </summary>
public static class ControlExtensions
@aaronsteers
aaronsteers / Choco-One-Click.js
Last active April 17, 2022 01:11
Choco install script for TamperMonkey/GreaseMonkey
// ==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==
@dstreefkerk
dstreefkerk / CSVGridView.bat
Created November 8, 2019 06:19
Batch file that enables a CSV to be dragged/dropped and then opened in a PowerShell GridView. Requires the PowerShell ISE to be instaled.
@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
@Iridium-IO
Iridium-IO / README.md
Last active January 30, 2024 10:36
Collapsible Markdown Code Blocks

Example Collapsible Content

Style 1

Click to see more:
Given the following python code
from pychartjs import BaseChart

class myChart(BaseChart):
@lyudenn
lyudenn / readme.txt
Created September 26, 2019 19:58
Miner Guy (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@mamift
mamift / ToDelimitedStringExtensions.cs
Created September 4, 2019 04:43
Extension methods that converts a sequence (IEnumerable<>) of objects to a delimited string. Includes a generic method.
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>
@UweKeim
UweKeim / ZetaFolderXCopy.cs
Last active January 28, 2024 21:32
XCOPY-like functionality to copy files and folders in C#, ideal for batch scripts
//css_nuget -force:3600 -ng:"-Source https://nuget.org/api/v2/" ZetaLongPaths
using ZetaLongPaths;
namespace Zeta
{
/*
===========================
Zeta XCOPY.
### 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:
/* global window document localStorage fetch alert */
// Fill in with your values
const AUTH0_CLIENT_ID = 'your-auth0-client-id-here';
const AUTH0_DOMAIN = 'your-auth0-domain-here.auth0.com';
const AUTH0_CALLBACK_URL = window.location.href; // eslint-disable-line
const PUBLIC_ENDPOINT = 'https://your-aws-endpoint-here.amazonaws.com/dev/api/public';
const PRIVATE_ENDPOINT = 'https://your-aws-endpoint-here.us-east-1.amazonaws.com/dev/api/private';
// initialize auth0 lock
@dterracino
dterracino / README.md
Created June 2, 2019 23:58
GitHub README.MD info table

System.Linq.Dynamic.Core

This is a .NET Core / Standard port of the Microsoft assembly for the .Net 4.0 Dynamic language functionality.

Overview

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)");