I hereby claim:
- I am abdulhannanali on github.
- I am computistic (https://keybase.io/computistic) on keybase.
- I have a public key ASDluo9mSP0chY4BMUs-7gIEDSS4OV8-gBuHUoTXO0V91wo
To claim this, I am signing this object:
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
<meta charset=utf-8 /> | |
<title>Chrome File API tester</title> | |
<script> | |
window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem; |
/** | |
* Creates a push controller and exposes a public interface to the readable's controller | |
* by exposing the controller to it's parent scope | |
* | |
* Hacky but neat trick in order to transform data | |
* without the usage of Event Emitters | |
*/ | |
function createPushReadable() { | |
let rController; |
I hereby claim:
To claim this, I am signing this object:
/* Checkbox Hack */ | |
body { | |
} | |
input[type=checkbox] { | |
position: absolute; | |
top: -9999px; | |
left: -9999px; | |
} |
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
console.log('This is going to be printed out in npx and that is going to be awesome'); | |
console.log('npx is an awesome utility that comes preinstalled with `npx` yayyyyy!'); |
// Display a Information about ServiceWorker Installation being Completed. | |
// An alternative and more battle tested way to do the same thing is found on Google I/O 2016 PWA (IOWA) | |
// https://github.com/GoogleChrome/ioweb2016/blob/8cfa27261f9d07fe8a5bb7d228bd3f35dfc9a91e/app/scripts/helper/service-worker-registration.js#L34-L46 | |
/// One way to register the Caching complete event for the service workers | |
/// I am using this in my application and this seems to be working | |
if ('serviceWorker' in navigator) { | |
const initialController = navigator.serviceWorker.controller; | |
navigator.serviceWorker.register('./serviceWorker.js').then(registration => { | |
if (registration.installing) { |
const Pixel = require('./pixel-it'); | |
// Contains all the pixels within a list | |
const pixelList = [] | |
// Custom iterator of object is accessed by using | |
// Symbol.iterator a computed property name | |
pixelList[Symbol.iterator] = function () { | |
// Defining a function for the custom iterator | |
const sortedList = sortList(this); |
/** | |
* Purger.js is a helpful utility to purge the cache based on the Jekyll's sitemap | |
* generated, which allows us to have a lot of great functionality in there. | |
* This utility is written for blog called https://fascinations.hannanali.tech, | |
* check out this article to read meaningful articles from me | |
*/ | |
const Cloudflare = require('cloudflare') | |
const xml2js = require('xml2js') | |
const fs = require('fs') | |
const sitemapReader = require('./sitemapReader') |