Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#sudo apt-get install jpegoptim optipng
find . -type f -name "*.jpg" -exec jpegoptim -m80 {} \;
find . -type f -name "*.png" -exec optipng {} \;
@kvzhuang
kvzhuang / test.js
Last active December 15, 2016 02:26
debugger;
(function(d, c) {
debugger;
var a = "1547d975c029c9d347f5c667c39e405c";
c.reviveAsync = c.reviveAsync || {};
if (!c.reviveAsync.hasOwnProperty(a)) {
var f = c.reviveAsync[a] = {
id: Object.keys(c.reviveAsync).length,
name: "revive",
start: function() {
# 工作內容
* Implement, test, and maintain single page front-end applications written with modern tools like React, Sass, Grunt, Webpack.
* Translate high fidelity mockups or basic HTML/CSS prototypes from designers into fully interactive and polished end user experiences
* Participate in code design and reviews, and identify and communicate front-end best practices
* Write unit and integration tests for new and existing features
# 工作經驗及專長
* At least 2 years of professional JavaScript experience
@kvzhuang
kvzhuang / cvs
Created July 18, 2016 09:51
aster_data.cvs
id,order,score,weight,color,label
FIS,1,59,0.5,#f9e000,重視團隊凝聚
MAR,2,24,0.5,#635586,專注創新服務
AO,3,98,1,#8fe6d5,注重社會貢獻
NP,4,60,1,#f75a51,追求效率成長
@kvzhuang
kvzhuang / dm.java
Last active August 29, 2015 13:59
DailyMotion Video URL in java
import java.net.URL;
import java.net.URLConnection;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.net.MalformedURLException;
import java.io.UnsupportedEncodingException;
import java.net.URLConnection;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@kvzhuang
kvzhuang / dailymotion_video_url.php
Last active October 19, 2015 18:46
DailyMotion Video URL
<?php
$videoUrl = $_GET["url"];
if(empty($videoUrl))
{
echo "No DM video url";
return;
}
else
{
$tubePage = $videoUrl;
服貿法律資訊整理
http://www.ecfa.org.tw/EcfaAttachment/ECFADoc/2010-06-29-%E9%99%84%E4%BB%B6%E4%B8%80%E8%B2%A8%E5%93%81%E8%B2%BF%E6%98%93%E5%8D%94%E5%AE%9A%E6%97%A9%E6%9C%9F%E6%94%B6%E7%A9%AB%E6%B8%85%E5%96%AE%E5%8F%8A%E9%99%8D%E7%A8%85%E5%AE%89%E6%8E%92.pdf (ECFA早收清單 附件一)
http://www.ecfa.org.tw/EcfaAttachment/ECFADoc/2010-06-29-%E9%99%84%E4%BB%B6%E5%9B%9B%E6%9C%8D%E5%8B%99%E8%B2%BF%E6%98%93%E6%97%A9%E6%94%B6.pdf
(ECFA早收清單 附件四)
http://law.moj.gov.tw/LawClass/LawAll.aspx?PCode=Q0010001 ( 臺灣地區與大陸地區人民關係條例 )
第 11 條
@kvzhuang
kvzhuang / Dockerfile
Last active September 17, 2018 12:12
My Dockerfile, initial shell script and run shell script.
# DOCKER-VERSION 0.3.4
FROM ubuntu
MAINTAINER Kevin Zhuang <[email protected]>
#RUN echo "This is a ubuntu Dockerfile."
#replace source.list with http://repogen.simplylinux.ch/
RUN echo "deb http://02.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse" > /etc/apt/sources.list
RUN apt-get update
@kvzhuang
kvzhuang / A-Pen-by-kvzhuang.markdown
Created October 8, 2013 06:09
A Pen by kvzhuang.
@kvzhuang
kvzhuang / index.html
Created February 25, 2013 09:45
A CodePen by kvzhuang. JavaScript-DnD - pure JavaScript DnD implementation.
<div class="container">
<div class="draggable">
I am dragable.
</div>
</div>
<div id="drop-area">
Drop area
</div>