Skip to content

Instantly share code, notes, and snippets.

@ruqqq
ruqqq / today_prayertimes.js
Last active June 20, 2021 23:22
Obsidian templater user script to get today's prayer times in markdown table format
/*
* Install: Put this script in your templater scripts folder
* Usage: (in your Obsidian template, for SG/1)
* <% tp.user.today_prayertimes("SG/1") %>
*/
const baseUrl = "https://ruqqq.github.io/prayertimes-database/data/";
async function getRequest(url) {
let response = await fetch(url);
@ruqqq
ruqqq / random_quran.js
Last active June 20, 2021 23:22
Obsidian templater user script to generate random quran extract for daily notes
/*
* Install: Put this script in your templater scripts folder
* Usage: (in your Obsidian template)
* ## Quran
* <% tp.user.random_quran() %>
*/
const baseUrl = "https://api.quran.com/api/v4";
const languageId = "en";
const translationId = 20;
@ruqqq
ruqqq / init.vim
Created May 29, 2020 06:40
Neovim .vimrc
call plug#begin(stdpath('data') . '/plugged')
Plug 'https://github.com/joshdick/onedark.vim.git'
Plug 'sheerun/vim-polyglot'
Plug 'itchyny/lightline.vim'
Plug 'terryma/vim-multiple-cursors'
Plug 'https://github.com/tpope/vim-eunuch.git'
Plug 'https://github.com/tpope/vim-surround.git'
Plug 'https://github.com/tpope/vim-fugitive.git'
Plug 'https://github.com/tpope/vim-commentary.git'

Keybase proof

I hereby claim:

  • I am ruqqq on github.
  • I am ruqqq (https://keybase.io/ruqqq) on keybase.
  • I have a public key ASC5avdEftnpu4RRzAf_bYSNOjv60Bfc82UDT1R7JNtoAwo

To claim this, I am signing this object:

@ruqqq
ruqqq / cloudSettings
Last active November 20, 2020 14:39
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-11-20T14:39:12.555Z","extensionVersion":"v3.4.3"}
@ruqqq
ruqqq / PrayerTimePro-2019-Issue.md
Last active January 2, 2019 02:05
PrayerTime Pro 2019 Issue

If you are having issue with the app crashing when you open it in 2019, do these steps:

  1. Ensure you are connected to WiFi
  2. Open the app
  3. It will show "Unable to download data"
  4. Wait about 15 seconds, select "OK"
  5. The app will crash
  6. Open the app again
  7. It should now work properly
@ruqqq
ruqqq / changelog.md
Last active March 24, 2019 14:22
PrayerTime Pro Changelog

PrayerTime Pro Changelog

Open the app while connected to WiFi to let the app auto-update.

1.3.4

  • Fix Malaysia incorrect timings
  • Fix app forcing user to close the app due to unable to download correct timings for Malaysia

1.3.3

  • Fix prayer time redownloading when location not set to SG

Keybase proof

I hereby claim:

  • I am ruqqq on github.
  • I am ruqqq (https://keybase.io/ruqqq) on keybase.
  • I have a public key whose fingerprint is 89F2 600E 608B 884B 0D06 72CE 14C8 AF22 1D94 9F02

To claim this, I am signing this object:

@ruqqq
ruqqq / designer.html
Last active August 29, 2015 14:17
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;