Skip to content

Instantly share code, notes, and snippets.

View evo42's full-sized avatar

Rene Kapusta evo42

View GitHub Profile
@evo42
evo42 / woocommerce-shipment-tracking-rest-api-doc.md
Created January 16, 2019 13:41 — forked from gedex/woocommerce-shipment-tracking-rest-api-doc.md
WooCommerce Shipment Tracking REST API introduced in 1.5.0

Shipment Tracking REST API

The shipment tracking REST API allows you to create, view, and delete individual shipment tracking. The endpoint is /wp-json/wc/v1/orders/shipment-trackings.

Shipment Tracking Properties

Attribute Type Description
tracking_id string Unique identifier for shipment tracking read-only
tracking_number string Tracking number required
@evo42
evo42 / easybank.class.php
Created April 3, 2018 20:06 — forked from geek-at/easybank.class.php
php wrapper for read only access to easybank.at
<?php
/*
* EasyBank.at client lib
* Reverse engineered by looking at the API calls of the app
*
* Example usage:
*
* <?php
* include_once('easybank.class.php');
@evo42
evo42 / pnginator.rb
Created August 7, 2012 09:51 — forked from gasman/pnginator.rb
pnginator: pack Javascript into a self-extracting PNG
#!/usr/bin/env ruby -w
# pnginator.rb: pack a .js file into a PNG image with an HTML payload;
# when saved with an .html extension and opened in a browser, the HTML extracts and executes
# the javascript.
# Usage: ruby pnginator.rb input.js output.png.html
# By Gasman <http://matt.west.co.tt/>
# from an original idea by Daeken: http://daeken.com/superpacking-js-demos
@evo42
evo42 / observer.md
Created August 3, 2012 10:29 — forked from lloyd/observer.md
BrowserID Observer API

BrowserID "Observer" API

The BrowserID JavaScript API can be used by web pages to implement BrowserID authentication. Implementing BrowserID support consists of:

  1. registering callback functions that will be invoked when the user logs in or out via navigator.id.watch()
  2. invoking navigator.id.request() when the user clicks a login button on your site.
  3. invoking navigator.id.logout() when the user clicks a logout button on your site.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Responsive Design Testing</title>
<style>
body { margin: 20px; font-family: sans-serif; overflow-x: scroll; }
.wrapper { width: 6000px; }
.frame { float: left; }
h2 { margin: 0 0 5px 0; }
@evo42
evo42 / gist:2575073
Created May 2, 2012 08:29 — forked from hahmed/gist:1167789
Aloha Text colour plugin sample...
/**
* Text Color Plugin
*/
GENTICS.Aloha.TextColor = new GENTICS.Aloha.Plugin('TextColor');
/**
* Configure the available languages
*/
GENTICS.Aloha.TextColor.languages = ['en', 'ru'];
@evo42
evo42 / jQueryUI-sortable.html
Created February 15, 2012 13:35 — forked from draftkraft/Aloha-Editor-jQueryUI-sortable
jQuery Ui sortable demo with Aloha Editor
<!doctype html>
<head>
<!-- Example JavaScript files -->
<script type="text/javascript" src="http://cdn.aloha-editor.org/latest/lib/vendor/jquery-1.7.2.js"></script>
<script type="text/javascript" src="http://cdn.aloha-editor.org/latest/lib/require.js"></script>
<script>
var Aloha = {};
Aloha.settings = {
jQuery: $
@evo42
evo42 / htaccess
Created December 17, 2011 10:24 — forked from dave1010/htaccess
HTTP Status Cats Apache (htaccess) config
# HTTP Status Cats
# Apache (htaccess) config created by @dave1010
# Licensed CC BY 2.0
# Images CC BY 2.0, from GirlieMac's photostream:
# http://www.flickr.com/photos/girliemac/sets/72157628409467125/with/6508023065/
# Usage: copy save this file as .htaccess or add it to your httpd.conf
ErrorDocument 404 '<a href="http://www.flickr.com/photos/girliemac/6508022985/" title="404 - Not Found by GirlieMac, on Flickr"><img src="http://farm8.staticflickr.com/7172/6508022985_b22200ced0.jpg" width="500" height="400" alt="404 - Not Found"></a>'