Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| #import('dart:mirrors'); | |
| class MyClass { | |
| String _test; | |
| String get test => _test; | |
| set test(String paramVal) => _test = paramVal; | |
| void my_method() { | |
| } |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| /** | |
| * Simple JS equivalent of the Python set() constructor (without the methods) | |
| * @requires shim: Array.prototype.indexOf | |
| * @param {array} arr The array to turn into a set | |
| * @example | |
| * var mySet = set(['red', 'yellow', 'black', 'yellow']); | |
| * mySet.length; // 3 | |
| * JSON.stringify(mySet); // ["red","yellow","black"] | |
| * @see For a fuller version, see {@link https://npmjs.org/package/set} | |
| */ |
We Gophers, love table-driven-tests, it makes our unittesting structured, and makes it easy to add different test cases with ease.
Let’s create our table driven test, for convenience, I chose to use t.Log as the test function.
Notice that we don't have any assertion in this test, it is not needed to for the demonstration.
func TestTLog(t *testing.T) {
t.Parallel()| { | |
| "AWSEBDockerrunVersion": 2, | |
| "volumes": [ | |
| { | |
| "name": "dockersock", | |
| "host": { "sourcePath": "/var/run/docker.sock" } | |
| }, | |
| { | |
| "name": "traefik-config", | |
| "host": { "sourcePath": "/var/app/current/reverseproxyconf.yml" } |
npm install --save @nestjs/typeorm typeorm pg
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { configService } from './config/config.service';
| #!/usr/bin/env bash | |
| #shellcheck disable=SC2016 | |
| set -euo pipefail | |
| if [[ -z "${DOTLY_PATH:-}" ]] || ! output::empty_line > /dev/null 2>&1; then | |
| red='\033[0;31m' | |
| green='\033[0;32m' | |
| bold_blue='\033[1m\033[34m' | |
| normal='\033[0m' |