Skip to content

Instantly share code, notes, and snippets.

View ZYinMD's full-sized avatar

Z Yin ZYinMD

  • Washington DC
View GitHub Profile
@ZYinMD
ZYinMD / Unicode table
Created April 4, 2020 00:07 — forked from ivandrofly/Unicode table
Unicode table - List of most common Unicode characters *
Unicode table - List of most common Unicode characters *
* This summary list contains about 2000 characters for most common ocidental/latin languages and most printable symbols but not chinese, japanese, arab, archaic and some unprintable.
Contains character codes in HEX (hexadecimal), decimal number, name/description and corresponding printable symbol.
What is Unicode?
Unicode is a standard created to define letters of all languages ​​and characters such as punctuation and technical symbols. Today, UNICODE (UTF-8) is the most used character set encoding (used by almost 70% of websites, in 2013). The second most used character set is ISO-8859-1 (about 20% of websites), but this old encoding format is being replaced by Unicode.
How to identify the Unicode number for a character?
Type or paste a character:
@ZYinMD
ZYinMD / react-component.sublime-snippet
Last active May 11, 2018 18:25
React Component Snippet for Sublime Text 3
<!-- Documentation: http://docs.sublimetext.info/en/latest/extensibility/snippets.html -->
<!-- Clone or save this code as react-component.sublime-snippet into Data/Packages/User. No need to restart Sublime.
(If you Copy-Paste-SaveAs... with Sublime, be careful not to save as .xml. It's actually hard not to) -->
<snippet>
<content>
<![CDATA[
${1:import React, { Component \} from 'react';}
class ${2:ComponentName} extends Component {
@ZYinMD
ZYinMD / js-try-catch.sublime-snippet
Last active May 11, 2018 18:14
JavaScript try...catch
<!-- Documentation: http://docs.sublimetext.info/en/latest/extensibility/snippets.html -->
<!-- Clone or save this code as js-try-catch.sublime-snippet into Data/Packages/User. No need to restart Sublime.
(If you Copy-Paste-SaveAs... with Sublime, be careful not to save as .xml. It's actually hard not to) -->
<!-- Use tabs in this file, not spaces -->
<snippet>
<content>
<![CDATA[
@ZYinMD
ZYinMD / js-if.sublime-snippet
Last active May 11, 2018 18:15
JavaScript if snippet for Sublime Text 3
<!-- Documentation: http://docs.sublimetext.info/en/latest/extensibility/snippets.html -->
<!-- Clone or save this code as js-if.sublime-snippet into Data/Packages/User. No need to restart Sublime.
(If you Copy-Paste-SaveAs... with Sublime, be careful not to save as .xml. It's actually hard not to) -->
<snippet>
<content>
<![CDATA[
if (${1:}) {${2:}}
]]>
@ZYinMD
ZYinMD / js-function.sublime-snippet
Last active May 11, 2018 18:15
JavaScript function declaration snippet for Sublime Text 3
<!-- Documentation: http://docs.sublimetext.info/en/latest/extensibility/snippets.html -->
<!-- Clone or save this code as js-function.sublime-snippet into Data/Packages/User. No need to restart Sublime.
(If you Copy-Paste-SaveAs... with Sublime, be careful not to save as .xml. It's actually hard not to) -->
<snippet>
<content>
<![CDATA[
function ${1:}(${2:}) {
${3:}
@ZYinMD
ZYinMD / js-console.log.sublime-snippet
Last active May 11, 2018 18:16
JavaScript console.log() snippet for Sublime Text 3
<!-- Documentation: http://docs.sublimetext.info/en/latest/extensibility/snippets.html -->
<!-- Clone or save this code as js-console.log.sublime-snippet into Data/Packages/User. No need to restart Sublime.
(If you choose to Copy-Paste-SaveAs... with Sublime, be careful not to save as .xml. It's actually hard not to) -->
<snippet>
<content>
<![CDATA[console.log(${1:'${2:keep tabbing}: ', ${3:${2:}}});]]>
</content>
<!-- Set a tabTrigger: how to trigger the snippet -->
@ZYinMD
ZYinMD / js-arrow-function.sublime-snippet
Last active May 11, 2022 14:11
JavaScript ES6 arrow function snippet for Sublime Text 3
<!-- Documentation: http://docs.sublimetext.info/en/latest/extensibility/snippets.html -->
<!-- Clone or save this code as js-arrow-function.sublime-snippet into Data/Packages/User. No need to restart Sublime.
(If you choose to Copy-Paste-SaveAs... with Sublime, be careful not to save as .xml. It's actually hard not to) -->
<!-- Use tabs in this file, not spaces -->
<snippet>
<content>
@ZYinMD
ZYinMD / js-switch.sublime-snippet
Last active May 11, 2018 18:14
JavaScript switch statement snippet for Sublime Text 3
<!-- Documentation: http://docs.sublimetext.info/en/latest/extensibility/snippets.html -->
<!-- Clone or save this code as js-switch.sublime-snippet into Data/Packages/User. No need to restart Sublime.
(If you Copy-Paste-SaveAs... with Sublime, be careful not to save as .xml. It's actually hard not to) -->
<!-- Use tabs in this file, not spaces -->
<snippet>
<content>
<![CDATA[switch (${1:expression}) {
@ZYinMD
ZYinMD / js-for-in.sublime-snippet
Last active May 11, 2018 18:16
JavaScript for...in loop snippet for Sublime Text 3
<!-- Documentation: http://docs.sublimetext.info/en/latest/extensibility/snippets.html -->
<!-- Clone or save this code as js-for-in.sublime-snippet into Data/Packages/User. No need to restart Sublime.
(If you choose to Copy-Paste-SaveAs... with Sublime, be careful not to save as .xml. It's actually hard not to) -->
<!-- Use tabs in this file, not spaces -->
<snippet>
<content>
<![CDATA[for (let i in ${1:}) {
@ZYinMD
ZYinMD / js-for-of.sublime-snippet
Last active May 11, 2018 18:15
JavaScript ES6 for...of loop snippet for Sublime Text 3
<!-- Documentation: http://docs.sublimetext.info/en/latest/extensibility/snippets.html -->
<!-- Clone or save this code as js-for-of.sublime-snippet into Data/Packages/User. No need to restart Sublime.
(If you choose to Copy-Paste-SaveAs... with Sublime, be careful not to save as .xml. It's actually hard not to) -->
<!-- Use tabs in this file, not spaces -->
<snippet>
<content>
<![CDATA[for (let ${1:i} of ${2:}) {