I hereby claim:
- I am hkamran80 on github.
- I am hkamran (https://keybase.io/hkamran) on keybase.
- I have a public key ASBvNGvZbr8bVRDUF4btFiUwH_zDkiLfZ1hSLDo8f-vcPAo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get all names on a Canvas roster from [Course] > People | |
// With filtering | |
console.log([...document.querySelectorAll("tbody tr.rosterUser")].filter(row => row.querySelector("td[data-test-id=section-column-cell]").textContent.includes("[your filter]")).map(row => row.querySelector("td:nth-child(2)").textContent.trim()).join("\n")); | |
// Without filtering | |
console.log([...document.querySelectorAll("tbody tr.rosterUser")].map(row => row.querySelector("td:nth-child(2)").textContent.trim()).join("\n")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { decode } from "blurhash"; | |
const cache: Record<string, string> = {}; | |
export const blurHashToDataURL = ( | |
hash: string | undefined, | |
): string | undefined => { | |
if (!hash) return undefined; | |
const cachedBlurDataURL = cache[hash]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.hkamran; | |
import java.util.Arrays; | |
import javafx.application.Application; | |
import javafx.event.ActionEvent; | |
import javafx.event.EventHandler; | |
import javafx.geometry.Insets; | |
import javafx.geometry.Pos; | |
import javafx.scene.Scene; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name AO3 - Series Download Links | |
// @namespace https://hkamran.com | |
// @version 1.0.0 | |
// @description Series Download Links for AO3, based on | |
// @author H. Kamran | |
// @downloadUrl https://gist.github.com/hkamran80/8e1c9055807679f5094da040072a8212/raw/ao3.user.js | |
// @updateUrl https://gist.github.com/hkamran80/8e1c9055807679f5094da040072a8212/raw/ao3.user.js | |
// @match https://archiveofourown.org/series/* | |
// @grant none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<v-btn icon @click="toggleDarkMode"> | |
<v-icon>mdi-theme-light-dark</v-icon> | |
</v-btn> | |
</template> | |
<script> | |
export default { | |
name: "Example", | |
methods: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name AO3 - Keystrokes | |
// @namespace https://hkamran.com | |
// @version 1.0.3 | |
// @description Keystrokes for AO3 | |
// @author H. Kamran | |
// @downloadUrl https://gist.github.com/hkamran80/a9bc0a6c13d1137d150980d425d7d025/raw/ao3.user.js | |
// @updateUrl https://gist.github.com/hkamran80/a9bc0a6c13d1137d150980d425d7d025/raw/ao3.user.js | |
// @match http*://archiveofourown.org/works/* | |
// @match http*://archiveofourown.org/collections/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name XKCD - Keystrokes | |
// @namespace https://hkamran.com | |
// @version 1.0.1 | |
// @description Keystrokes for XKCD | |
// @author H. Kamran | |
// @downloadUrl https://gist.github.com/hkamran80/7746d7c2ba47e9ecdff547600635fd51/raw/xkcd.user.js | |
// @updateUrl https://gist.github.com/hkamran80/7746d7c2ba47e9ecdff547600635fd51/raw/xkcd.user.js | |
// @match https://xkcd.com/* | |
// @grant none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Google Search - Keystrokes | |
// @namespace https://hkamran.com | |
// @version 1.0.1 | |
// @description Keystrokes for Google Search | |
// @author H. Kamran | |
// @downloadUrl https://gist.github.com/hkamran80/c522d3285557070619af9ce5d7df3442/raw/google_search.user.js | |
// @updateUrl https://gist.github.com/hkamran80/c522d3285557070619af9ce5d7df3442/raw/google_search.user.js | |
// @match https://*.google.tld/search | |
// @grant none |
NewerOlder