Skip to content

Instantly share code, notes, and snippets.

View shameerahamed's full-sized avatar
♻️
Relearn

Shameer shameerahamed

♻️
Relearn
  • Singapore ✈ ✈ ✈
View GitHub Profile
@shameerahamed
shameerahamed / cloudflareworker-verifyjwt.js
Created October 3, 2022 10:33 — forked from bcnzer/cloudflareworker-verifyjwt.js
Sample Cloudflare worker that gets the JWT, ensures it hasn't expired, decrypts it and returns a result
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
// Following code is a modified version of that found at https://blog.cloudflare.com/dronedeploy-and-cloudflare-workers/
/**
* Fetch and log a request
* @param {Request} request
*/
@shameerahamed
shameerahamed / prayer.js
Last active July 25, 2021 15:46
Prayer(Salat) Times Widget
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: blue; icon-glyph: magic;
const opacity = 0.7
const textColor = "#ffffff"
let imgPath = "pics/IMG6.2.jpg"
let currentDate = new Date()
let fm = FileManager.iCloud();
let fpath = fm.joinPath(fm.documentsDirectory(), imgPath)
@shameerahamed
shameerahamed / homescreen-widget.js
Created October 8, 2020 10:45
Scriptable script - Home page widget
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: orange; icon-glyph: magic;
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-brown icon-glyph: magic
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: red icon-glyph: magic
// Variables used by Scriptable.
@shameerahamed
shameerahamed / quotes.json
Created October 8, 2020 10:42
Leadership Quotes
{
"INNOVATE" : {
"subtitle" : "across the ecosystem",
"items" :
[
"Inspire people around you to be curious and learn continuously",
"Start thinking outside the box and encourage your team to do so",
"Seek out diverse perspectives to help shape a particular outcome",
"Encourage your team to try new ways of working"
]
@shameerahamed
shameerahamed / Water Reminder.js
Created May 11, 2019 05:10 — forked from schl3ck/Water Reminder.js
A scriptable script to remind you to drink water and record it. The data gets overridden after 2 days and is lost forever. Features: • Highly customiseable (interval of notifications, repeated notifications if I haven't responded, sound, preset list of how much you want to write down,...) • Works completely in notifications, no need to open the …
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: blue; icon-glyph: tint;
/*******************************************
* *
* __ __ _ *
* \ \ / /_ _| |_ ___ _ _ *
* \ \/\/ / _` | _/ -_) '_| *
* ___ \_/\_/\__,_|\__\___|_| *
* | _ \___ _ __ (_)_ _ __| |___ _ _ *