I hereby claim:
- I am aolin480 on github.
- I am olie480 (https://keybase.io/olie480) on keybase.
- I have a public key ASB_bcWPmZUGxCK6VinVcrPeLehjMRYmWK_WEc0Rjh_lrwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| /* | |
| :: Add the following code to the bottom of /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js | |
| :: styles seem to only apply if stylesheet is hosted from github. Tried using a https domain but no dice | |
| ----------------------------- | |
| document.addEventListener('DOMContentLoaded', function() { | |
| $.ajax({ | |
| url: 'https://gist.githubusercontent.com/aolin480/759a15986416d7d019aa339c7ff70331/raw/9a41d3bc053f2fa7b9932dffaa85e4828d691cf5/black.css', | |
| success: function(css) { | |
| $("<style></style>").appendTo('head').html(css); |
| <?php | |
| $timestamp = '1517341140000'; | |
| $post_arr = [ | |
| 'post_title' => 'Meh title', | |
| 'post_type' => 'post', //could be any custom post type | |
| 'post_content' => 'Meh body', | |
| 'post_category' => ['meh category'], | |
| 'post_status' => 'publish' |
| <?php | |
| /** | |
| * Custom Wordpress Query Page - Custom Permalinks | |
| * @author Aaron Olin | |
| */ | |
| if (! class_exists('CustomEndpoint')) { | |
| class CustomEndpoint { | |
| protected static $_instance = null; | |
| protected $templateFile; | |
| function multilingual_post_creation(){ | |
| global $sitepress; | |
| /** | |
| /** | |
| Creating first post in english | |
| */ | |
| //arguments for post creation | |
| $def_args = array( |
| <?php | |
| add_action('init', 'add_api_endpoint'); | |
| function add_api_endpoint() | |
| { | |
| /** | |
| * Set up the endpoint URL my-api | |
| * argument setup | |
| * /my-api/v1/ | |
| * |_ _my_api_key / _api_request / |
| <?php | |
| /* | |
| * Plugin Name: Paulund WP List Table Example | |
| * Description: An example of how to use the WP_List_Table class to display data in your WordPress Admin area | |
| * Plugin URI: http://www.paulund.co.uk | |
| * Author: Paul Underwood | |
| * Author URI: http://www.paulund.co.uk | |
| * Version: 1.0 | |
| * License: GPL2 | |
| */ |
| <?php | |
| /* | |
| NOT TOTALLY FUNCTIONAL - NOT TOTALLY FUNCTIONAL - NOT TOTALLY FUNCTIONAL - YOU MAY HAVE TO WORK IT INTO YOUR PROJECT DIFFERENTLY | |
| */ | |
| add_action('admin_init', function(){ | |
| if( isset( $_GET['di_export'] ) ) : | |
| // post id = 177 // Collision Center |
| <?php | |
| /* | |
| Instructions: | |
| 1) Save data when adding to cart | |
| When adding an item to your cart, use ld_woo_set_item_data. The best action for this to occur is | |
| "woocommerce_add_to_cart". The first parameter for this action contains the "cart_item_key", | |
| which is required for the function. |
| <?php | |
| /* | |
| Cleaner Code | |
| */ | |
| // a psudeo array of images for testing | |
| $items = array( | |
| 'https://s-media-cache-ak0.pinimg.com/236x/77/85/a1/7785a1b13a780842309579574715c35c.jpg', | |
| 'https://s-media-cache-ak0.pinimg.com/236x/77/85/a1/7785a1b13a780842309579574715c35c.jpg', | |
| 'https://s-media-cache-ak0.pinimg.com/236x/77/85/a1/7785a1b13a780842309579574715c35c.jpg', | |
| 'https://s-media-cache-ak0.pinimg.com/236x/77/85/a1/7785a1b13a780842309579574715c35c.jpg', |