You need to provide some classes and decorators yourself to maintain the same style as [email protected]
.
@EntityRepository(UserEntity)
export class UserRepository extends Repository<UserEntity> {}
↓
You need to provide some classes and decorators yourself to maintain the same style as [email protected]
.
@EntityRepository(UserEntity)
export class UserRepository extends Repository<UserEntity> {}
↓
Install powerline
sudo apt install powerline source /usr/share/powerline/bindings/bash/powerline.sh
Download and install fonts
git clone https://github.com/powerline/fonts.git && cd fonts && sh ./install.sh
Add this lines to .bashrc file if bash is what you use. You could add to other files like .zshrc etc. I use bash so there. This ensures that this switch is automatic when you start bash
.bashrc > if [ -f /usr/share/powerline/bindings/bash/powerline.sh ]; then
import 'dotenv/config'; | |
import { NestFactory } from '@nestjs/core'; | |
import * as repl from 'repl'; | |
import * as Logger from 'purdy'; | |
const LOGGER_OPTIONS = { | |
indent: 2, | |
depth: 1, | |
}; |
version: "3" | |
networks: | |
kong-net: | |
driver: bridge | |
services: | |
####################################### | |
# Postgres: The database used by Kong |
TIME_DURATION_UNITS = ( | |
('week', 60*60*24*7), | |
('day', 60*60*24), | |
('hour', 60*60), | |
('min', 60), | |
('sec', 1) | |
) | |
def human_time_duration(seconds): |
(async function () { | |
const token = JSON.parse(localStorage.getItem('user')).token; | |
const headers = new Headers(); | |
const url = 'https://web-api.snapp.ir/api/v1/ride/history'; | |
const query = '?page='; | |
let total = 0; | |
let page = 1; | |
headers.append('Authorization', token); | |
headers.append('Content-Type', 'application/json'); |
/** | |
* Open https://app.snapp.ir | |
* Login with your credentials | |
* Copy and pasting this code in developer tools console | |
* Waiting... :) | |
*/ | |
(async function () { | |
function sleep(ms = 0) { | |
return new Promise(r => setTimeout(r, ms)); | |
} |
To remove a submodule you need to:
function drips(){ | |
docker ps -q | xargs -n 1 docker inspect --format '{{ .NetworkSettings.IPAddress }} {{ .Name }}' | sed 's/ \// /' | |
} |
using System; | |
using System.Reflection; | |
namespace Grapevine | |
{ | |
public enum ContentType | |
{ | |
[Metadata(Value = "application/x-authorware-bin", IsBinary = true)] | |
AAB, |