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 / modal.html
Last active November 15, 2018 07:53
Modal-NIA-HWU
<div class="enlist__stage-container enlist__stage-container--modal">
<div class="enlist__stages-close-button hide--md-lt" ng-click="enlistCtrl.form.close()">
<svg role="img" class="linked-svg linked-svg--modal-close">
<use xlink:href="/static/images/svgs/close-symbol.svg#primary"></use>
</svg>
</div><div class="enlist__stage" ng-show="enlistCtrl.form.isCurrentStage(enlistCtrl.form.getStages().AGE_GATE)">
<svg role="img" class="linked-svg linked-svg--enlist-hpwu-logo">
<use xlink:href="/static/images/svgs/hpwu-logo.svg#primary"></use>
</svg><hr class="enlist__sub-stage-title-top-line">

Keybase proof

I hereby claim:

  • I am dai on github.
  • I am daisuke (https://keybase.io/daisuke) on keybase.
  • I have a public key whose fingerprint is 5257 5956 B895 205B 54C3 CD0D E95E A610 30B1 B6DE

To claim this, I am signing this object:

Verifying my Blockstack ID is secured with the address 1AB3SZ5Dbajz76e2cMPcLUe2KMmtVFwvXn https://explorer.blockstack.org/address/1AB3SZ5Dbajz76e2cMPcLUe2KMmtVFwvXn
; Bel in Bel. 9 October 2019, 9:14 GMT
(def no (x)
(id x nil))
(def atom (x)
(no (id (type x) 'pair)))
(def all (f xs)
@dai
dai / cloudSettings
Last active November 7, 2019 04:54
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-11-07T04:54:10.854Z","extensionVersion":"v3.4.3"}
@dai
dai / extendo-fabuloso.markdown
Created December 24, 2019 07:03
extendo fabuloso
@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 / js
Created January 24, 2022 06:40
komesan bookmarklet
javascript:(function(){window.open('https://komesan.pages.dev/?url='+encodeURIComponent(location.href))})();
@dai
dai / clink.lua
Last active April 12, 2022 05:44
lua module by clink fork (1.3.13) for cmder.
@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.