Skip to content

Instantly share code, notes, and snippets.

View dk00's full-sized avatar
🎯
Focusing

Derek Shih dk00

🎯
Focusing
View GitHub Profile
@dk00
dk00 / user-event.umd.min.js
Created October 13, 2021 05:07
UMD bundle of @testing-library/user-event , for in-browser usage
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UserEvent={})}(this,(function(e){"use strict";function t(){return t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function a(){return(a=o()?Reflect.construct:function(e,t,n){var o=[null];o.push.apply(o,t);var a=
@dk00
dk00 / invoice-prize-number-list.json
Created March 29, 2021 06:08
統一發票中獎號碼
[
{
"date": "110年1、2月",
"numbers": [
"80325690",
"95201943",
"64613291",
"00581856",
"63105417",
"295"
@dk00
dk00 / .gitignore
Last active June 15, 2020 12:35
Crawler for findchildcare.taipei
node_modules
sitters.dat
@dk00
dk00 / selenium-server.sh
Created January 30, 2020 08:04
Setup selenium server
java -jar selenium-server-standalone.jar -role hub
lt -p 4444 -s my-ie -h https://tunnel.datahub.at
@dk00
dk00 / .gitignore
Created January 11, 2019 02:40
Free CORS proxy for everyone
*.log
.pnp*
node_modules
coverage
.nyc_output
dist
lib
bin
*.tgz
tmp
@dk00
dk00 / index.html
Last active January 8, 2019 06:17
pufii
<html lang="en" data-reactroot="">
<head>
<title>訂購成功</title>
<meta charset="utf-8" />
</head>
<body>
<p>&nbsp;
<a href="https://www.theskinfood.com.tw/">
<img src="https://www.pufii.com.tw/UserFiles/upFiles/images/0108-TOP.jpg" alt="" />
@dk00
dk00 / fws-helper.user.js
Last active December 26, 2018 13:36
FWS helper
// ==UserScript==
// @name FWS Helper
// @description Overwrites alert()
// @include https://fws.coa.gov.tw/*
// @grant none
// @run-at document-start
// ==/UserScript==
unsafeWindow.alertx = str => {
console.log ("Greasemonkey intercepted alert: ", str)
@dk00
dk00 / .gitignore
Last active February 27, 2019 06:18
DevOps Bot proto
*.log
node_modules
coverage
.nyc_output
www
.firebase
.firebaserc
.DS_Store
tmp
@dk00
dk00 / beep.js
Created July 21, 2018 10:20
Beep!
const beep = () => new Audio("data:audio/wav;base64,UklGRmBRAABXQVZFYmV4dIgCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADIwMTItMDMtMTQxMTozMzozNYC8D3cAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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