- Update the system
sudo apt update && sudo apt upgrade
- Enable additional repositories for more software
Software & Updates -> Other Software -> Canonical Partners
- Download Chrome
- Add languages & setup keybinding
APP_ENV=testing | |
APP_KEY=SomeRandomString | |
DB_CONNECTION=testing | |
DB_TEST_USERNAME=root | |
DB_TEST_PASSWORD=root | |
CACHE_DRIVER=array | |
SESSION_DRIVER=array | |
QUEUE_DRIVER=sync |
// Add in end of file | |
<VirtualHost *:80> | |
DocumentRoot "C:/xampp/htdocs/{site_folder}" | |
ServerName {site_url} | |
<Directory "C:/xampp/htdocs/{site_folder}"> | |
Options Indexes FollowSymLinks Includes ExecCGI | |
AllowOverride All | |
Require all granted |
<VirtualHost localhost:80> | |
ServerName test.dev | |
ServerAlias www.test.dev | |
DocumentRoot /home/yura/projects/test.dev | |
<directory /home/yura/projects/test.dev> | |
AllowOverride All | |
Require all granted | |
</directory> | |
ErrorLog /home/w33ha/dev/logs/smc.dev/error.log | |
LogLevel warn |
1. Open a PC file $HOME/.local/share/applications/google-chrome.desktop | |
2. Find a line in it Exec=/opt/google/chrome/chrome | |
3. At the end of the line add '%U' to succeed Exec=/opt/google/chrome/chrome %U | |
4. Save the file. |
call plug#begin('~/.vim/plugged') | |
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } | |
Plug 'stanangeloff/php.vim' | |
Plug 'shawncplus/phpcomplete.vim' | |
Plug 'arnaud-lb/vim-php-namespace' | |
Plug 'pangloss/vim-javascript' | |
Plug 'jdkanani/vim-material-theme' | |
Plug 'jiangmiao/auto-pairs' | |
Plug 'kien/ctrlp.vim' |
export TERM="xterm-256color" | |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH=/home/w33ha/.oh-my-zsh | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes |
sudo apt update && sudo apt upgrade
Software & Updates -> Other Software -> Canonical Partners
10, 20, 30, 40, 50, 60, 70, 80, 92, 100, 120, 130, 210, 220, 240, 280, 300, 304, 320, 340, 360, 380, 400, 420, 440, 480, 490, 500, 520, 530, 550, 570, 580, 620, 630, 659, 700, 710, 720, 730, 790, 817, 841, 852, 882, 1001, 1002, 1200, 1210, 1230, 1250, 1270, 1280, 1300, 1309, 1313, 1320, 1500, 1504, 1510, 1520, 1525, 1530, 1600, 1610, 1620, 1630, 1640, 1670, 1690, 1700, 1820, 1860, 1900, 1920, 1930, 2100, 2110, 2115, 2130, 2200, 2210, 2270, 2280, 2290, 2300, 2310, 2320, 2330, 2340, 2350, 2360, 2370, 2390, 2400, 2410, 2413, 2420, 2430, 2450, 2500, 2520, 2525, 2540, 2545, 2550, 2570, 2590, 2600, 2610, 2620, 2630, 2640, 2680, 2690, 2700, 2710, 2720, 2750, 2760, 2780, 2790, 2800, 2810, 2820, 2830, 2840, 2850, 2870, 2900, 2910, 2920, 2930, 2950, 2990, 3000, 3010, 3020, 3030, 3040, 3050, 3130, 3150, 3160, 3170, 3200, 3220, 3230, 3260, 3270, 3300, 3310, 3320, 3330, 3340, 3350, 3360, 3370, 3380, 3390, 3400, 3410, 3420, 3430, 3440, 3450, 3460, 3470, 3480, 3483, 3490, 3500, 3510, 3520, 3530, 3540, 3550, 3560, 3570, 3580 |
// https://www.evanmiller.org/how-not-to-sort-by-average-rating.html | |
const wilsonScore = (up, down) => { | |
if (!up) return 0 | |
const n = up + down | |
const z = 1.64485 // 1.0 = 85%, 1.6 = 95% | |
const phat = up / n | |
return (phat + ((z * z) / (2 * n)) - (z * Math.sqrt(((phat * (1 - phat)) + (z * z / (4 * n))) / n))) / (1 + (z * z / n)) | |
} |