Skip to content

Instantly share code, notes, and snippets.

View wasim117's full-sized avatar
🏠
Working from home

Wasim Shaikh wasim117

🏠
Working from home
View GitHub Profile
[{"id":429602,"type":"newdeal","dealid":432717,"title":"Boat Type C to Lighting Cable for 27W Fast Charging | 480 Mbps Data Transfer | 1.2 m (3.9 ft) Perfect Cable Length | Premium Nylon Braiding | Durable & Tangle-Free | with Silicon Tie (Carbon Black)","store":"amazon","pid":"amazon_B0G4MG6SZ9","original_price":999,"deal_price":229,"discount_percent":77,"url":"https://amazon.in/dp/B0G4MG6SZ9/?tag=thuttu-21&th=1&psc=1","raw_url":"https://amazon.in/dp/B0G4MG6SZ9/","image_url":"https://m.media-amazon.com/images/I/51llyiz422L._SX425_.jpg","details":null,"coupons":[],"ndeals":1,"nlikes":0,"ncomments":0,"nviews":0,"status":"new","uname":"Dood","created":"2026-07-07 23:28:59","updated":"2026-07-07 23:28:59"},{"id":429601,"type":"newdeal","dealid":432716,"title":"HP OMEN Gaming Monitor, 23.8 inch(60.5 cm) FHD, 165Hz, 3-Sided Borderless, 300 nits, Pivot Rotation, Anti-Glare, Height Adjustable, Eye Ease (Eyesafe® Certified), 780F0AA (Black)","store":"amazon","pid":"amazon_B0CBPDLCSP","original_price":22400,"deal_pric
[{"id":429602,"type":"newdeal","dealid":432717,"title":"Boat Type C to Lighting Cable for 27W Fast Charging | 480 Mbps Data Transfer | 1.2 m (3.9 ft) Perfect Cable Length | Premium Nylon Braiding | Durable & Tangle-Free | with Silicon Tie (Carbon Black)","store":"amazon","pid":"amazon_B0G4MG6SZ9","original_price":999,"deal_price":229,"discount_percent":77,"url":"https://amazon.in/dp/B0G4MG6SZ9/?tag=thuttu-21&th=1&psc=1","raw_url":"https://amazon.in/dp/B0G4MG6SZ9/","image_url":"https://m.media-amazon.com/images/I/51llyiz422L._SX425_.jpg","details":null,"coupons":[],"ndeals":1,"nlikes":0,"ncomments":0,"nviews":0,"status":"new","uname":"Dood","created":"2026-07-07 23:28:59","updated":"2026-07-07 23:28:59"},{"id":429601,"type":"newdeal","dealid":432716,"title":"HP OMEN Gaming Monitor, 23.8 inch(60.5 cm) FHD, 165Hz, 3-Sided Borderless, 300 nits, Pivot Rotation, Anti-Glare, Height Adjustable, Eye Ease (Eyesafe® Certified), 780F0AA (Black)","store":"amazon","pid":"amazon_B0CBPDLCSP","original_price":22400,"deal_pric
@wasim117
wasim117 / init_custom.ftl
Created September 21, 2021 19:20
How to add Custom setting in Liferay Theme
<#--
This file allows you to override and define new FreeMarker variables.
-->
<#assign
show_header = getterUtil.getBoolean(themeDisplay.getThemeSetting("show-header"))
/>
@wasim117
wasim117 / init.ftl
Created September 21, 2021 18:42
Liferay Theme Init Template (FTL)
<#-- ---------- Common variables ---------- -->
<#assign
theme_display = themeDisplay
portlet_display = portletDisplay
layoutSet = layout.getLayoutSet()
theme_timestamp = themeDisplay.getTheme().getTimestamp()
theme_settings = themeDisplay.getThemeSettings()
body{font-size:16px;}
alert("js load from gist");
<div class="container">
<div class="row">
<div class="col-sm-4">
<div class="card">
<div class="card-body">
<h5 class="card-title">Special title 1</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
@wasim117
wasim117 / os_browser_detection.js
Last active August 29, 2015 14:07
Get Operating system and browser using JavaScript
var os = (function() {
var ua = navigator.userAgent.toLowerCase();
return {
isWin : /windows/.test(ua),
ismacOs : /mac os/.test(ua)
};
}());
var browser = (function() {
var ua = navigator.userAgent.toLowerCase();
@wasim117
wasim117 / 0_reuse_code.js
Last active August 29, 2015 14:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@wasim117
wasim117 / meetupApiTest
Created August 25, 2014 07:04
meetupAPITest
<!DOCTYPE html>
<html>
<head>
<title>Meetup Groups by Member ID</title>
<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$.getJSON("https://api.meetup.com/2/groups?callback=?&sign=true&member_id=8377069&page=20&api&key=4d6354b6970177437494d3e6a41414b&only=name,link",
function (data) {
var htmlString = "";