brew install ios-webkit-debug-proxy
Run the simulator. And choose an iOS 10 device. The chrome remote debugging doesn't work with iOS 11 yet.
When querying your database in Sequelize, you'll often want data associated with a particular model which isn't in the model's table directly. This data is usually typically associated through join tables (e.g. a 'hasMany' or 'belongsToMany' association), or a foreign key (e.g. a 'hasOne' or 'belongsTo' association).
When you query, you'll receive just the rows you've looked for. With eager loading, you'll also get any associated data. For some reason, I can never remember the proper way to do eager loading when writing my Sequelize queries. I've seen others struggle with the same thing.
Eager loading is confusing because the 'include' that is uses has unfamiliar fields is set in an array rather than just an object.
So let's go through the one query that's worth memorizing to handle your eager loading.
| 1 - Install Home Brew. | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| 2 - Install aircrack-ng: | |
| brew install aircrack-ng | |
| 3 - Install the latest Xcode, with the Command Line Tools. | |
| //Create the following symlink: | |
| sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/local/bin/airport//Figure out which channel you need to sniff: |
| module.exports = (string) => { | |
| return string.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, '$1-$2').toLowerCase(); | |
| }; |
| @-moz-document domain("stackoverflow.com") { | |
| body.newheader { | |
| padding-top: 0; | |
| } | |
| .so-header { | |
| background-color: #333; | |
| position: relative; | |
| } |
| # Import the public repository GPG keys | |
| curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - | |
| # Register the Microsoft Ubuntu repository | |
| curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list | |
| # Update apt-get | |
| sudo apt-get update | |
| # Install PowerShell |
This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :
| 'use strict'; | |
| const exec = require('child_process').exec; | |
| function puts(error, stdout, stderr) { | |
| console.log(stdout); | |
| } | |
| class WebpackShellPlugin { | |
| constructor(options) { |