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
output = this_is_camel_case | |
SPLIT words at upcase ignoring first upcase | |
at split add _ | |
Join them | |
downcase entire string | |
input = 'ThisIsCamelCass' |
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
// shorthand for $(document).ready(); | |
$(function(){ | |
$("form").on('submit', function(e){ | |
e.preventDefault(); | |
var email_input = $("form").find("input[name=email]").val() | |
var password_input = $("form").find("input[name=password]").val() | |
if (validateEmail(email_input)){ |
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> | |
<head> | |
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css"> | |
<link rel="stylesheet" href="main.css"> | |
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800"> | |
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900"> | |
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css"> | |
</head> |
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
#CREATE CUSTOMER | |
curl https://api.balancedpayments.com/v1/customers \ | |
> -u ak-test-PE0kAimMqYDGzebPIHUzYwuLUM86yCxP: \ | |
> -X POST | |
OUTPUT: "/v1/customers/CU6kyXpjGEDyJXYbSrkTijLc" | |
#CREATE BANK ACOUNT | |
curl https://api.balancedpayments.com/v1/bank_accounts \ | |
-u ak-test-PE0kAimMqYDGzebPIHUzYwuLUM86yCxP: \ |
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
marketplace.create_card(:card_number => '5105105105105100', | |
:expiration_month => '1', | |
:expiration_year => '2020', | |
:security_code => '123' | |
).save |
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
[submodule "clients/rev0/python"] | |
path = clients/rev0/python | |
url = https://github.com/balanced/balanced-python.git | |
[submodule "clients/rev0/ruby"] | |
path = clients/rev0/ruby | |
url = https://github.com/balanced/balanced-ruby.git | |
[submodule "clients/rev1/ruby"] | |
path = clients/rev1/ruby | |
url = https://github.com/balanced/balanced-ruby.git | |
branch = 1.1.0 |
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
[core] | |
repositoryformatversion = 0 | |
filemode = true | |
bare = false | |
logallrefupdates = true | |
ignorecase = true | |
precomposeunicode = false | |
[remote "origin"] | |
url = https://github.com/balanced/balanced-docs.git | |
fetch = +refs/heads/*:refs/remotes/origin/* |
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
REV=rev1 REV_NUM=1.1 make build-revisions | |
rm -rf site/1.1 | |
make[1]: Circular site/static/js/compiled.js <- site/static/js/compiled.js dependency dropped. | |
BALANCED_REV=rev1 sphinx-build -b dirhtml -c api/rev1 api/rev1 api/rev1/html | |
Traceback (most recent call last): | |
File "/usr/local/bin/sphinx-build", line 5, in <module> | |
from pkg_resources import load_entry_point | |
File "/Users/ryan/.venvburrito/lib/python/distribute-0.6.35-py2.7.egg/pkg_resources.py", line 2805, in <module> | |
working_set.require(__requires__) | |
File "/Users/ryan/.venvburrito/lib/python/distribute-0.6.35-py2.7.egg/pkg_resources.py", line 696, in require |
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
Traceback (most recent call last): | |
File "scripts/lang-scenario.py", line 709, in <module> | |
main() | |
File "scripts/lang-scenario.py", line 704, in main | |
blocks, response = scenario() | |
File "scripts/lang-scenario.py", line 443, in __call__ | |
block = self.block(lang) | |
File "scripts/lang-scenario.py", line 462, in block | |
block = self._render(template_path) | |
File "scripts/lang-scenario.py", line 494, in _render |
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
1) create customer | |
curl https://api.balancedpayments.com/v1/customers \ | |
-u KEY_SECRET: \ | |
-X POST | |
2) Add credit card | |
curl https://api.balancedpayments.com/v1/marketplaces/MARKETPLACE_URI/cards \ | |
-u KEY_SECRET: \ | |
-d "expiration_month=12" \ | |
-d "security_code=123" \ |
OlderNewer