A dead simple React Twemoji component.
npm install --save twemoji
A dead simple React Twemoji component.
npm install --save twemoji
function getFileName { | |
Get-ChildItem -Name | |
} | |
[System.Console]::OutputEncoding=[System.Text.Encoding]::GetEncoding(65001) | |
Remove-Item alias:\curl | |
Remove-Item alias:\wget | |
# Import-Module oh-my-posh | |
# Set-Theme Avit | |
Remove-Item alias:\ls |
// Only using native browser features (no jQuery). | |
// Uses `fetch`, `DOMParser` and `querySelectorAll`. | |
const getTitle = (url) => { | |
return fetch(`${url}`) | |
.then((response) => response.text()) | |
.then((html) => { | |
const doc = new DOMParser().parseFromString(html, "text/html"); | |
const title = doc.querySelectorAll('title')[0]; | |
return title.innerText; |
{ | |
"editor.formatOnSave": true, | |
"editor.fontSize": 16, | |
"editor.fontFamily": "'Fira Code', Monaco, mononoki, Consolas, Source Han Serif SC", | |
"editor.minimap.enabled": false, | |
"workbench.editor.openSideBySideDirection": "down", | |
"svelte.plugin.typescript.diagnostics.enable": false, | |
"editor.letterSpacing": 0.4, | |
"editor.lineHeight": 34, | |
"editor.renderLineHighlight": "all", |
// This is an example of how to fetch external data in response to updated props, | |
// If you are using an async mechanism that does not support cancellation (e.g. a Promise). | |
class ExampleComponent extends React.Component { | |
_currentId = null; | |
state = { | |
externalData: null | |
}; |
// ζΊε符串 | |
const str1 = " abc =b\\n ;c=\\x61d;d=234;t=\\n;d=\"test;yes \";" | |
// θθ Value ε ε ε« `\"` ζ `=` η | |
const str2 = " abc =b\\n ;c=\\x61d;d=234;t=\\n;d=\"test;yes\";g=\"\";sdsd\"" | |
// θθ Value ε ε ε«η©Ίζ Όη | |
const str3 = " abc =b\\n ;c=\\x61d;d=234;t=\\n;d=\"test;yes\";g=\"\" ; s dsd\"" | |
const decode = function (str) { | |
var res = [] | |
str.match(/(\w+[\s]*=((\".*?\")|(.*?));)/g).map(_item=>{ |
{ | |
"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_boys", "shortname": "", "unicode": "", "html": "👨&zw |
import re | |
def slugify(value): | |
if type(value) == str: | |
import unicodedata | |
from unidecode import unidecode | |
value = str(unidecode(value)) | |
value = unicodedata.normalize('NFKD', value).encode('ascii', 'ignore') | |
value = re.sub('[^\w\s-]', '', value.decode()).strip().lower() | |
return re.sub('[-\s]+', '-', value) |
#!/bin/sh | |
export LANG=zh_CN.UTF-8 | |
export XKL_XMODMAP_DISABLE=1 | |
export GTK_IM_MODULE=fcitx | |
export QT_IM_MODULE=fcitx | |
export XMODIFIERS=@im=fcitx | |
fcitx -d -r --enable sogou-qimpanel | |
exec startkde |
[Journal] | |
FowardToConsole=yes | |
TTYPath=/dev/pts/2 | |
MaxLevelConsole=info |