- empty view; what about when there is no data?
- tansitions; animations?
- busy indicators; spinners, interstitial views
- error views
- view?
- alert?
- global alerting
- "new version available"
#!/usr/bin/env node | |
var fs = require("fs"); | |
function fixFile(filename, lineNumbers) { | |
fs.readFile(filename, { encoding: "utf-8", flag: "r" }, function (err, buffer) { | |
if (err) { | |
console.error("Could not read", filename, err); | |
return; | |
} |
var Webpack = require("webpack"); | |
var path = require("path"); | |
var util = require("util"); | |
var host = process.env.HOST || "localhost"; | |
var port = process.env.PORT || 8080; | |
module.exports = { | |
entry: { | |
app: [ |
- multple apps sharing the same cookie domain
- one app (express.js) is using a secure cookie
express:sess
andexpress:sess.sig
- the hapi.js app tries to parse these cookies and fails returning 400 BadRequest error to client
I don't want hapi to return an error response to the client just because it gets a cookie it cant parse and doesn't care about. I tried setting
server.config({
var libphonenumber = require("google-libphonenumber"); | |
var formats = libphonenumber.PhoneNumberFormat; | |
var phoneUtil = libphonenumber.phoneUtil; | |
var number = phoneUtil.parse("2065557823", "us"); // pass number and country code | |
// some formats | |
phoneUtil.format(number, formats.E164); | |
// '+12065551234` |
'use strict'; | |
module.exports = function CustomError(message, extra) { | |
Error.captureStackTrace(this, this.constructor); | |
this.name = this.constructor.name; | |
this.message = message; | |
this.extra = extra; | |
}; | |
require('util').inherits(module.exports, Error); |
var ViewportInfo = React.createClass({ | |
getInitialState: function () { | |
return { | |
width: null, | |
height: null | |
}; | |
}, |
# aliases | |
alias cls='clear' | |
alias ls='ls -FG' | |
alias ll='ls -l' | |
alias la='ll -a' | |
# git completion | |
if [ -f `brew --prefix`/etc/bash_completion.d/git-completion.bash ]; then | |
. `brew --prefix`/etc/bash_completion.d/git-completion.bash | |
fi |
First, you have to get your repository. Use git clone
to get the repository into your current directory form the terminal
git clone https://github.com/craigbeck/git-workflow-demo.git
The above will create a directory git-workflow-demo
in the current directory that contains the "repo" (assuming a real repository, the above URL is just a made-up example). Change to this new directory with cd git-workflow-demo
. Your newly cloned repo should look something like this:
$ ls -la
Mailbox.app crashes on startup every time. This happend after a Gmail account was disabled (account associated with previous job) before it was removed from Mailbox.app. This caused crashes on the iOS and OS X versions of the app that made them both unusable.
An updated app was relased at some point that allowed me to "delete" the prevoiusly deactivated account and has been working for a number of weeks.