This is the diff of a change: GitHub diff
This is how it looks like after Expand-Diff on comparing "a" and "b":
<# | |
.Synopsis | |
Downloads or updates GraphQL schema using local StrawberryShake.Tools. | |
https://gist.github.com/nightroman/f48f843483cd76a73f25cdd8a68fdd94 | |
.Parameter Uri | |
The GraphQL service URL. | |
If it is omitted, .graphqlrc.json is used to get it. | |
.Parameter Path |
This is the diff of a change: GitHub diff
This is how it looks like after Expand-Diff on comparing "a" and "b":
# ForEach-Object -Parallel is not suitable for many input objects with | |
# relatively fast processing. Split-Pipeline is very suitable for this. | |
#requires -version 7.0 | |
$n = $env:NUMBER_OF_PROCESSORS | |
$1 = { | |
$data | Split-Pipeline {process{ }} -Count $n | |
} |
Problem: When linking to the raw version of a gist, the link changes with each revision.
Solution:
To return the first file from a gist: https://gist.github.com/[gist_user]/[gist_id]/raw/
To get a file from multi–file gist: https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */ | |
/* ========================================================================== | |
HTML5 display definitions | |
========================================================================== */ | |
/** | |
* Correct `block` display not defined in IE 8/9. | |
*/ |
Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
// F# call via interface vs. record | |
type IFace = | |
abstract Test: int -> string -> unit | |
type IRecord = { | |
Test: int -> string -> unit | |
} | |
let myTest i s = |
The description is the same as the case 9 with the last disadvantage resolved. Namely
Below is the case 9 notes:
function prompt | |
{ | |
#! now: last error for the color | |
$color = if ($?) { 10 } else { 12 } | |
# debug | |
if ($ExecutionContext.SessionState.PSVariable.GetValue('PSDebugContext')) { | |
return | |
} |