I hereby claim:
- I am calvincorreli on github.
- I am calvincorreli (https://keybase.io/calvincorreli) on keybase.
- I have a public key ASBnKrZ3pSonmmTeqYIHewYlHVvHsH7at2ia7ujr3Af2hwo
To claim this, I am signing this object:
| def estimate_fee(cents, cardtype) | |
| case cardtype.to_s.downcase | |
| when /dankort/ | |
| # Dankort: | |
| # http://www.pbs.dk/da/produkter/dankort/Documents/DK_Prisliste_Dankort_eDankort_DK.pdf | |
| # Transaction size Price | |
| # 0 - 50.00 DKK 0.70 DKK | |
| # 50.01 - 100.00 DKK 1.10 DKK | |
| # > 100.01 1.45 DKK + 0.1% | |
| # Using this: 1.45 DKK + 0.10% |
| OPTIONS https://spreedlycore.com/v1/gateways.xml => list supported gateways | |
| POST https://spreedlycore.com/v1/gateways.xml => add a gateway | |
| GET https://spreedlycore.com/v1/gateways.xml => list all added gateways | |
| POST https://spreedlycore.com/v1/gateways/token/purchase.xml => purchase - supply a payment method token also | |
| POST https://spreedlycore.com/v1/gateways/token/authorize.xml => authorize - supply a payment method token also | |
| POST https://spreedlycore.com/v1/payment_methods => Capture credit card from form - transparent redirect magic | |
| GET https://spreedlycore.com/v1/payment_methods.xml => list all retained credit cards | |
| POST https://spreedlycore.com/v1/payment_methods/token/retain.xml => Store credit card info | |
| POST https://spreedlycore.com/v1/payment_methods/token/redact.xml => Remove credit card info |
| OPTIONS https://spreedlycore.com/v1/gateways.xml => list supported gateways | |
| POST https://spreedlycore.com/v1/gateways.xml => add a gateway | |
| GET https://spreedlycore.com/v1/gateways.xml => list all added gateways | |
| PUT https://spreedlycore.com/v1/gateways/token.xml => Update gateway | |
| PUT https://spreedlycore.com/v1/gateways/token/redact.xml => Remove sensitive gateway data | |
| POST https://spreedlycore.com/v1/gateways/token/purchase.xml => purchase - supply a payment method token also | |
| POST https://spreedlycore.com/v1/gateways/token/authorize.xml => authorize - supply a payment method token also | |
| POST https://spreedlycore.com/v1/payment_methods => Capture credit card from form - transparent redirect magic | |
| GET https://spreedlycore.com/v1/payment_methods.xml => list all retained credit cards |
| class window.ZenPusher | |
| @pusher: null | |
| @channel: [] | |
| constructor: -> | |
| setupPusher: _.once -> | |
| @pusher = new Pusher($('body').data('pusher-key')) | |
| channel: (channel) -> |
| def render_to_string | |
| I18n.with_locale(locale) do | |
| Renderer.render( | |
| file: "purchase_mailer/invoice", | |
| layout: nil, | |
| assigns: { charge: self, purchase: purchase, product: product, account: account, payments: payments } | |
| ) | |
| end | |
| end |
| Billing::Application.configure do | |
| config.middleware.insert_before "ActionDispatch::ParamsParser", SendgridWebhookMiddleware | |
| end |
| #! /bin/zsh | |
| branch_name=${$(git symbolic-ref HEAD)#refs/heads/} | |
| function switch { | |
| echo "Switching to database.yml.branch.${1}" | |
| cp config/database.yml config/database.yml.branch.bak | |
| cp config/database.yml.branch.${1} config/database.yml | |
| } |
| cd ~/Library/LaunchAgents | |
| launchctl remove com.adobe.AAM.Scheduler-1.0 | |
| rm com.adobe.AAM.* | |
| pkill "AAM Updates" |
I hereby claim:
To claim this, I am signing this object:
I don't trust the lock via the app, so I keep the key in the front pocket of the suitcase, defeating the purpose of the lock. Why? What if the suitcase is dead becasue I forgot to charge it? Also, I've often experienced that the app doesn't connect with the suitcase, or takes a long time to connect. Then what? I don't have the patience to wait for that.
Right now: Suitcase has been charging overnight, is plugged in, I press the button behind the handle, nothing happens, the app is still searching for the app and can't connect. I can't risk this in a situation where I'm stuck at the airport. Maybe my suitcase is just broken?
Closing the suitcase is finicky. You have to close it at exactly the right angle for it to work.
Getting my 15" MacBook Pro down in the laptop holder is often problematic. The sides are too soft, I have to hold out one side while I put it down, or it catches one side and won't go in.
It cause problems in Copenhagen airport. They needed to call in a supervisor to make sure it