This file contains hidden or 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
var fs = require('fs'); | |
var INTERVAL = 1000; | |
var cycle_stop = false; | |
var daemon = false; | |
var timer; | |
process.argv.forEach(function (arg) { | |
if (arg === '-d') daemon = true; |
This file contains hidden or 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 { override, addWebpackAlias } = require('customize-cra'); | |
const path = require('path'); | |
const overridePath = (webpackConfig) => { | |
const oneOfRule = webpackConfig.module.rules.find((rule) => rule.oneOf); | |
if (oneOfRule) { | |
const tsxRule = oneOfRule.oneOf.find( | |
(rule) => rule.test && rule.test.toString().includes('tsx') | |
); |
This file contains hidden or 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
import urllib.request | |
import re | |
EMOJI_TEST_FILENAME = "emoji-test.txt" | |
EMOJI_DATA_URL = "https://unicode.org/Public/emoji/14.0/emoji-test.txt" | |
def download_latest_emoji_test_data() : | |
response = urllib.request.urlopen(EMOJI_DATA_URL) | |
emoji_test_file = response.read() | |
with open(EMOJI_TEST_FILENAME, "wb") as tmp_file: |