Skip to content

Instantly share code, notes, and snippets.

View yogan's full-sized avatar
⌨️
taka taka ᕕ(ᐛ)ᕗ

Frank Blendinger yogan

⌨️
taka taka ᕕ(ᐛ)ᕗ
View GitHub Profile
@davidfowl
davidfowl / MinimalAPIs.md
Last active May 18, 2024 18:28
Minimal APIs at a glance
@Faheetah
Faheetah / Jenkinsfile.groovy
Last active May 21, 2024 02:11
Jenkinsfile idiosynchrasies with escaping and quotes
node {
echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1'
echo 'No quotes, pipeline command in single quotes'
sh 'echo $BUILD_NUMBER' // 1
echo 'Double quotes are silently dropped'
sh 'echo "$BUILD_NUMBER"' // 1
echo 'Even escaped with a single backslash they are dropped'
sh 'echo \"$BUILD_NUMBER\"' // 1
echo 'Using two backslashes, the quotes are preserved'
sh 'echo \\"$BUILD_NUMBER\\"' // "1"
@mnot
mnot / snowden-ietf93.md
Last active September 12, 2023 13:40
Transcript of Edward Snowden's comments at IETF93.
@staltz
staltz / introrx.md
Last active May 22, 2024 13:59
The introduction to Reactive Programming you've been missing
@XVilka
XVilka / TrueColour.md
Last active April 8, 2024 14:02
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

@markusrt
markusrt / ActionAttributeDemoTest.cs
Last active December 25, 2015 20:49
This Gist demonstrates how to use NUnits Action Attributes in order to create and delete a temporary directory on test case level.
[TestFixture]
public class ActionAttributeDemoTest : ITempDirectoryTest
{
public string TemporaryDirectoryToStoreTestData { get; set; }
[Test]
public void ITempDirectoryTest_ImplementsInterface_TemporaryDirectoryIsCreatedAutomatically()
{
Assert.That(Directory.Exists(TemporaryDirectoryToStoreTestData), Is.True);
}
@masak
masak / Roman.pm
Created November 23, 2011 19:29
Doing roman numerals with TDD in Perl 6
class Roman {
my %map =
'units' => ['I', 'V', 'X'],
'tens' => ['X', 'L', 'C'],
'hundreds' => ['C', 'D', 'M'],
;
method step($size, $n) {
my ($one, $five, $ten) = %map{$size}.list;
given $n {
@endolith
endolith / Has weird right-to-left characters.txt
Last active May 18, 2024 22:32
Unicode kaomoji smileys emoticons emoji
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶