Skip to content

Instantly share code, notes, and snippets.

View scissorsneedfoodtoo's full-sized avatar

Kristofer Koishigawa scissorsneedfoodtoo

View GitHub Profile
@scissorsneedfoodtoo
scissorsneedfoodtoo / AsyncStripeProvider.js
Created December 8, 2020 14:28 — forked from mrcoles/AsyncStripeProvider.js
A react provider abstraction for loading the stripe.js file asynchronously to use with Stripe Elements
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { StripeProvider } from 'react-stripe-elements';
export default class AsyncStripeProvider extends Component {
static propTypes = {
apiKey: PropTypes.string.isRequired
};
// constructor
@scissorsneedfoodtoo
scissorsneedfoodtoo / pr.md
Created January 23, 2019 23:43 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@scissorsneedfoodtoo
scissorsneedfoodtoo / disable middle click paste in linux.md
Created January 17, 2019 11:05 — forked from sam0x17/disable middle click paste in linux.md
disable middle-click paste in linux without disabling middle scroll

Disable middle-click paste in Linux

Install packages:

sudo apt-get install xbindkeys xsel xdotool

Create xbindkey configuration file:

# ~/.xbindkeysrc