Skip to content

Instantly share code, notes, and snippets.

View TechnoTone's full-sized avatar
🖖

Tony Hunt TechnoTone

🖖
View GitHub Profile
@benjie
benjie / OneOfExploration.md
Last active December 4, 2023 14:41
Exploring how `oneOf` could work in a GraphQL schema

oneOf exploration

This document is a work-in-progress exploration of how the "oneOf" solution to input polymorphism might work within a GraphQL schema.

Base schema

For the examples below, we'll be using the following shared types using existing GraphQL syntax:

@JoelQ
JoelQ / elm-types-glossary.md
Last active June 26, 2024 03:05
Elm Type Glossary

Elm Types Glossary

There's a lot of type terminology and jargon going around when discussing types in Elm. This glossary attempts to list some of the most common type terms along with synonyms, terms from other language communities, examples, and links to more detailed articles on each topic.

@PanagiotisGeorgiadis
PanagiotisGeorgiadis / scrolling.js
Created June 27, 2019 08:33
Smooth scroll animation using the Ease In Quint function.
const scrollToElement = (id) => {
let duration = 1000;
let element = document.getElementById(id);
if (!element)
return;
let targetPosition = element.offsetTop;
let startPosition = window.pageYOffset;
let distance = targetPosition - startPosition;
let startTime = null;
@randomchance
randomchance / prompt.ps1
Last active April 6, 2020 08:03 — forked from kadet1090/prompt.ps1
PowerLine like prompt for PowerShell
$script:bg = [Console]::BackgroundColor;
$script:first = $true;
$script:last = 0;
Import-Module Posh-Git
$BranchBehindAndAheadStatusForegroundColor = [System.ConsoleColor]::Magenta
$BranchBehindStatusForegroundColor = [System.ConsoleColor]::Yellow
$BranchAheadStatusForegroundColor = [System.ConsoleColor]::Green
$BranchIdenticalStatusToForegroundColor = [System.ConsoleColor]::White
$workingAdded = '+'
@kadet1090
kadet1090 / prompt.ps1
Created March 21, 2016 17:33
PowerLine like prompt for PowerShell
$script:bg = [Console]::BackgroundColor;
$script:first = $true;
$script:last = 0;
function Write-PromptFancyEnd {
Write-Host  -NoNewline -ForegroundColor $script:bg
$script:bg = [System.ConsoleColor]::Black
}
@jstangroome
jstangroome / gist:3087453
Created July 11, 2012 01:58
Change your own Active Directory password from PowerShell without any special permissions
([adsi]'WinNT://domain/username,user').ChangePassword('oldpassword','newpassword')