Skip to content

Instantly share code, notes, and snippets.

@Californ1a
Californ1a / nightbotHardClueCount.txt
Created December 6, 2020 01:59
nightbot custom command hard clue count
$(eval const api = $(urlfetch json https://spreadsheets.google.com/feeds/cells/SHEETID/1/public/full?alt=json); `Rank: ${api.feed.entry[141].content.$t}, Count: ${parseInt(api.feed.entry[142].content.$t, 10).toLocaleString()} - https://secure.runescape.com/m=hiscore/a=13/ranking?table=29&category_type=1&user=PLAYERNAME`)
@Californ1a
Californ1a / youtubeThumbnailResize.css
Last active October 17, 2024 05:11
Change YouTube homepage grid count (youtube thumbnail resize)
/* Credit https://chrome.google.com/webstore/detail/youtube-thumbnail-resizer/pbkkiocccjpeadoiakfbljdbhhdimoac
It's seriously just 1 css rule! 🤯 */
.ytd-rich-grid-renderer {
--ytd-rich-grid-items-per-row: 6;
}
/* Updated version: https://reddit.com/r/youtube/comments/qwjc10/how_to_display_more_thumbnailsitems_on_youtube/hl4fwty/ */
ytd-rich-grid-renderer {
--ytd-rich-grid-items-per-row: 6 !important;
}
/* Distance Autosplitter script - Provides autostart/split/reset and load removal
Created by Brionac, Californ1a, Seekr, and TntMatthew
Thanks to ClownFiesta for the base script to read from an output log:
https://raw.githubusercontent.com/ClownFiesta/AutoSplitters/master/LiveSplit.SlayTheSpire.asl
*/
state("Distance")
{
var ingredients = {
bowl: {
name: "Shiny tortle shell bowls",
amount: 1
},
oil: {
name: "Wobbegong Oil",
amount: 1
},
salt: {
@Californ1a
Californ1a / sharkSoup.js
Last active December 13, 2018 15:09
calculate shark soup amounts with transmutations of oil and bowls
const ingredients = {
bowl: {
name: "Shiny tortle shell bowls",
amount: 1
},
oil: {
name: "Wobbegong Oil",
amount: 1
},
salt: {
@Californ1a
Californ1a / mergeFetch.js
Created April 11, 2018 17:20
merge data from multiple fetch request
const fetch = require("node-fetch");
const urls = ["http://35.185.40.23/", "http://distance.rip:23469/"];
Promise.all(urls.map(fetch))
.then(responses => Promise.all(responses.map(res => res.json())))
.then(multiData => multiData.reduce((merge, data) => ({
...merge,
...data
}), {}))
.then(merged => {
@Californ1a
Californ1a / unotest.js
Last active January 10, 2021 00:01
test uno with discord
// #region discord.js
require("dotenv").config();
const Discord = require("discord.js");
const bot = new Discord.Client();
const token = process.env.DISCORD_TOKEN;
const sendM = (chan, msg, options) => {
return new Promise((resolve, reject) => {
if (options) {
chan.send(msg, options).then(m => {
resolve(m);

Keybase proof

I hereby claim:

  • I am Californ1a on github.
  • I am californ1a (https://keybase.io/californ1a) on keybase.
  • I have a public key whose fingerprint is FF6C 15B3 F8FF AB14 2C68 A70C 2F6D EEED 1D3B 4A50

To claim this, I am signing this object:

# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->