Skip to content

Instantly share code, notes, and snippets.

View kenjitagawa's full-sized avatar
:octocat:
Automating...

Kenji Tagawa kenjitagawa

:octocat:
Automating...
View GitHub Profile
@kenjitagawa
kenjitagawa / check.go
Created April 22, 2025 19:16 — forked from mattes/check.go
Check if file or directory exists in Golang
if _, err := os.Stat("/path/to/whatever"); os.IsNotExist(err) {
// path/to/whatever does not exist
}
if _, err := os.Stat("/path/to/whatever"); !os.IsNotExist(err) {
// path/to/whatever exists
}
@kenjitagawa
kenjitagawa / gist:8a86c0ffedda0ce8b5be9b0ef1fec790
Created April 14, 2025 02:36 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: ๐Ÿ˜„ :smile: ๐Ÿ˜† :laughing:
๐Ÿ˜Š :blush: ๐Ÿ˜ƒ :smiley: โ˜บ๏ธ :relaxed:
๐Ÿ˜ :smirk: ๐Ÿ˜ :heart_eyes: ๐Ÿ˜˜ :kissing_heart:
๐Ÿ˜š :kissing_closed_eyes: ๐Ÿ˜ณ :flushed: ๐Ÿ˜Œ :relieved:
๐Ÿ˜† :satisfied: ๐Ÿ˜ :grin: ๐Ÿ˜‰ :wink:
๐Ÿ˜œ :stuck_out_tongue_winking_eye: ๐Ÿ˜ :stuck_out_tongue_closed_eyes: ๐Ÿ˜€ :grinning:
๐Ÿ˜— :kissing: ๐Ÿ˜™ :kissing_smiling_eyes: ๐Ÿ˜› :stuck_out_tongue:
@kenjitagawa
kenjitagawa / .gitignore
Created May 6, 2022 18:33
Keep music located within bin
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
## Keep Music songs.
!BaladeurMultiFormats/bin/Debug/Chansons/
!BaladeurMultiFormats/bin/Debug/Chansons\ avec\ bugs/
BaladeurMultiFormats/bin/Debug/*.*
BaladeurMultiFormatsTests/bin/*
# User-specific files
@kenjitagawa
kenjitagawa / Program.cs
Created May 3, 2022 22:59 — forked from miteshsureja/Program.cs
How to execute PowerShell script or cmdlets from C# code?
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Linq;
using System.Management.Automation;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="600">
<!-- Gazon -->
<rect width="800" height="600" x="0" y="500" fill="green"/>
<!-- Soleil -->
<circle cx="100" cy="100" r="50" fill="yellow">
<animate attributeName="r" id="GrosSoleil" attributeType="XML" from="50" to="80" begin="0.1; PetitSoleil.end" dur="2s" fill="freeze"/>
<animate attributeName="r" id="PetitSoleil" attributeType="XML" from="80" to="50" begin="GrosSoleil.end" dur="2s" fill="freeze"/>