Skip to content

Instantly share code, notes, and snippets.

@ajinasokan
ajinasokan / kitetickersample.html
Last active December 18, 2023 18:47
Kite Ticker Pure JS Example
<script src="ticker.js"></script>
<script>
var ticker = new KiteTicker({api_key: "api_key", access_token: "access_token"});
ticker.connect();
ticker.on("ticks", onTicks);
ticker.on("connect", subscribe);
function onTicks(ticks) {
@igrr
igrr / esp8266_pubsubclient.ino
Created January 6, 2015 23:44
PubSubClient sample for ESP8266 Arduino
#include <PubSubClient.h>
#include <ESP8266WiFi.h>
const char* ssid = ".................";
const char* password = "................";
char* topic = "esp8266_arduino_out";
char* server = "iot.eclipse.org";
@corsonr
corsonr / gist:8536668
Created January 21, 2014 09:01
WooCommerce - Removes all product types from product type dropdown select except "simple product"
add_filter( 'product_type_selector' , 'woo_custom_product_type_selector' );
/**
* Removes all product types from product type dropdown select
* except "simple product"
*
* @access public
* @since 1.0
* @return void
*/
@corsonr
corsonr / gist:7020691
Created October 17, 2013 07:39
Mastering WooCommerce Products Custom Fields 13
add_action( 'woocommerce_product_write_panel_tabs', 'woo_add_custom_admin_product_tab' );
function woo_add_custom_admin_product_tab() {
?>
<li class="custom_tab"><a href="#custom_tab_data"><?php _e('My Custom Tab', 'woocommerce'); ?></a></li>
<?php
}