Skip to content

Instantly share code, notes, and snippets.

View joyanujoy's full-sized avatar
🚣‍♂️
Soul Proprietor 😎

Anu Joy joyanujoy

🚣‍♂️
Soul Proprietor 😎
View GitHub Profile
@joyanujoy
joyanujoy / validateFIrebaseToken.js
Last active November 19, 2023 10:24
A method to verify firebase auth tokens in Cloudflare workers. As of Dec, 2022, this works in Cloudflare workers, inside javascript V8 engine without the full nodejs runtime or firebase SDK. Ref https://cartographix.org/MjE2MzAz~verify-firebase-auth-tokens-in-cloudflare-workers
/*
A method to verify firebase auth tokens in Cloudflare workers.
link: https://cartographix.org/verify-firebase-auth-tokens-in-cloudflare-workers
As of Dec, 2022, this works in Cloudflare workers, inside javascript V8 engine without the full nodejs runtime or firebase SDK.
*/
@joyanujoy
joyanujoy / autotrip.js
Created February 17, 2021 01:19
Scriptable.app widget for autotrip - background mileage logger
"use strict"
/**
Queue file to track current trip is stored locally instead of iCloud to avoid mobile data sync issues when you are out and about.
As it's stored in local doc directory, you can't view it in Files app. So use logging for debugging.
Daily trips summary is stored in iCloud and can be viewed in Files app.
*/
@joyanujoy
joyanujoy / README.md
Created August 28, 2020 15:30 — forked from guillaumevincent/README.md
Windows Service with Python 3.5 and pyinstaller
@joyanujoy
joyanujoy / hello.vue
Created September 12, 2018 15:58 — forked from ryenski/hello.vue
Stimulus.js + Vue.js
<template>
<div id="app">
<p>{{ message }}</p>
</div>
</template>
<script>
export default {
data: function () {
return {
@joyanujoy
joyanujoy / keybase.md
Created August 31, 2018 16:57
Verifying myself on keybase.io

Keybase proof

I hereby claim:

  • I am joyanujoy on github.
  • I am anujoy (https://keybase.io/anujoy) on keybase.
  • I have a public key ASBG3p_hF9vTY-w3fMAkvMYC1WTfqHG4DtDxAavbdjEVbgo

To claim this, I am signing this object:

@joyanujoy
joyanujoy / cron_slots.py
Last active November 3, 2023 08:49
Print free time slots between cron jobs
from __future__ import print_function
import sys
from dateutil import rrule
from datetime import datetime
from croniter import croniter
from collections import defaultdict
def main(crontab, start, end):
"""
@joyanujoy
joyanujoy / index.html
Created November 24, 2015 12:43 — forked from anonymous/index.html
JS Bin // source http://jsbin.com/jukiqib
<!DOCTYPE html>
<html>
<head>
<script src="http://fb.me/react-0.13.3.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<meta charset="utf-8">
<title>JS Bin</title>
</head>