Skip to content

Instantly share code, notes, and snippets.

View WeiChiaChang's full-sized avatar
🐻
How bear you

WesleyZen WeiChiaChang

🐻
How bear you
  • Planet Earth
  • Tainan, Taiwan
View GitHub Profile
@WeiChiaChang
WeiChiaChang / gist:c2c7e39b20df1d16a45e8fd5b5abe9fd
Created September 18, 2019 04:46 — forked from ansonparker/gist:1228449
Lossless FLV to MP4 conversion
Open command prompt (Terminal) and run:
ffmpeg -i "filename.flv" -vcodec copy -acodec copy "filename.mp4"
This will copy video track and audio track from filename.flv to filename.mp4. The operation is lossless (there is no quality loss).
@WeiChiaChang
WeiChiaChang / easing.js
Created September 17, 2019 08:14 — forked from gre/easing.js
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
// no easing, no acceleration
linear: function (t) { return t },
// accelerating from zero velocity
easeInQuad: function (t) { return t*t },
// decelerating to zero velocity
@WeiChiaChang
WeiChiaChang / fullscreen.css
Created September 8, 2019 02:41 — forked from yang-wei/fullscreen.css
Full size background image using CSS cover in mobile devices
html {
background: url(image url) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
height: 100%;
overflow: hidden;
}
@WeiChiaChang
WeiChiaChang / es7-async-await.js
Created July 23, 2018 14:42 — forked from msmfsd/es7-async-await.js
Javascript fetch JSON with ES7 Async Await
// Async/Await requirements: Latest Chrome/FF browser or Babel: https://babeljs.io/docs/plugins/transform-async-to-generator/
// Fetch requirements: Latest Chrome/FF browser or Github fetch polyfill: https://github.com/github/fetch
// async function
async function fetchAsync () {
// await response of fetch call
let response = await fetch('https://api.github.com');
// only proceed once promise is resolved
let data = await response.json();
// only proceed once second promise is resolved
@WeiChiaChang
WeiChiaChang / New repo from another boilerplate repo.sh
Created April 25, 2018 04:11
Create a new repo based on another remote boilerplate repo.
# Cloning the boilerplate remote repo
git clone -o [boilerplate name] [boilerplate remote repo] [new-project repo folder name]
# Enter the cloned repo folder
cd [new-project repo folder name]
# Clean the README
rm README.md && touch README.md
# If you have LICENSE, you can clean it too.
@WeiChiaChang
WeiChiaChang / gist:eecf9a68d714c5c2d8284436d987a2b9
Created January 15, 2018 02:15 — forked from yllan/gist:2233235
買日本演唱會門票方法
作者: houyating (橘色和風糰) 看板: N-E-W-S
標題: [分享] 買日本演唱會門票方法
時間: Sat Oct 13 18:02:04 2007
原文照例吃光光(最近糰財布扁到沒錢只好吃b板文維生!?)
以下內容全數轉載自改版前的J'P,前壇主caca的心得感想...
因為改版後該壇主似乎不知去處...
@WeiChiaChang
WeiChiaChang / emojis.json
Created December 18, 2017 08:41 — forked from oliveratgithub/emojis.json
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
{
"emojis": [
{"emoji": "👩‍👩‍👧‍👧", "name": "family_mothers_two_girls", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👧", "category": "p", "order": ""},
{"emoji": "👩‍👩‍👧‍👦", "name": "family_mothers_children", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👦", "category": "p", "order": ""},
{"emoji": "👩‍👩‍👦‍👦", "name": "family_mothers_two_boys", "shortname": "", "unicode": "", "html": "👩‍👩‍👦‍👦", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👧‍👧", "name": "family_two_girls", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👧", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👧‍👦", "name": "family_children", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👦", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👦‍👦", "name": "family_two_biys", "shortname": "", "unicode": "", "html": "👨&zw
@WeiChiaChang
WeiChiaChang / jquery.ui.datepicker-vi-VN.js
Created November 2, 2017 13:23 — forked from tiendq/jquery.ui.datepicker-vi-VN.js
Vietnamese localization for the jQuery UI date picker plugin. Tested with jQuery UI 1.10.2
/* Vietnamese localization for the jQuery UI date picker plugin. */
/* Written by Tien Do ([email protected]) */
jQuery(function ($)
{
$.datepicker.regional["vi-VN"] =
{
closeText: "Đóng",
prevText: "Trước",
nextText: "Sau",
@WeiChiaChang
WeiChiaChang / license-badges.md
Created July 28, 2017 16:23 — forked from lukas-h/license-badges.md
License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • Badges are made with Shields.io.
  • This badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.  
  • 🇫🇷 Cette liste en français
@WeiChiaChang
WeiChiaChang / progress.html
Created July 26, 2017 10:08
Simple Pure CSS Progress Bar
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta chatset="UTF-8" />
<title>CSS Progress Bar</title>
<style>
.wrapper {
width: 500px;
}