Skip to content

Instantly share code, notes, and snippets.

Etienne-Joseph Charles etiennejcharles

  • Montreal, QC
Block or report user

Report or block etiennejcharles

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@etiennejcharles
etiennejcharles / cloudSettings
Last active Oct 24, 2019
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2019-10-24T18:13:04.522Z","extensionVersion":"v3.4.3"}
@etiennejcharles
etiennejcharles / cloudSettings
Created Oct 30, 2017
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2017-10-30T13:10:48.880Z","extensionVersion":"v2.8.3"}
@etiennejcharles
etiennejcharles / cloudSettings
Created Oct 30, 2017
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2017-10-30T13:10:20.769Z","extensionVersion":"v2.8.3"}
View gist:a9a50d799d823948bad8f3f0874254f2
# 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
View phpcs.xml
<?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
View class-constructor-factory-examples.js
// class
class ClassCar {
drive () {
console.log('Vroom!');
}
}
const car1 = new ClassCar();
console.log(car1.drive());
@etiennejcharles
etiennejcharles / wp-setup.sh
Created Sep 2, 2017 — 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.
View wp-setup.sh
# 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 Aug 29, 2017 — forked from markbrouch/.gitignore
.gitignore file for front-end projects
View .gitignore
# 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 Aug 29, 2017 — forked from wzup/.jsbeautifyrc
.jsbeautifyrc file example
View .jsbeautifyrc
{
// 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"],
View reset.scss
/* 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%;
You can’t perform that action at this time.