Skip to content

Instantly share code, notes, and snippets.

@mangeshpawar
mangeshpawar / table_sorter.js
Created April 7, 2016 15:26
Sort column wise table rows
<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="https://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
</head>
<body>
<style>
td {
var ts = ts || {};
var sortStatus = {};
ts.getValue = function(tdElem){
var inputElemLst = $(tdElem).find("input:not([type='hidden']):first");
return inputElemLst.length ? inputElemLst.val() : $(tdElem).text();
};
ts.handleSortClick = function(event){
@mangeshpawar
mangeshpawar / apex_basix_authentication.cls
Last active April 28, 2016 15:26 — forked from swapnilshrikhande/apex_basix_authentication.cls
AuthCallout basic authentication salesforce
public class AuthCallout {
public void basicAuthCallout(){
HttpRequest req = new HttpRequest();
req.setEndpoint('http://www.yahoo.com');
req.setMethod('GET');
// Specify the required user name and password to access the endpoint
// As well as the header and header information