ssh-keygen
ssh-copy-id username@remote_host
// ============================================================================= | |
// Calculate Size | |
// ============================================================================= | |
// Strip Unit | |
// ----------------------------------------------------------------------------- | |
// | |
// Removes the unit (e.g. px, em, rem) from a value, returning the number only. | |
// | |
// ----------------------------------------------------------------------------- |
.ratio-16-9, | |
.ratio-16-10, | |
.ratio-square { | |
display: block; | |
position: relative; | |
width: 100%; | |
height: 0; | |
} | |
.ratio-16-9 { |
{ | |
"extends": [ | |
"stylelint-config-standard", | |
"stylelint-config-sass-guidelines", | |
"./node_modules/prettier-stylelint/config.js" | |
], | |
"plugins": [ | |
"stylelint-scss", | |
"stylelint-order", | |
"stylelint-a11y", |
- aaron-bond.better-comments | |
- bierner.lit-html | |
- bmewburn.vscode-intelephense-client | |
- christian-kohler.path-intellisense | |
- CodeRoad.coderoad | |
- codezombiech.gitignore | |
- CoenraadS.bracket-pair-colorizer | |
- donjayamanne.githistory | |
- dsznajder.es7-react-js-snippets | |
- esbenp.prettier-vscode |
{ | |
"window.zoomLevel": 1, | |
"editor.fontFamily": "Monaco", | |
"editor.fontLigatures": true, | |
"editor.tabSize": 2, | |
"editor.formatOnSave": true, | |
"editor.detectIndentation": false, | |
"terminal.integrated.fontSize": 17, | |
"terminal.integrated.shell.osx": "/bin/zsh", | |
"workbench.iconTheme": "material-icon-theme", |
/*! | |
* description: Format Phone Numbers | |
* Output: (+XXX) XXX-XXXXXX => (+212) 671-415075 | |
* @phone | |
*/ | |
function formatPhone(phoneNumber, format) { | |
// Replace X by each number on a specific position | |
for (let i = 0, l = phoneNumber.length; i < l; i++) { | |
format = format.replace( |
<?php | |
add_action( 'init', function() { | |
register_post_type( 'events', [ | |
'show_ui' => true, | |
'labels' => [ | |
'menu_name' => __( 'Events', 'your-textdomain' ),//@see https://developer.wordpress.org/themes/functionality/internationalization/ | |
], | |
'show_in_graphql' => true, | |
'hierarchical' => true, |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
// In your gatsby-config.js | |
module.exports = { | |
plugins: [ | |
/* | |
* Gatsby's data processing layer begins with “source” | |
* plugins. Here the site sources its data from Wordpress. | |
*/ | |
{ | |
resolve: "gatsby-source-wordpress", | |
options: { |