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
Autoquote | |
Is eligible -> Eligible | |
Not eligible | |
Eligible | |
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
Reservation | |
Initial State* | |
Pay with Credit Card -> Is Form Valid? | |
Is Form Valid? | |
Yes -> Stripe Checkout | |
No -> Wanderio Flex Modal | |
Wanderio Flex Modal | |
Add Flex -> Is Form Valid? | |
Remove Flex -> Is Form Valid? |
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
# MOZ API http://apiwiki.moz.com/categories/api-reference | |
require 'openssl' | |
require 'base64' | |
require 'cgi' | |
require 'open-uri' | |
# You can obtain you access id and secret key here: http://moz.com/products/api/keys | |
ACCESS_ID = "" | |
SECRET_KEY = "" |
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
ruby -run -e httpd . -p 5000 |
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
Somebody asked me how to become a Product Manager. Here's what I wrote them. | |
--------------------------------------------------------------------------- | |
Hi Jon, | |
Those are a lot of questions. Let me try to simplify it. | |
I think a Product Manager is a person who is responsible for determining | |
what a product should be and how it should evolve. This is a design role |
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
#! /usr/bin/env python | |
import hashlib | |
import urllib | |
import time | |
try: | |
import simplejson as json | |
except ImportError: | |
import json | |
from pprint import pprint |
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
# nclzz zsh-theme v0.0.1 | |
ZSH_THEME_GIT_PROMPT_PREFIX="⥱ $FG[075]" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%} ✕ " | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%} ✓ " | |
PROMPT=' | |
$reset_color⎧ %2~ $(git_prompt_info) | |
$reset_color⎩ ' |
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
/*** Place this before Map initialization ***/ | |
L.Map = L.Map.extend({ | |
openPopup: function(popup) { | |
// this.closePopup(); // just comment this | |
this._popup = popup; | |
return this.addLayer(popup).fire('popupopen', { | |
popup: this._popup | |
}); | |
} |
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 make a new file in your ‘config/initializers’ directory called something like ‘log_formatting.rb’ and paste into it the following code. | |
# Restart your app, and voila: pretty logs again! | |
class ActiveSupport::BufferedLogger | |
def formatter=(formatter) | |
@log.formatter = formatter | |
end | |
end | |
class Formatter |
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
python -m SimpleHTTPServer 8888 &. | |
python -m http.server |
NewerOlder