brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
// Copyright 2018 Gordon Brander | |
// Released under MIT License https://opensource.org/licenses/MIT | |
const closest = (el, selector) => | |
el.closest ? el.closest(selector) : null; | |
/** | |
* Delegate event handling to a parent element. | |
* @arg {Element} el - the parent element that we will be delegating handling to. | |
* @arg {string} selector - CSS selector of elements that should receive events. |
sass/ | |
| | |
|– base/ | |
| |– _reset.scss # Reset/normalize | |
| |– _typography.scss # Typography rules | |
| ... # Etc… | |
| | |
|– components/ | |
| |– _buttons.scss # Buttons | |
| |– _carousel.scss # Carousel |
var commentSchema = new Schema({ | |
postId: { | |
type: String, | |
hashKey: true | |
}, | |
id: { | |
type: String, | |
rangeKey: true, | |
default: shortId.generate |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
{ | |
"preset": "google", | |
"fileExtensions": [ ".js", "jscs" ], | |
"requireParenthesesAroundIIFE": true, | |
"requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties", | |
"maximumLineLength": 120, | |
"validateLineBreaks": "LF", | |
"validateIndentation": 2, |
{ | |
"globals": { | |
"assert" : true, | |
"define" : true, | |
"require" : true, | |
"module" : true, | |
"exports" : true, | |
"$" : true, | |
"jQuery" : true, | |
"_" : true, |
<?php | |
class Curl { | |
/** | |
* cURL request method | |
* | |
* @var string | |
*/ | |
protected $_method = 'GET'; |
<?php | |
/** | |
* @author Simon Holywell <treffynnon@php.net> | |
*/ | |
class LazyLoadingProxy { | |
/** | |
* Where the instance of the actual class is stored. | |
* @var $instance object | |
*/ | |
private $instance = null; |