Skip to content

Instantly share code, notes, and snippets.

View tarunbhardwaj's full-sized avatar

Tarun Bhardwaj tarunbhardwaj

View GitHub Profile
@tarunbhardwaj
tarunbhardwaj / UPS-Respose.xml
Created December 11, 2014 08:48
The Response from UPS address validation
<AddressValidationResponse>
<Response>
<TransactionReference>
<CustomerContext>unspecified</CustomerContext>
</TransactionReference>
<ResponseStatusCode>1</ResponseStatusCode>
<ResponseStatusDescription>Success</ResponseStatusDescription>
</Response>
<AddressValidationResult>
<Rank>1</Rank>
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
@tarunbhardwaj
tarunbhardwaj / bulk-permission.js
Created August 28, 2015 14:07
A JS hack to grant permission of PyPi ( https://pypi.python.org/ ) packages in bulk :)
// For https://pypi.python.org/pypi
// Inject jquery before following script
// My quick jquery injector:
// javascript:var b=document.body;if(b){void(z=document.createElement('script'));void(z.type='text/javascript');void(z.src='https://code.jquery.com/jquery-1.10.2.min.js');void(b.appendChild(z));}else{}
var links = $("#document-navigation ul a");
var test = links.each(function(index, link){
var package = $(link).html();