This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include "order-desk-api-client.php"; | |
$executionStartTime = microtime(true); | |
register_shutdown_function("unlock"); | |
$od = new OrderDesk($storeid, $apikey); | |
$storeid = $_SERVER['HTTP_ORDERDESK_STORE_ID']; | |
$apikey = $_SERVER['HTTP_ORDERDESK_API_KEY']; | |
$url = substr($_SERVER['PATH_INFO'],1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*********** | |
* CURRENTLY NON-FUNCTIONAL - NEEDING TO MAKE SOME SERVER CHANGES | |
* | |
* I've never written an API before, so I'm sure that my extension class is | |
* riddled with issues and doesn't conform to proper RESTful standards. | |
* Nevertheless, I wanted to provide some additional API calls to the Order | |
* Desk API client. | |
* | |
* In addition, my API endpoint provides a queue for calls that |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>{{ store_name }} CN22</title> | |
<link rel="stylesheet" href="{{ base_url }}/css/receipt.css"> | |
<style> | |
h1, | |
h2, | |
p { | |
font-family: Arial, serif; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Order Desk | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author summersab | |
// @include https://app.orderdesk.me* | |
// @grant none | |
// @run-at document-body | |
// @updateURL https://cdn.rawgit.com/summersab/9f08f1bacbece054ab547943bea39c06/raw/91f0375de7c6fb51020d9344feacd8c6ed58a933/order-desk-userscript.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name FoxyCart | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @include https://admin.foxycart.com* | |
// @grant none | |
// ==/UserScript== | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require 'vendor/autoload.php'; | |
$UPS = array( | |
"New Year's Day", | |
"New Year's Day observed", | |
"Memorial Day", | |
"Independence Day observed", | |
"Independence Day", | |
"Labour Day", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Run this through a bookmarklet generator to hex-encode the script, bookmark it, and you're off to the races! | |
* This script adds in sufficient delays to help prevent Facebook from banning you from using this feature, but there IS a | |
* daily limit. The script will stop when the limit is reached and the warning box pops up. Wait 24 hours before trying again. | |
* It also adds a duration counter to the top of the like browser to let you know how much longer the operation will take. | |
* If FB updates their class names, this bookmarklet may break, and I'll do my best to update this Gist, but no promises. | |
*/ | |
var i = 0; | |
if (document.querySelectorAll('#reaction_profile_browser').length == 0) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Gmail Fix | |
// @namespace http://tampermonkey.net/ | |
// @version 1.1.1 | |
// @description Fix Gmail's broken reply-to; make sure to set "Run only in top frame" to "Yes" in settings | |
// @author summersab | |
// @match https://mail.google.com/* | |
// @grant none | |
// ==/UserScript== |
OlderNewer