Skip to content

Instantly share code, notes, and snippets.

View CanRau's full-sized avatar
🔄
kondukting ⛏︎

Can Rau CanRau

🔄
kondukting ⛏︎
View GitHub Profile
@CanRau
CanRau / README.md
Created October 16, 2018 04:27 — forked from mw-ferretti/README.md
Paypal button on markdown github

###Steps:

<!-- Sample of code generated --> 
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="RGQ8NSYPA59FL">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/pt_BR/i/scr/pixel.gif" width="1" height="1">
@CanRau
CanRau / wrapper.js
Created November 6, 2018 04:41 — forked from jimfb/wrapper.js
class MyWrapper {
return React.Children.only(this.props.children);
}
class MyLibraryComponent {
render() {
return <div><span><whatever><MyWrapper ref=...>{this.props.statelessComponentThatIWantToReference}</MyWrapper></whatever></span></div>;
}
@CanRau
CanRau / README.md
Created November 26, 2018 18:41 — forked from kentcdodds/README.md
Rendering a function with React

Rendering a function with React

No, this isn't about render props

I'm going to clean this up and publish it in my newsletter next week!

Context

So react-i18n (not the npm one... one we made at PayPal internally) has this

@CanRau
CanRau / 1_stripe-schema.md
Created February 16, 2023 01:25 — forked from FGRibreau/1_stripe-schema.md
Stripe database schema (extracted from their sigma product) as of 2019-10-09
jqn -r markdown-table 'map(x => "## " + x.name + "\n\n" + markdownTable(x.columns.map(y => [y.name, y.type]))  ) | join("\n\n")' < /tmp/stripe.json

accounts

id varchar
business_name varchar
business_url varchar