Skip to content

Instantly share code, notes, and snippets.

View cyyynthia's full-sized avatar
drinking coffee

Cynthia cyyynthia

drinking coffee
View GitHub Profile
@cyyynthia
cyyynthia / random-toml-generator.js
Created May 6, 2023 21:59
An utility to generate a large random TOML file. Used to benchmark https://github.com/squirrelchat/smol-toml
/*!
* BSD Zero Clause License
* Copyright (c) Cynthia Rey
* SPDX-License-Identifier: 0BSD
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
@cyyynthia
cyyynthia / llama_measure_perf.mjs
Last active March 31, 2023 14:19
Quick and dirty script to measure the evolution of performance of LLaMA.cpp
/*!
* BSD Zero Clause License
* Copyright (c) Cynthia Rey
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
@cyyynthia
cyyynthia / discord-pitch-black.scss
Last active March 22, 2020 03:07
Ultra simple, no bullshit pitch-black theme. Compatible with all client mods.
.theme-dark {
&:root {
--background-primary: #000;
--background-secondary: #000;
--background-tertiary: #000;
--deprecated-panel-background: #000;
--channeltextarea-background: #101010;
}
.topSectionNormal-2-vo2m, .body-3ND3kc, .container-3ayLPN, .modal-yWgWj-, .autocomplete-1vrmpx, .emojiPicker-3m1S-j {
@cyyynthia
cyyynthia / powercord_rpc.js
Last active November 23, 2019 22:33
Powercord RPC lib. You can throw it in any project of yours.
/**
* Class to interact with Powercord through Discord's RPC WebSocket server.
* @link https://gist.github.com/Bowser65/5756e490860aa122f5ad13f5cf19fd7d
* @author Bowser65
* @licence MIT
*/
class PowercordRPC {
get ws () {
return this._ws;
}
@cyyynthia
cyyynthia / trulse.txt
Created July 10, 2019 11:20
An interesting proposal for JS
trulse => true
!trulse => true
!!trulse => false
!!!trulse => false
trulse == true => true
trulse == false => true
trulse === true => false
trulse === false => false
trulse == trulse => true
trulse === trulse => false

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: