Skip to content

Instantly share code, notes, and snippets.

View tarikul05's full-sized avatar

Tarikul Islam tarikul05

View GitHub Profile
@tarikul05
tarikul05 / reivo-employee.json
Last active July 6, 2018 06:40
sample JSON
{
"admin":[
{
"id": 100,
"name": "Keita Ashihara ",
"position": "President",
"image": "https://ca.slack-edge.com/T02KTANCU-U02KTANCW-63999c5e6bfc-72"
},
{
"id": 101,
@tarikul05
tarikul05 / querystring.js
Last active December 13, 2017 15:56
Change current page query string with jquery.
function getQueryVariable(url, variable) {
var queryString = url.substring(1);
var index = queryString.indexOf("?");
var vars = queryString.substr(index+1).split('&');
for (var i=0; i<vars.length; i++) {
var pair = vars[i].split('=');
if (pair[0] == variable) {
return pair[1];
}
}