Skip to content

Instantly share code, notes, and snippets.

View dheerajbhaskar's full-sized avatar

Dheeraj Bhaskar dheerajbhaskar

View GitHub Profile
@dheerajbhaskar
dheerajbhaskar / xampp_php7_xdebug.md
Created February 5, 2022 10:20 — forked from odan/xampp_php7_xdebug.md
Installing Xdebug for XAMPP
@dheerajbhaskar
dheerajbhaskar / linkedin auto-inviter
Last active September 25, 2017 00:09 — forked from maksii/linkedin auto-inviter
Script to automatically add connections from "People You May Know" page
var inviter = {} || inviter;
inviter.userList = [];
inviter.className = 'button-secondary-small';
inviter.refresh = function () {
window.scrollTo(0, document.body.scrollHeight);
window.scrollTo(document.body.scrollHeight, 0);
window.scrollTo(0, document.body.scrollHeight);
};
@dheerajbhaskar
dheerajbhaskar / enableHTML5AppCache.java
Created October 31, 2015 15:54 — forked from jaydeepw/enableHTML5AppCache.java
Enabling HTML5 AppCache in Android Webview programatically.
private void enableHTML5AppCache() {
webView.getSettings().setDomStorageEnabled(true);
// Set cache size to 8 mb by default. should be more than enough
webView.getSettings().setAppCacheMaxSize(1024*1024*8);
// This next one is crazy. It's the DEFAULT location for your app's cache
// But it didn't work for me without this line
webView.getSettings().setAppCachePath("/data/data/"+ getPackageName() +"/cache");