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
var clicks = 0;
$(document).ready(function (e) {
// arrange cards
for (var i = 0; i < 6; i++) {
var t = 374 - 14 * i;
var w = 280 - 10 * i;
var z = -1 * i;
$('#card-set li').eq(i).find('.card').css({ 'top': t + 'px', 'background-color': '', 'width': w + 'px', 'z-index': 5 + z });
@WeiChiaChang
WeiChiaChang / Like.jpg
Last active April 11, 2019 07:39
Like
Like.jpg
@WeiChiaChang
WeiChiaChang / Looks.jpg
Last active April 11, 2019 07:37
Looks
Looks.jpg
@WeiChiaChang
WeiChiaChang / node_modules.jpg
Last active April 11, 2019 07:36
node_modules
node_modules.jpg
@WeiChiaChang
WeiChiaChang / How.jpg
Last active April 11, 2019 07:34
How
How.jpg
@WeiChiaChang
WeiChiaChang / This.png
Last active April 11, 2019 07:29
This
This.png
Command:
terminalizer config Generate a config file in the current directory
terminalizer generate <recordingFile> Generate a web player for a recording file
terminalizer play <recordingFile> Play a recording file on your terminal
terminalizer record <recordingFile> Record your terminal and create a recording file
terminalizer render <recordingFile> Render a recording file as an animated gif image
terminalizer share <recordingFile> Upload a recording file and get a link for an online player
Usage:
$ licensed # Brings up an option to start a questionnaire or choose from a list of available licenses
$ licensed <license-name> # Brings prompt to enter your name
$ licensed <license-name> <your-full-name> [--year | -y] <year>
$ licensed [--list | -l]
Options:
--year, -y <year> Manually enter year the license is in effect
--list, -l List all available licenses
--help Show this screen
--version Show version
@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