o-
, Object- abstrct; may be used in any number of (unrelated) places across the project
- modifications have knock-on effects in a lot of other unrelated places
- for “abstracting out the repetitive, shared, and purely structural aspects of a UI into reusable objects”
- layout, wrappers, containers and other “skeletal aspects” of UI components
c-
, Component- a concrete, implementation-specific piece of UI
- modifications are detectable in the context you’re currently looking at
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
Elastic Load Balancer, CloudFront and Let's Encrypt |
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
[Unit] | |
Description=supervisord - Supervisor process control system for UNIX | |
Documentation=http://supervisord.org | |
After=network.target | |
[Service] | |
Type=forking | |
ExecStart=/bin/supervisord -c /etc/supervisord/supervisord.conf | |
ExecReload=/bin/supervisorctl reload | |
ExecStop=/bin/supervisorctl shutdown |
All commands are in the terminal.
- SSH into the Homestead Box -
vagrant ssh
from homestead directory - Create a new folder for Selenium -
mkdir selenium
from the~
directory - Navigate to that folder -
cd selenium
- Get Selenium -
wget http://selenium-release.storage.googleapis.com/2.45/selenium-server-standalone-2.45.0.jar
*Note: This link comes from copying the link on http://docs.seleniumhq.org/download/ - Install Java -
sudo apt-get install openjdk-7-jre-headless
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 | |
function slug_check_dev() { | |
$urlParts = parse_url( htmlspecialchars("//$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]", ENT_QUOTES, 'UTF-8' ) ); | |
$hostParts = explode('.', $urlParts[ 'host'] ); | |
$hostParts = array_reverse( $hostParts ); | |
if ( $hostParts[ 0 ] === 'dev' ) { | |
return true; | |
} |
Install Vagrant and VirtualBox Vagrant Download https://www.vagrantup.com/downloads.html
Virtual Box Download https://www.virtualbox.org/wiki/Downloads
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
mkdir scrutinizer && cd scrutinizer | |
# Install tools | |
# - Scrutinizer and composer | |
wget http://scrutinizer-ci.com/scrutinizer.phar | |
curl -sS https://getcomposer.org/installer | php | |
# - All needed CI tools | |
php composer.phar require h4cc/phpqatools:~1.2 | |
cp -p composer.phar vendor/bin/composer |
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
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
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
const Application = ((d) => { | |
const privateVariable = 'Private content' | |
const __private = { | |
cache: () => { | |
this.link = d.querySelector('.link') | |
}, | |
bind: () => { | |
this.link.addEventListener('click', this.showContent, false) |
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
Snippet: [[SnippetName]] | |
Chunk: [[$ChunkName]] | |
System Setting: [[++SettingName]] | |
TV: [[*fieldName/TvName]] | |
Link tag: [[~PageId? ¶mName=`value`]] | |
Placeholder: [[+PlaceholderName]] | |
<?php |