Skip to content

Instantly share code, notes, and snippets.

View tiagocpontesp's full-sized avatar

Tiago tiagocpontesp

  • Lisbon and not
View GitHub Profile
@tiagocpontesp
tiagocpontesp / gist:9979416
Created April 4, 2014 17:40
readable variety
# wget https://raw.githubusercontent.com/variety/variety/master/variety.js
# i saved the json lines in file json_per_line, then:
# npm install JSONStream
# coffee this_file
# (sudo npm install -g coffee-script)
PERCENT = 50
console.log "\nExistent keys with at least present in at least #{PERCENT}% of docs:\n\n"
var
request = require('superagent'),
nock = require('nock')
;
nock.recorder.rec();
nock.disableNetConnect();
var scope1 = nock('http://www.test.com').get('/api').reply(200);
request.get('http://www.test.com/api').end(function(err,res){
$(document).ready(function(){
if(!$.cookie) {
/*jshint eqnull:true */
/*!
* jQuery Cookie Plugin v1.1
* https://github.com/carhartl/jquery-cookie
*
* Copyright 2011, Klaus Hartl
* Dual licensed under the MIT or GPL Version 2 licenses.
#<Location />
# Insert filter
SetOutputFilter DEFLATE
# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
var js= function(){};
$nzshpcrt_gateways[$num]['name'] = 'QuickPay';
$nzshpcrt_gateways[$num]['internalname'] = 'QuickPay';
$nzshpcrt_gateways[$num]['function'] = 'nzshpcrt_quickpay_gateway';
$nzshpcrt_gateways[$num]['form'] = "nzshpcrt_quickpay_form";
$nzshpcrt_gateways[$num]['submit_function'] = "nzshpcrt_quickpay_form_submit";
// Set default values.
if(!get_option('quickpay_language') <> '')
update_option('quickpay_language', 'en');
<?php
/*
WP E-commerce Merchant Gateway for QuickPay.dk
Version 1.1
For help and support, please go to http://www.quickpay.dk
Changelog:
12-12-2011 by UF from http://wpkonsulent.dk
Added rounding for odd ørebeløb, since WPEC doesn't do it.