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
freq | pos | en | de | ru | es | it | fr | pt | |
---|---|---|---|---|---|---|---|---|---|
4239632 | verb | be | sein | быть | estar | essere | être | ser | |
1375636 | verb | have | haben | иметь | tener | avere | avoir | ter | |
559596 | verb | do | tun | делать | hacer | fare | faire | fazer | |
333518 | verb | say | sagen | говорить | decir | dire | dire | dizer | |
249540 | verb | go | gehen | идти | ir | andare | partir | ir | |
220940 | verb | get | erhalten | получать | obtener | ricevere | obtenir | receber | |
217268 | verb | make | machen | делать | hacer | fare | faire | fazer | |
191661 | verb | see | sehen | смотреть | ver | vedere | voir | ver | |
185534 | verb | know | kennen | знать | saber | sapere | savoir | saber |
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
import { handler } from '../src/app'; // Actual part that will be tested | |
import { Model } from '../src/module'; // A module that will actually be imported as a mock object | |
jest.mock('../src/module'); // Jest will automatically hoist jest.mock calls to the top of the module (before any imports) | |
afterEach(() => { // Resetting the state after each test | |
jest.resetAllMocks(); | |
jest.resetModules(); | |
}); |
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 { | |
TypeScriptProject, | |
ProjectType, | |
} = require('projen'); | |
const project = new TypeScriptProject({ | |
defaultReleaseBranch: 'main', | |
name: 'projen', | |
buildWorkflow: false, | |
releaseWorkflow: false, | |
pullRequestTemplate: false, |
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 path = require('path'); | |
module.exports = { | |
mode: 'production', | |
entry: './src/index.ts', | |
module: { | |
rules: [ | |
{ | |
test: /\.tsx?$/, | |
use: 'ts-loader', |
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 { | |
TypeScriptProject, | |
ProjectType, | |
} = require('projen'); | |
const project = new TypeScriptProject({ | |
defaultReleaseBranch: 'main', | |
name: 'projen', | |
buildWorkflow: false, | |
releaseWorkflow: false, | |
pullRequestTemplate: false, |
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 { TypeScriptProject } = require('projen'); | |
const project = new TypeScriptProject({ | |
defaultReleaseBranch: 'main', | |
name: 'projen', | |
// deps: [], /* Runtime dependencies of this module. */ | |
// description: undefined, /* The description is just a string that helps people understand the purpose of the package. */ | |
// devDeps: [], /* Build dependencies for this module. */ | |
// packageName: undefined, /* The "name" in package.json. */ | |
// projectType: ProjectType.UNKNOWN, /* Which type of project this is (library/app). */ |
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 { TypeScriptProject } = require('projen'); | |
const project = new TypeScriptProject({ | |
defaultReleaseBranch: 'main', | |
name: 'projen', | |
buildWorkflow: false, | |
releaseWorkflow: false, | |
pullRequestTemplate: false, | |
// deps: [], /* Runtime dependencies of this module. */ | |
// description: undefined, /* The description is just a string that helps people understand the purpose of the package. */ |
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
#!/bin/bash | |
if [ $# -eq 0 ] | |
then | |
echo Self-signed wildcard certificate generator | |
echo | |
echo -n Usage: $0 example.com | |
echo | |
exit; | |
fi |
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
[Unit] | |
Description=Service discovery for %i | |
After=%i.service | |
Requires=%i.service | |
[Service] | |
Restart=always | |
Environment="SLEEP=5" | |
Environment="TTL=10" | |
Environment='FORMAT="{{ .NetworkSettings.IPAddress }}"' |