Zach Silveira was kind enough to create a video tutorial:
https://www.youtube.com/watch?v=apZwd0FqQu4&feature=youtu.be
Here are my notes as I followed along...
- Install Docker for Mac.
// This state machine is trying to figure out how to allow a user to call `await Auth.getUser()` multiple times throughout their app and get the current user once it resolves. | |
// Utility to resolve a Promise externally | |
const defer = () => { | |
let res,rej; | |
const promise = new Promise((resolve, reject) => { | |
res = resolve; | |
rej = reject; |
Zach Silveira was kind enough to create a video tutorial:
https://www.youtube.com/watch?v=apZwd0FqQu4&feature=youtu.be
Here are my notes as I followed along...
var SortSelect = function(select) { | |
var options = jQuery.makeArray(select.find('option')); | |
var sorted = options.sort(function(a, b) { | |
return (jQuery(a).text() > jQuery(b).text()) ? 1 : -1; | |
}); | |
select.append(jQuery(sorted)) | |
.attr('selectedIndex', 0); | |
}; |
var webpack = require("webpack"); | |
module.exports = { | |
module: { | |
loaders: [ | |
{ | |
exclude: /node_modules/, | |
loader: "babel-loader", | |
query: { | |
cacheDirectory: true, |
FROM ubuntu:14.04 | |
ENV DEBIAN_FRONTEND noninteractive | |
ENV HOME /root | |
RUN apt-get -qq -y update | |
RUN apt-get -qq -y install software-properties-common | |
RUN apt-add-repository -y ppa:ansible/ansible | |
RUN apt-get -qq -y update | |
RUN apt-get -qq -y install ansible |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.15977835655212402</real> |
export default { | |
... | |
resolve: { | |
root: [ | |
path.join(process.cwd(), "lib"), | |
], | |
}, | |
... |
/** | |
* Term: schools.address.state | |
* | |
* Stores the state abbreviation for a school's location. | |
*/ | |
module.exports = { | |
table: 'school', // Entity table in DB | |
// `?state=tx` is supported (or would throw) here | |
filter: function(qb, value) { |
var FieldMixin = { | |
value: function() { | |
return 'default value'; | |
} | |
}; |
cat ~/.profile | |
export PATH="/usr/local/php5/bin:/usr/local/bin:$PATH" | |
if [ -f `brew --prefix`/etc/bash_completion ]; then | |
. `brew --prefix`/etc/bash_completion | |
fi | |
GIT_PS1_SHOWDIRTYSTATE="false" | |
GIT_PS1_SHOWUPSTREAM="false" |