Skip to content

Instantly share code, notes, and snippets.

View jacktator's full-sized avatar
🏠
Working from home

Jack Song jacktator

🏠
Working from home
View GitHub Profile
@ajayghaghretiya
ajayghaghretiya / functions.php
Created December 28, 2017 12:57
Do Payment via WooCommerce REST API for Stripe
add_action( 'rest_api_init', 'custom_api_endpoints' );
function custom_api_endpoints() {
/**
* Handle Payment Method request.
*/
register_rest_route( 'wc/v2', 'payment', array(
'methods' => 'POST',
'callback' => 'custom_payment_endpoint_handler',
@fzrhrs
fzrhrs / Setup for Ruby on Rails development.md
Last active April 16, 2021 10:52
How to Install Xcode, Homebrew, Git, RVM, Ruby, Rails, Heroku Toolbelt and Postgres (Yosemite)

###Step 1: Install XCode

Check if the full Xcode package is already installed:

$ xcode-select -p

If you see:

/Applications/Xcode.app/Contents/Developer