Skip to content

Instantly share code, notes, and snippets.

View dai's full-sized avatar
🗻
still Catch it Up.

dai dai

🗻
still Catch it Up.
View GitHub Profile
@dai
dai / just-regex-in-5seconds.sh
Last active May 9, 2024 04:26
make a RegEx on the Web in 5 seconds
// Go to https://www.devie.ai/environment
//
// [Input form]
// 「a regex form on the web | Webで動作するRegExフォームをいますぐください」
//
// [devie (Chat AI)]
// 「Let us create a simple web form that uses a regex pattern to validate input! This form can be flexible; for example, validating an email address or any pattern you specify. If you have a specific regex pattern in mind, let me know!」
// Clickhereto view the webpage once the server has started andhereto view the code.
[nix-shell:]# rm -rf ~/daisuke && mkdir ~/daisuke && echo "from flask imporlask, request
@dai
dai / 6-logos-div.html
Last active May 7, 2024 05:10
apple-event-7th-may-2024-6deletable-logos
<div class="animation-wrapper loaded ended">
<canvas id="may-event-canvas" height="290" width="260"></canvas>
<span class="visuallyhidden vo-subhead animated default hide-vo">
Curved paper in green, yellow, orange, and blue forms the Apple logo. Inside the logo, a creator’s hand holds an Apple Pencil positioned to draw. The tip is pressed into the bottom of the logo, springing forth lively splashes of orange and pink that ripple upward. The creator spins Apple Pencil between thumb and forefinger. A swirl of pink, orange, and white droplets follow the twirling motion, and the movement causes the paper to gently flutter. The stem of the Apple logo is a droplet of pink, blue, and purple that floats above. When a user holds the pointer over the logo, an animated eraser effect is initiated. As the user swipes, the content below it disappears as if a paintbrush is erasing the logo in a sweeping motion. When more than 50 percent of the logo is erased, the logo morphs into a new logo — there are six designed log
@dai
dai / Microsoft.Powershell_profile.ps1
Created March 5, 2024 02:28 — forked from Olwiba/Microsoft.Powershell_profile.ps1
Get-Json Property - Powershell ⚡
# catjp - Concatenate JSON property
# Made with 💖 - Olwiba
function Get-JsonProperty {
param (
[Parameter(Mandatory=$true)]
[string]$Path,
[Parameter(Mandatory=$true)]
[string]$Property
@dai
dai / Japanese.json
Last active July 28, 2023 01:58
Japanese language for Windows Memory Cleaner 2.1
{
"Add": "追加",
"AlwaysOnTop": "常に前面表示",
"AutoOptimization": "自動最適化",
"AutoOptimizationInterval": "フリーメモリ解放の間隔 {0} 分",
"AutoUpdate": "自動更新",
"Close": "閉じる",
"CloseAfterOptimization": "最適化後に閉じる",
"CloseToTheNotificationArea": "閉じると通知領域に格納",
"DevelopedBy": "開発者",
@dai
dai / gist:da095ae56ff39bd78a5d8385a8022039
Created September 27, 2022 04:12
smatrapdfcrash-pre-3-5-15249-64.txt
Crash file: C:\w2022\04\SumatraPDF\crashinfo\sumatrapdfcrash.txt
Exe: C:\w2022\04\SumatraPDF\SumatraPDF.exe 7.71 MB (8,081,368 Bytes)
Dll: C:\w2022\04\SumatraPDF\libmupdf.dll 13.01 MB (13,642,752 Bytes)
BuiltOn: 2022-09-25
Type: dll
Ver: 3.5.15249 pre-release 64-bit
Git: ab7bf7cb59b51b23a00c38062ad402799427c079 (https://github.com/sumatrapdfreader/sumatrapdf/commit/ab7bf7cb59b51b23a00c38062ad402799427c079)
OS: Windows 10.19044 build 19044 64-bit
Number Of Processors: 4
Processor: Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz
@dai
dai / iac_semver.md
Created July 21, 2022 02:20 — forked from mrcrilly/iac_semver.md
A better way of version controlling IAC

Semantic Versioning for IAC - iacver

When it comes to Infrastructure As Code, the software versioning system known as Semantic Versioning (semver.org) works from an API perspective but falls short elsewhere.

In short a semver is broken down into three "octets" and optional, additional information tagged to the end. Here are a few examples: v1.0.1, v3.1.1, v1.15.0-4. Each of these is a valid semver.

If we take the first example - v1.0.1 - and change the first octet, 1, to 2, we're saying the following:

There has been a change to this code and that change is not compatible with how you're using v1.0.1. The change is a breaking change. You should take care to introduce version v2.0.0 into your code or your environment.

@dai
dai / clink.lua
Last active April 12, 2022 05:44
lua module by clink fork (1.3.13) for cmder.
@dai
dai / js
Created January 24, 2022 06:40
komesan bookmarklet
javascript:(function(){window.open('https://komesan.pages.dev/?url='+encodeURIComponent(location.href))})();
@dai
dai / sands.js
Created July 17, 2020 02:42
select and speak bookmarklet
javascript:(function()%7Bvar%20e%2Ct%2Cn%2Co%3Ddocument%2Ca%3Dwindow%2Ci%3Do.getElementById(%22selectnspeak_bk_control%22)%2Cl%3D%5B%5D%2Cs%3D%22%22%2Cp%3Dnew%20SpeechSynthesisUtterance%2Cc%3Da.speechSynthesis%3Bfunction%20r()%7Bvar%20t%2Co%2Ci%3Ba.getSelection%3Fs%3Da.getSelection().toString()%3A(n%3Da.selection)%26%26%22Text%22%3D%3Dn.type%26%26(s%3Dn.createRange().htmlText)%2Cd()%2Cs.length%3F(p.text%3Ds%2Cp.voice%3D(t%3De.selectedOptions%2Co%3Dt%26%26t.length%3Fe.selectedOptions%5B0%5D.getAttribute(%22data-name%22)%3A%22%22%2Ci%3Dnull%2Cl.some(e%3D%3E(i%3De%2Ce.name%3D%3D%3Do))%2Ci)%2Cc.speak(p))%3Aalert(%22Select%20%26%20Speak%3A%20Please%20select%20some%20text%20before%20pressing%20play.%22)%7Dfunction%20d()%7Bc.cancel()%7Dfunction%20x(e%2Ct%2Cn)%7Bvar%20a%3Do.createElement(e)%3Breturn%20t%26%26t.forEach(e%3D%3E%7Ba.setAttribute(e%5B0%5D%2Ce%5B1%5D)%7D)%2Cn%26%26(a.style.cssText%3Dn)%2Ca%7Dfunction%20g(e%2Ct%2Cn)%7Bvar%20o%3Dx(%22button%22%2Cnull%2C%22margin%3A10px%205px%3Bvertical-align%3Amiddle%3Bheig
@dai
dai / extendo-fabuloso.markdown
Created December 24, 2019 07:03
extendo fabuloso