This document is a work-in-progress exploration of how the "oneOf" solution to input polymorphism might work within a GraphQL schema.
For the examples below, we'll be using the following shared types using existing GraphQL syntax:
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.
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; |
(in no particular order)
$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 = '+' |
$script:bg = [Console]::BackgroundColor; | |
$script:first = $true; | |
$script:last = 0; | |
function Write-PromptFancyEnd { | |
Write-Host -NoNewline -ForegroundColor $script:bg | |
$script:bg = [System.ConsoleColor]::Black | |
} |
([adsi]'WinNT://domain/username,user').ChangePassword('oldpassword','newpassword') |