Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
高めてる

dai dai

🎯
高めてる
View GitHub Profile
@dai
dai / sands.js
Created Jul 17, 2020
select and speak bookmarklet
View sands.js
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 / cloudSettings
Last active Nov 7, 2019
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2019-11-07T04:54:10.854Z","extensionVersion":"v3.4.3"}
View bel-src-20191009.lisp
; 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)
View gist:7a476e40a2856d35e0b8e7a55fa2eecc
Verifying my Blockstack ID is secured with the address 1AB3SZ5Dbajz76e2cMPcLUe2KMmtVFwvXn https://explorer.blockstack.org/address/1AB3SZ5Dbajz76e2cMPcLUe2KMmtVFwvXn
View keybase.md

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:

@dai
dai / modal.html
Last active Nov 15, 2018
Modal-NIA-HWU
View modal.html
<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">
View keybase.md

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 80B9 DA9F 4C1D 7B91 CBF8 82C5 78FD F853 9F0D 1F69

To claim this, I am signing this object:

View mf-two-ja-demo.js
// http://www.mainframe2.com/live
//
// embed test for #mainframe2 (Japan)
<script src='https://apps.mainframe2.com/embed/mf2ea.js?hash=bApokqpa&size=M'></script>
@dai
dai / hola.js
Last active Aug 29, 2015
2014-03-19 2nd
View hola.js
console.log('saa, hajimeyou!');
phantom.exit();