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
#! /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 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 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 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 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 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 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 |
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
@mixin background-image-retina($file, $type, $width, $height) { | |
background-image: url($file + '.' + $type); | |
@media (-webkit-min-device-pixel-ratio: 2), (-moz-min-device-pixel-ratio: 2) { | |
& { | |
background-image: url($file + '@2x.' + $type); | |
-webkit-background-size: $width $height; | |
} | |
} | |
} |
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
<!DOCTYPE html> | |
<html lang="it"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="x-ua-compatible" content="ie=edge, chrome=1" /> | |
<title>untitled</title> | |
<link rel="stylesheet" href="" /> | |
</head> | |
<body> | |
<script src=""></script> |
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
# 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 = "" |
NewerOlder