After this command we dont need add sudo before docker command in linux
sudo chmod 666 /var/run/docker.sock
Rasa docker
docker run -v myrasa:/app rasa/rasa init --no-prompt
Class Decorator | |
A class decorator is applied to the entire class and has a single parameter. | |
function classDecorator(target: Function) { | |
// target is the constructor function of the class | |
} | |
Method Decorator | |
A method decorator is applied to a method within a class and has three parameters. |
You can follow this steps; | |
1. checkout to stage and ensure that you have the latest code | |
2. checkout to live and ensure you have the latest code | |
3. create a new branch from live , you can call it hot-fix-<simple name of the changes> e.g. "hot-fix-user-rb-api" | |
4. cherry-pick each of the commits you want from stage into the new branch you created (you can get the commit ids from the PR that contains the changes you want to hot fix) | |
5. Create a PR from the hot-fix branch -> live | |
test('creates Contract on correct date', () => { | |
const NOW = '2019-05-03T08:00:00.000Z'; | |
const mockDateNow = jest | |
.spyOn(global.Date, 'now') | |
.mockImplementation(() => new Date(NOW).getTime()); | |
const mutation = ` | |
mutation createContract { | |
createContract { | |
startedOn |
import { Connection, createConnection } from 'mongoose' | |
// import { log } from './logger' | |
const connectionOptions = { | |
dbName: 'app' | |
} | |
const MONGO_URL: string = process.env.MONGO_URL | |
console.log('MONGO_URL: ', MONGO_URL) | |
export const db: Connection = createConnection(MONGO_URL, connectionOptions) |
What is FULL-TEXT SEARCH? What does FULL-TEXT SEARCH mean? FULL-TEXT SEARCH meaning - FULL-TEXT SEARCH definition - FULL-TEXT SEARCH explanation. | |
In text retrieval, full-text search refers to techniques for searching a single computer-stored document or a collection in a full text database. Full-text search is distinguished from searches based on metadata or on parts of the original texts represented in databases (such as titles, abstracts, selected sections, or bibliographical references). | |
In a full-text search, a search engine examines all of the words in every stored document as it tries to match search criteria (for example, text specified by a user). Full-text-searching techniques became common in online bibliographic databases in the 1990s. Many websites and application programs (such as word processing software) provide full-text-search capabilities. Some web search engines, such as AltaVista, employ full-text-search techniques, while others index only a portion of the web pages examined by their in |
After this command we dont need add sudo before docker command in linux
sudo chmod 666 /var/run/docker.sock
Rasa docker
docker run -v myrasa:/app rasa/rasa init --no-prompt
const request = require('request-promise'); | |
const cheerio = require('cheerio'); | |
(async () => { | |
console.log(`Initial request to get the csrf_token value..`); | |
let initialRequest = await request({ | |
uri:'http://quotes.toscrape.com/login', | |
method: 'GET', |
var xlsx = require("xlsx"); | |
var fs = require("fs"); | |
function readFileToJson(filename) { | |
var wb = xlsx.readFile(filename); | |
var firstTabName = wb.SheetNames[0]; | |
var ws = wb.Sheets[firstTabName]; | |
var data = xlsx.utils.sheet_to_json(ws); | |
return data; | |
} |
https://chrisalbon.com |
let express = require("express"); | |
let request = require("request"); | |
const ffmpeg = require("fluent-ffmpeg"); | |
const fs = require("fs"); | |
let track = | |
"https://cdn.fbsbx.com/v/t59.3654-21/52113399_803146416702766_1003332990597595136_n.mp4/audioclip-1551778334000-1950.mp4?_nc_cat=105&_nc_ht=cdn.fbsbx.com&oh=07e065c73899d3dd825828f4ce019138&oe=5C80FE67"; //your path to source file | |
async function createFile(track) { | |
new Promise((resolve, reject) => { | |
ffmpeg(track) |