This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mapValues(obj, fn) { | |
return Object.keys(obj).reduce((result, key) => { | |
result[key] = fn(obj[key], key); | |
return result; | |
}, {}); | |
} | |
function pick(obj, fn) { | |
return Object.keys(obj).reduce((result, key) => { | |
if (fn(obj[key])) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" vim: fdm=marker ts=2 sts=2 sw=2 | |
" Variables {{{ | |
let mapleader = "\<Space>" | |
let s:is_windows = has('win32') || has('win64') | |
let s:is_nvim = has('nvim') | |
"}}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Login via SSH with password (LOCAL SERVER) | |
> ssh brad@192.168.1.29 | |
# Create folder, file, install Apache (Just messing around) | |
mkdir test | |
cd test | |
touch hello.txt | |
sudo apt-get install apache2 | |
# Generate Keys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="cssSlider"> | |
<div id="sliderImages"> | |
<div id="hi-1" className="hi"> | |
<span className="hi-text">AAA</span> | |
</div> | |
<div id="hi-2" className="hi"> | |
B | |
</div> | |
<div id="hi-3" className="hi"> | |
C |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo yum groups install -y Development\ tools | |
sudo yum install -y cmake | |
sudo yum install -y python34-{devel,pip} | |
sudo pip-3.4 install neovim --upgrade | |
# creating and storing the init.vim | |
wget https://gist.githubusercontent.com/git-Pqrd/d89db665cbceda5493d2e976a612cfc3/raw/c226b8d636ec352c5266babded13120dc85ebbd1/.light_vimrc | |
mkdir -p ~/.config/nvim/ | |
mv .light_vimrc ~/.config/nvim/init.vim | |
( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
créer un Directory. | |
Y mettre le docker-compose.yml de WordPress (https://gist.github.com/bradtraversy/faa8de544c62eef3f31de406982f1d42) | |
créer tous les fichiers WordPress en lançant docker-compose up --build au niv du d-c.yml | |
Faire l'installation de WordPress en se connectant à 192.168.99.100:8000. | |
Installer le thème WP bootstrap 4 | |
Télécharger et suivre les instructions de https://github.com/git-Pqrd/wp_ct_boilerplate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Database connection test script for WordPress | |
* | |
* Parses the wp-config.php file for DB connection information and tests | |
* a mysql connection to the DB server and selection of the database. | |
* Errors will be reported. Attempts will be made to repair table errors. | |
* | |
* Place this file in the same directory as wp-config.php | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mapleader = "\<Space>" | |
let s:is_nvim = has('nvim') | |
set t_Co=256 | |
"remmaping different part | |
inoremap ùù <Esc> | |
map <F10> :tabp <CR> | |
map <F11> :tabedit | |
map <F12> :tabn <CR> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mapleader = "\<Space>" | |
let s:is_nvim = has('nvim') | |
set t_Co=256 | |
"remmaping different part | |
inoremap ùù <Esc> | |
map <F10> :tabp <CR> | |
map <F11> :tabedit | |
map <F12> :tabn <CR> |