This file contains 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
function collapse_pwd { | |
echo $(pwd | sed -e "s,^$HOME,~,") | |
} | |
PROMPT='%{$fg_bold[cyan]%}robrichard.net%{$reset_color%}:%{$fg[green]%}$(collapse_pwd)%{$reset_color%} | |
%{$fg_bold[blue]%}➜ %{$reset_color%} |
This file contains 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
function collapse_pwd { | |
echo $(pwd | sed -e "s,^$HOME,~,") | |
} | |
PROMPT='%{$fg[green]%}$(collapse_pwd) %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%} | |
%{$fg_bold[red]%}➜ %{$reset_color%}' | |
ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}" |
This file contains 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
"use strict"; | |
var SoaModel = require('@bunsen/models/SoaModel'), | |
Shipment = SoaModel.extend(); | |
module.exports = bunsen.Shipment = Shipment; | |
var Backbone = require('Backbone'), | |
_ = require('underscore'), | |
endpoints = require('@bunsen/libraries/endpoints'), |
This file contains 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
(function (root, factory) { | |
var _export; | |
if (typeof module !== 'undefined') { | |
// CommonJS | |
factory(module, | |
require('Backbone'), | |
require('@bunsen/libraries/endpoints'), | |
require('@bunsen/models/SoaModel'), | |
require('@bunsen/collections/ecomm/Offers'), | |
require('@bunsen/models/ecomm/Offer'), |
This file contains 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
function (state = {}, action) { | |
switch (action.type) { | |
case 'VIEW_ORDERS': | |
return { | |
...state, | |
pageType: 'orders', | |
orderId: null | |
}; | |
case 'VIEW_ORDER': | |
return { |
This file contains 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 Router = new AmpersandRouter({ | |
// define all of the routes in our application. | |
// AmpersandRouter will invoke the method named when a route is | |
// matched on either page load or a browser back/forward click | |
routes: { | |
'/my/order/receipt/:orderId': 'loadReceipt' | |
'/my/order/:orderId': 'loadOrder', | |
'/my/orders': 'loadOrders', | |
}, | |
initialize(options) { |
This file contains 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
class MyForm extends React.Component { | |
render() { | |
return ( | |
<form onSubmit={() => /* save your form here */}> | |
<div> | |
<input name="email" placeholder="email"/> | |
</div> | |
<div> | |
<input name="name" placeholder="name"/> | |
</div> |
This file contains 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
class MyForm extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
input: { | |
email: "", | |
name: "" | |
} | |
}; | |
} |
This file contains 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
class MyForm extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
input: { | |
email: "", | |
name: "" | |
} | |
}; | |
} |
This file contains 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
class MyForm extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
input: { | |
email: "", | |
name: "" | |
}, | |
blurred: { | |
email: false, |
OlderNewer