This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# : << EOF | |
# https://github.com/gpakosz/.tmux | |
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license, | |
# without any warranty. | |
# Copyright 2012— Gregory Pakosz (@gpakosz). | |
# -- session creation ---------------------------------------------------------- | |
# prompt for session name when creating a new session, possible values are: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Adblock Plus 2.0] | |
bilibili.com##.bili-grid:has([data-loc-id="34"]) | |
bilibili.com##.bili-grid:has(.battle-area) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file is used to be tracked and identified by https://lrc-maker.github.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aaa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function decodeString(string, encoding, game) { | |
// string has to be utf8 | |
let content = '' | |
for (let i = 0; i < string.length; i++) { | |
const char = string[i].codePointAt(0) | |
if (char >= 0x10 && char <= 0x13) { | |
// with leading control character | |
let high = string[i + 2].codePointAt(0) // high byte | |
let low = string[i + 1].codePointAt(0) // low byte |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {set, get, chain, trim, last, unset} = require('lodash') | |
module.exports = function generateTxt(json, strings = []) { | |
for (const item of strings) { | |
const {original, translation, stage, key} = item | |
const text = `"${stage > 0 || translation ? translation : original}<!-${original}-!>` | |
.replace(/^""(.+)/g, '"$1') | |
.replace(/(.+)""$/g, '$1"') | |
let keyPath = key.split('|') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {set, get, isString} = require('lodash') | |
module.exports.handler = function (event, context, callback) { | |
const data = Buffer.isBuffer(event) ? JSON.parse(event) : event | |
const text = data.text || data.content | |
if (!text) { | |
const error = new Error('Invalid Arguments') | |
if (callback) { | |
callback(error, null) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ported from https://github.com/matanki-saito/EU4SpecialEscape/blob/master/ConsoleApplication3/ConsoleApplication3.cpp#L235 | |
module.exports = function specialEscape(char, toUtf8, newVersion) { | |
// DO NOT escape valid char | |
if (char.codePointAt(0) < 256) { | |
return char | |
} | |
const hex = char.codePointAt(0).toString(16) | |
// default if UTF8, so hex is 4 length for most letters | |
// split low byte and high byte | |
// transform decimal to hex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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 |