Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
require "digest" | |
# Cuid2 in Ruby, converted from cuid2.js via ChatGPT 4 | |
# https://github.com/paralleldrive/cuid2/blob/main/src/index.js | |
# Example usage | |
# cuid_instance = Cuid2.new | |
# puts cuid_instance.generate | |
# cuid_singleton = Cuid2.generate | |
# puts cuid_singleton |
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
(async () => { | |
async function getUsersInGeneralChannel(marker = null) { | |
const response = await fetch( | |
"https://edgeapi.slack.com/cache/TSK2FNWP3/users/list?fp=ed", | |
{ | |
headers: { | |
accept: "*/*", | |
"accept-language": "en-US,en;q=0.9", | |
"content-type": "text/plain;charset=UTF-8", | |
"sec-ch-ua": '"Not)A;Brand";v="24", "Chromium";v="116"', |
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
function splitthai(str) { | |
// https://github.com/nota/split-graphemes/blob/master/src/thai.js | |
const letter = '[\\u0E00-\\u0E7F]'; | |
const trailingLetter = '[\\u0E31\\u0E33-\\u0E3A\\u0E47-\\u0E4E]'; | |
const thai = `${letter}${trailingLetter}*`; | |
const splitter = new RegExp(`(${thai})`, 'gu'); | |
return str.replace(/ำ/g, 'ํา').replace(/แ/g, 'เเ').match(splitter) || []; | |
} |
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
/* ==UserStyle== | |
@name Youtube Live Chat for capture | |
@namespace yt_live_chat.narze | |
@version 0.1.0 | |
@author narze | |
@license MIT | |
==/UserStyle== */ | |
@-moz-document url-prefix("https://www.youtube.com/live_chat") { | |
@import url("https://fonts.googleapis.com/css?family=Candal"); |
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
#!/bin/bash | |
USER="tinarskii" | |
REPOS=( | |
"narze/DaiMai" | |
"narze/awesome-cheab-quotes" | |
"narze/awesome-salim-quotes" | |
"narze/coffee-to-code" | |
"narze/dumb-questions-th" | |
"narze/nunmun" |
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
#!/bin/bash | |
USER="narze" | |
REPOS=( | |
"orgname/reponame" | |
) | |
for REPO in "${REPOS[@]}"; do | |
echo "Adding user ${USER} to $REPO" |
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
#!/bin/bash | |
PERMISSION="push" # Can be one of: pull, push, admin, maintain, triage | |
ORG="orgname" | |
TEAM_SLUG="your-team-slug" | |
# Get names with `gh repo list orgname` | |
REPOS=( | |
"orgname/reponame" | |
) |
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
{ | |
"customizeUI.activityBar": "top", | |
"customizeUI.activityBarHideSettings": true, | |
"customizeUI.font.monospace": "FantasqueSansMono Nerd Font", | |
"customizeUI.font.regular": "FantasqueSansMono Nerd Font", | |
"customizeUI.fontSizeMap": { | |
"12px": "11px", | |
"13px": "11px", | |
// "monospace": "11px", // Used for monospace fonts in user interface | |
"menu": "13px", // Used for menu items (windows only) |
NewerOlder