Skip to content

Instantly share code, notes, and snippets.

View etiennejcharles's full-sized avatar
🏠
Working from home

Etienne-Joseph Charles etiennejcharles

🏠
Working from home
  • Staples Business Advantage Canada
  • Montreal, QC
View GitHub Profile
@etiennejcharles
etiennejcharles / cloudSettings
Last active April 26, 2020 07:07
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-04-26T07:07:58.543Z","extensionVersion":"v3.4.3"}
@etiennejcharles
etiennejcharles / cloudSettings
Created October 30, 2017 13:10
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-10-30T13:10:48.880Z","extensionVersion":"v2.8.3"}
@etiennejcharles
etiennejcharles / cloudSettings
Created October 30, 2017 13:10
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-10-30T13:10:20.769Z","extensionVersion":"v2.8.3"}
# Install brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install composer
brew install homebrew/php/composer
### PHPCS
composer global require "squizlabs/php_codesniffer=*"
# Add to your .bash_profile
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="MyProject">
<description>PSR-2 plus extras</description>
<rule ref="PSR2" />
<!-- Verifies that class members have scope modifiers. -->
<rule ref="Squiz.Scope.MethodScope" />
<!-- Discourages the use of deprecated functions that are kept in PHP
// class
class ClassCar {
drive () {
console.log('Vroom!');
}
}
const car1 = new ClassCar();
console.log(car1.drive());
@etiennejcharles
etiennejcharles / wp-setup.sh
Created September 2, 2017 06:59 — forked from mattbanks/wp-setup.sh
Scaffold a new WordPress development site in Alfred, utilizing WP-CLI. Use this script to run as a Terminal Script. Customize for your theme needs, plugin needs, etc.
# Create directory for new site
cd ~/Sites
mkdir {query}
cd {query}
# Download latest version of WordPress
wp core download
# Setup wp-config file with WP_DEBUG enabled
wp core config --dbname={query} --dbuser=root --dbpass=root --dbprefix={query}wp_ --extra-php <<PHP
@etiennejcharles
etiennejcharles / .gitignore
Created August 29, 2017 19:36 — forked from markbrouch/.gitignore
.gitignore file for front-end projects
# Created by https://www.gitignore.io/api/node,bower,osx,linux,windows,dropbox,sass,less,grunt,sublimetext,code
### Node ###
# Logs
logs
*.log
npm-debug.log*
# Runtime data
@etiennejcharles
etiennejcharles / .jsbeautifyrc
Created August 29, 2017 15:02 — forked from wzup/.jsbeautifyrc
.jsbeautifyrc file example
{
// The plugin looks for a .jsbeautifyrc file in the same directory as the
// source file you're prettifying (or any directory above if it doesn't exist,
// or in your home folder if everything else fails) and uses those options
// along the default ones.
// Details: https://github.com/victorporof/Sublime-HTMLPrettify#using-your-own-jsbeautifyrc-options
// Documentation: https://github.com/einars/js-beautify/
"html": {
"allowed_file_extensions": ["htm", "html", "xhtml", "shtml", "xml", "svg", "dust"],
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;