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
@endolith
endolith / Has weird right-to-left characters.txt
Last active October 26, 2024 13:55
Unicode kaomoji smileys emoticons emoji
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
@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 {
@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);
}
@XVilka
XVilka / TrueColour.md
Last active November 18, 2024 16:13
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!

@staltz
staltz / introrx.md
Last active November 17, 2024 01:08
The introduction to Reactive Programming you've been missing
@mnot
mnot / snowden-ietf93.md
Last active November 5, 2024 06:22
Transcript of Edward Snowden's comments at IETF93.
@Faheetah
Faheetah / Jenkinsfile.groovy
Last active October 26, 2024 16:38
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"
@davidfowl
davidfowl / MinimalAPIs.md
Last active October 24, 2024 13:39
Minimal APIs at a glance