Skip to content

Instantly share code, notes, and snippets.

View wenqili's full-sized avatar

Wenqi Li wenqili

View GitHub Profile
@wenqili
wenqili / emoji-markup.md
Last active May 24, 2019 16:48 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@wenqili
wenqili / gsap-properties-cheat-sheet.md
Created May 15, 2019 04:27 — forked from lunelson/gsap-properties-cheat-sheet.md
Greensock Properties Cheat Sheet

Greensock CSS properties Cheat Sheet

I wrote this as a reference for myself because some of the property names are non-obvious, and there are a number of relevant special properties, and there is no central concise listing of them all in GSAP Docs, other than (in longer form) on the CSSPlugin page.

Standard CSS properties

...are all supported, with hyphenated-names becoming camelCaseNames. Non-animatable properties are also supported but they will be set at the beginning of the tween.

Special mentions:

@wenqili
wenqili / Multiple-SSH-key-settings.md
Last active May 15, 2019 00:45
[Use multiple SSH key on one client] #git

Use multiple SSH key on one client

In ~/.ssh/configfile or simply create one:

Host myshortname realname.example.com
    HostName realname.example.com
    IdentityFile ~/.ssh/realname_rsa # private key for realname
    User remoteusername
@wenqili
wenqili / README.md
Created February 18, 2019 17:52 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

All hex value from 100% to 0% alpha:

@wenqili
wenqili / draggable.js
Created December 17, 2018 04:32
Make the DIV element draggable
//Make the DIV element draggagle:
window.onload = function(){
// code goes here\
dragElement(document.getElementsByClassName(("banner-block"))[0],0)
dragElement(document.getElementsByClassName(("banner-block"))[1],1)
dragElement(document.getElementsByClassName(("banner-block"))[2],2)
console.log("load drag function")
};
function dragElement(elmnt, i) {