Skip to content

Instantly share code, notes, and snippets.

thrixton

Block or report user

Report or block thrixton

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@singledigit
singledigit / cognito.yaml
Last active Jan 21, 2020
Create a Cognito Authentication Backend via CloudFormation
View cognito.yaml
AWSTemplateFormatVersion: '2010-09-09'
Description: Cognito Stack
Parameters:
AuthName:
Type: String
Description: Unique Auth Name for Cognito Resources
Resources:
# Creates a role that allows Cognito to send SNS messages
SNSRole:
@coryhouse
coryhouse / package.json
Last active Dec 5, 2019
Example of calling one script from another
View package.json
{
"name": "npm-scripts-example",
"version": "1.0.0",
"description": "npm scripts example",
"scripts": {
"clean": "rimraf ./dist && mkdir dist",
"prebuild": "npm run clean",
"build": "cross-env NODE_ENV=production webpack"
}
}
@vkobel
vkobel / underscoreCase.cs
Created Aug 7, 2014
Simple C# extension method to convert a camel case string to underscore notation without any regex
View underscoreCase.cs
public static class ExtensionMethods {
public static string ToUnderscoreCase(this string str) {
return string.Concat(str.Select((x, i) => i > 0 && char.IsUpper(x) ? "_" + x.ToString() : x.ToString())).ToLower();
}
}
@ijprest
ijprest / guidgen.ahk
Created Oct 6, 2012
AutoHotkey (AHK) script to generate & paste a new GUID
View guidgen.ahk
; Exposes two hotkeys:
; - Win+G generates & pastes a new lowercase guid
; - Win+Shift+G generates & pastes a new UPPERCASE guid
; In both cases, the guid is left on the clipboard so you can easily paste it more than once.
;
GUID()
{
format = %A_FormatInteger% ; save original integer format
SetFormat Integer, Hex ; for converting bytes to hex
VarSetCapacity(A,16)
You can’t perform that action at this time.