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
import os, sys, json | |
from difflib import SequenceMatcher | |
from operator import itemgetter, attrgetter | |
path1 = sys.argv[1] | |
path2 = sys.argv[2] | |
ordered_differences_list=[] | |
if not (path1 and path2 ) : |
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
brightcove.isSupportedHTMLDevice=function(pUAString){ | |
var types=["iPad","iPhone","iPod","android","Silk","Mozilla\\/\\d+\\.\\d+\\(Mobile"]; | |
var numTypes=types.length; | |
var uaString=pUAString||brightcove.userAgent; | |
for(var i=0; | |
i<numTypes; | |
i++){ | |
if(uaString.match(new RegExp(types[i],"i"))){ | |
return true; | |
} |
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
brightcove.isSupportedHTMLDevice=function(pUAString){ | |
if(typeof window.HTMLVideoElement !== 'undefined'){ | |
return true; | |
} | |
return false; | |
} |
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
/* adapt as required and paste into console to mass-modify bugs in a search result */ | |
/* naturally, this script will take a while to run... */ | |
(function(){ | |
var elms = document.getElementsByClassName('bz_id_column') | |
var i=0; | |
iframe = document.createElement('iframe'); | |
document.body.appendChild(iframe); | |
iframe.setAttribute('style', 'position:fixed; bottom:0;width:100%;height:200px') | |
iframe.onload = function(){ | |
var submitted = false; for(var j=0; j<iframe.contentDocument.links.length; j++)if((iframe.contentDocument.links[j].getAttribute('onclick')||'').indexOf('toggleBugmailRecipients')>-1)submitted=true; |
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
$.fn.hidpi=function(){ | |
var $target=this,devicePixelRatio=$.devicePixelRatio(),testImage=new Image(); | |
if(devicePixelRatio>1&&testImage.srcset===undefined){ | |
$target.find('img').each(function(){ | |
var $img=$(this),srcset=$img.attr('srcset'),match; | |
if(typeof srcset==='string'&&srcset!==''){ | |
match=$.matchSrcSet(devicePixelRatio,srcset); | |
if(match!==null){ | |
$img.attr('src',match); | |
} |
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 | |
if(isset($_GET['pp_init'])){ | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, "https://api-3t.sandbox.paypal.com/nvp"); | |
$post = "METHOD=SetExpressCheckout&VERSION=93&USER=sdk-three_api1.sdk.com&PWD=QFZCWN5HZM8VBG7Q&SIGNATURE=A-IzJhZZjhg29XQ2qnhapuwxIDzyAZQ92FRP5dqBzVesOkzbdUONzmOU&PAYMENTREQUEST_0_AMT=5.00&PAYMENTREQUEST_0_CURRENCYCODE=USD&PAYMENTREQUEST_0_PAYMENTACTION=Sale&RETURNURL=http://www.example.org&CANCELURL=http://www.example.org"; | |
curl_setopt($ch, CURLOPT_POST, true); | |
curl_setopt($ch, CURLOPT_POSTFIELDS, $post); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
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
(function(){ | |
function removeAttr(attr){ | |
var xpElms = document.evaluate('//*[@'+attr+']', document.documentElement, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE , null ); | |
var elm; | |
for(var i=0; elm = xpElms.snapshotItem(i); i++){ | |
elm.removeAttribute(attr) | |
} | |
} | |
removeAttr('href'); | |
removeAttr('src'); |
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
http://www.in.com/videos/ | |
http://www.veoh.com/ | |
http://screen.yahoo.com/ | |
http://blip.tv/ | |
http://www.metacafe.com/ | |
http://www.ovguide.com/ | |
http://www.nick.com/videos/ | |
http://www.bharatmovies.com/hindi/songs/bollywood-video-songs.htm | |
http://www.biography.com/videos | |
http://www.ndtv.com/video/ |
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
// post serialized no-script clone back to debugger | |
if(true){ // this is just to be able to toggle the dumping off easily | |
(function noscriptDump(){ | |
var clone = document.documentElement.cloneNode(true); | |
var elms = clone.getElementsByTagName('script') | |
while(elms.length){ | |
elms[elms.length-1].parentNode.removeChild(elms[elms.length-1]); | |
} | |
var html = clone.outerHTML; | |
var x = new XMLHttpRequest(); |
OlderNewer