last tested on Xenial Xerus(16.04)
First add the postgresql repo to PC's sources list...
echo 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main' | sudo tee -a /etc/apt/sources.list.d/test.list > /dev/null| function duplicateCount(text) { | |
| if (!text) return 0; // no need moving forward if input is empty | |
| const tracker = new Set(); // keep track of all characters in the input | |
| const dupes = new Set(); // keep track of duplicate characters | |
| for (const char of text.toLowerCase()) { | |
| if(tracker.has(char)) { | |
| dupes.add(char); | |
| } else { |
| function duplicateCount(text) { | |
| const tracker = {}; | |
| const dupes = []; | |
| for (const char of text.toLowerCase()) { | |
| if (tracker.hasOwnProperty(char)) { | |
| tracker[char]++; | |
| } else { | |
| tracker[char] = 1; | |
| } |
| function stripWords(word) { | |
| if(/[a-z]/.test(word[word.length - 1])) { | |
| return word; | |
| } else { | |
| return stripWords(word.substring(0, word.length - 1)); | |
| } | |
| } |
First run ...
ssh-keygen -t rsa -b 4096 -C 'email@domain.com'... from terminal, then run ...
eval "$(ssh-agent -s)"Add files to be forgotten to your .gitignore file:
echo "[filename1.ext] \n[filename2.ext] \n[evenafulldirectory/]" >> .gitignoreFrom root of the repo run:
git rm -r --cached . > /dev/null && git add --all| import chai from 'chai'; | |
| import 'chai/register-should'; | |
| import chaiHttp from 'chai-http'; | |
| import app from '../../src/app.js'; | |
| import { publications, articles } from '../mockData'; | |
| chai.use(chaiHttp); | |
| describe('GET all articles for a particular publication', () => { |
Click to create a new app
| const fs = require('fs'); | |
| const { join } = require('path'); | |
| const { promisify } = require('util'); | |
| const shell = require('child_process').execSync; | |
| const readDir = promisify(fs.readdir); | |
| const tempPath = join(__dirname, 'temp'); | |
| const distPath = join(__dirname, 'dist'); | |
| readDir(__dirname) |