Skip to content

Instantly share code, notes, and snippets.

View Yukaii's full-sized avatar
👾
nyan, nyan, nyan

Yukai Huang Yukaii

👾
nyan, nyan, nyan
View GitHub Profile
@Yukaii
Yukaii / data.csv
Last active May 19, 2021 14:28
TWD97 to WSG84
序列 場址編號 場址區域 場址名稱 場址面積 土壤污染物 列管日期 列管狀態 座標X 座標Y
1 H00009 平鎮區 桃園縣平鎮市新光段690地號 831 銅;鎳 2002/10/2 公告為解除控制場址 270432.686 2758246.652
2 H00010 平鎮區 平鎮區鎮安段913(原為平鎮段556地號) 3500 鉛;鋅 2002/10/2 公告為解除控制場址 270649.353 2757854.304
3 H00011 蘆竹區 桃園縣蘆竹鄉新興段706地號(現為新福段850地號) 1500 鉻;銅 2002/10/2 公告為解除控制場址 277005.846 2765470.139
4 H00012 蘆竹區 桃園縣蘆竹鄉福興段32-5地號(現為新福段566地號) 800 鉻;銅 2002/10/2 公告為解除控制場址 276953.37 2765365.139
5 H00013 蘆竹區 桃園縣蘆竹鄉福興段25地號(現為新福段277地號) 2400 鉻;銅 2002/10/2 公告為解除控制場址 276838.999 2765653.637
6 H00014 蘆竹區 桃園縣蘆竹鄉福興段25-4地號(現為新福段537地號) 2400 鉻;銅 2002/10/2 公告為解除控制場址 276934.044 2765499.482
7 H00016 蘆竹區 桃園縣蘆竹鄉福興段102-4地號(文中段108地號) 2962 2002/10/2 公告為解除控制場址 276871.877 2765053.889
8 H00017 蘆竹區 蘆竹區大竹圍段187-9地號(現為竹中段33地號) 665 2002/10/2 公告為解除控制場址 275264.387 2768757.607
9 H00018 蘆竹區 桃園縣蘆竹鄉大竹圍段187-7地號(現為竹中段28地號) 1168 2002/10/2 公告為解除控制場址 275255.446 2768786.86
@Yukaii
Yukaii / README.md
Last active August 2, 2020 02:48
HackMD VCard template for liff-businesscard
@Yukaii
Yukaii / README.md
Last active April 26, 2020 09:29
Copy 591 rent house info as markdown table row
@Yukaii
Yukaii / README.md
Last active April 26, 2020 04:41
JustFont frontend script study

JustFont frontend code analysis

這份 gist 是 JustFont 前端程式碼的分析,包含後端和一些資料的草稿可以看:https://hackmd.io/@yukai/webfont-study 就其實一直對這種 web font hosting 的技術有些興趣,就心血來潮開坑啦,其實也是想做一個最簡單的 Open source POC 這樣。不考慮效能的後端 XD

進行流程

基本上就是用人腦 De-Uglify (or prettify) 經過混淆的 JavaScript 程式碼 XD,過程如下

  1. Prettier JavaScript
  2. 過 standard lint
JavaScript 6 hours 23 minutes ████████████░░░░░░░░░░░░░ 49.09%
JSX 2 hours 46 minutes █████░░░░░░░░░░░░░░░░░░░░ 21.33%
JSON 1 hour 43 minutes ███░░░░░░░░░░░░░░░░░░░░░░ 13.16%
TypeScript 1 hour 2 minutes ██░░░░░░░░░░░░░░░░░░░░░░░ 7.99%
SCSS 17 minutes █░░░░░░░░░░░░░░░░░░░░░░░░ 2.15%
@Yukaii
Yukaii / extensions.json
Last active January 20, 2020 02:10
Yukai's VSCode Settings
[
{
"id": "4tron.stack-overflow-view",
"name": "stack-overflow-view",
"publisher": "4tron",
"version": "0.1.1"
},
{
"id": "aaron-bond.better-comments",
"name": "better-comments",
@Yukaii
Yukaii / index.html
Last active January 11, 2020 03:25
Taiwan voting stamp
<div class="stamp"></div>
@Yukaii
Yukaii / index.html
Last active January 4, 2020 02:01
GistPad playground test
<div class="circle red w-50 h-50"></div>
<div class="circle red w-50 h-50"></div><div class="circle red w-50 h-50"></div><div class="circle red w-50 h-50"></div><div class="circle red w-50 h-50"></div><div class="circle red w-50 h-50"></div>
@Yukaii
Yukaii / README.md
Last active April 12, 2019 10:03
HackMD Bookmarklet: Create note from selection

Demo

Imgur

Usage

Create a bookmark with the following link:

javascript: (function () { var title = window.prompt('Make new note on HackMD', document.title); if (!title) return; var lines = [document.title, '', '[' + document.title + '](' + window.location.href + ')']; var quote = window.getSelection().toString(); if (quote.trim()) lines = lines.concat(quote.split(/\n/g).map(function (line) { return ' &gt; ' + line })); lines.push(''); var body = encodeURIComponent(lines.join('\n')); window.open('https://hackmd.io/new?title=' + body) })();
@Yukaii
Yukaii / mina
Created April 5, 2016 14:53 — forked from vincentjiang/mina
rails 4.1.0 -- mina + unicorn + nginx
# config/deploy.rb
require 'mina/bundler'
require 'mina/rails'
require 'mina/git'
require 'mina/rvm'
# ter_mode 这个要设置,不然在 mac 下输密码有问题
set :term_mode, nil
set :rvm_path, '/usr/local/rvm/bin/rvm'