Skip to content

Instantly share code, notes, and snippets.

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

Leon Francis Shelhamer twoelevenjay

🏠
Working from home
View GitHub Profile
@twoelevenjay
twoelevenjay / watch.rb
Created October 22, 2017 02:40 — forked from JamieMason/watch.rb
Watch a folder for changes to files, then reload Chrome
#!/usr/bin/env ruby
require 'tempfile'
require 'fileutils'
# Signals
trap("SIGINT") { exit }
# Setup
TARGET_FOLDER = ARGV[0]
TARGET_URL = ARGV[1]
@twoelevenjay
twoelevenjay / gist:e8a63c3b12ee32521dee
Last active October 31, 2015 09:44 — forked from dasher/gist:4391953
Litecoin Supernodes
addnode=83.169.3.31
addnode=82.226.138.81
addnode=93.62.173.122
addnode=94.23.253.228
addnode=91.121.174.223
addnode=188.120.246.137
addnode=12.23.127.175
addnode=99.243.145.178
addnode=79.142.22.72
addnode=198.23.159.10
@twoelevenjay
twoelevenjay / gist:8f83b7db58696e1181b4
Created October 3, 2015 04:49 — forked from corsonr/gist:9152652
WooCommerce : add custom fields to product variations
<?php
//Display Fields
add_action( 'woocommerce_product_after_variable_attributes', 'variable_fields', 10, 3 );
//JS to add fields for new variations
add_action( 'woocommerce_product_after_variable_attributes_js', 'variable_fields_js' );
//Save variation fields
add_action( 'woocommerce_process_product_meta_variable', 'save_variable_fields', 10, 1 );
/**