service.ts
import { t } from 'i18next';
export const myFunction = () => t('label.myLabel');
service.spec.ts
service.ts
import { t } from 'i18next';
export const myFunction = () => t('label.myLabel');
service.spec.ts
/* | |
JSON-server is unable to serve multiple files at once. | |
(https://stackoverflow.com/questions/36836424/cant-watch-multiple-files-with-json-server) | |
This is a quick script for making a joint db.json file. | |
Directory structure: | |
db/ | |
├─ chunks/ | |
│ ├─ example1.json |
Keep in mind that if you're not careful when selecting the settings, not only will it remove the preinstalled TikTok app but also the default photo viewer. Other than that works great.
from numpy import meshgrid | |
from random import choice, randrange | |
import argparse | |
parser = argparse.ArgumentParser() | |
parser = argparse.ArgumentParser(description='generate abstract ascii patterns') | |
parser.add_argument('width', type=int, nargs='?', default=15); | |
parser.add_argument('height', type=int, nargs='?', default=9); |
from pdf2image import convert_from_path | |
from PIL import Image, ImageOps | |
import argparse | |
import itertools | |
from os import path, system | |
import tempfile | |
parser = argparse.ArgumentParser() | |
parser.add_argument("filename") |
import sys | |
import requests | |
from bs4 import BeautifulSoup | |
import re | |
if len(sys.argv) == 1: | |
sys.exit() | |
nip = sys.argv[1] |