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
# 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" |
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
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){ |
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
$(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. |
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
#<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 |
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
var js= function(){}; |
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
$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'); | |
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 | |
/* | |
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. |