Skip to content

Instantly share code, notes, and snippets.

View foxt's full-sized avatar

foxt

View GitHub Profile
@foxt
foxt / monaco_theme.json
Created July 3, 2020 01:39
Default Jellyfish Monaco theme.
{
"base": "vs-dark",
"inherit": true,
"colors": {
"editor.foreground": "#BFCAE0",
"editor.background": "#222222",
"editor.selectionBackground": "#3D4350",
"editor.lineHighlightBackground": "#4C576730",
"editorCursor.foreground": "#528BFF",
"editorWhitespace.foreground": "#747369"
/** stolen from https://stackoverflow.com/a/48200842/4156215 **/
/**
* @description Options used when calling CanvasRenderingContext2D.strokeArcGradient() and
* CanvasRenderingContext2D.fillArcGradient().
* @property {Boolean} useDegrees Whether the specified angles should be interpreted as degrees rather than radians.
* (default: false)
* @property {Number} resolutionFactor The number of lines to render per pixel along the arc. A higher number produces
* a cleaner gradient, but has worse performance for large radii. Must be greater
* than 0. (default: 8)
@foxt
foxt / scoresaber_buttons.user.js
Last active March 22, 2021 23:53
adds download buttons to ScoreSaber
// ==UserScript==
// @name Show BeatSaver key on ScoreSaber
// @namespace http://thelmgn.com/
// @version 0.3
// @description try to take over the world!
// @author theLMGN
// @match https://scoresaber.com/leaderboard/*
// @run-at document-end
// @downloadURL https://gist.githubusercontent.com/theLMGN/369eaee937dfe3b87a414b25faadfbe8/raw/scoresaber_buttons.user.js
// @updateURL https://gist.githubusercontent.com/theLMGN/369eaee937dfe3b87a414b25faadfbe8/raw/scoresaber_buttons.user.js
@foxt
foxt / sparky.js
Created February 28, 2020 12:34
Sparkline custom element
// Sparky v1.0
// theLMGN - https://github.com/thelmgn
// Example: <canvas is="spark-line" width="300" height="200" data="5,3,6,9,10,5" color="#52ACD4"></canvas>
class Sparky extends HTMLCanvasElement {
constructor() {
super();
var observer = new MutationObserver(function(mutations) {
try {
return this.render()
@foxt
foxt / is-devforum.lua
Created February 15, 2020 12:26
Detect if a user is on the Roblox devforum or not.
function getDevForumTrustLevel(username)
local succ,retval = pcall(function()
local apiResponse = game.HttpService:GetAsync("https://cors-anywhere.herokuapp.com/https://devforum.roblox.com/users/"..username..".json",false, {
["x-requested-with"] = "Roblox"
})
local j = game.HttpService:JSONDecode(apiResponse)
if (j["user"]) then
return j["user"]["trust_level"]
else
return -1
var apple = [9,10]
var position = [11,10]
var score = 0
var trail = []
var direction = 0
var movedThisFrame = false
var charset = {
head: "#",
tail: "~",
@foxt
foxt / lol.json
Last active December 16, 2019 13:58
{
"overrideTitle": false,
"overrideTitleContents": "firefox",
"overrideBodyContents": "lol bye, do your nea"
}
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Major Version</key><integer>1</integer>
<key>Minor Version</key><integer>1</integer>
<key>Application Version</key><string>12.9.5.5</string>
<key>Date</key><date>2019-11-29T23:48:40Z</date>
<key>Features</key><integer>5</integer>
<key>Show Content Ratings</key><true/>
@foxt
foxt / cloudSettings
Last active January 5, 2020 03:14
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-10-21T15:17:14.662Z","extensionVersion":"v3.4.3"}
[
{
"text": "A computer keyboard is an input device that allows a person to enter letters, numbers, and other symbols (these are called characters in a keyboard) into a computer. It is one of the most used input devices for computers. Using a keyboard to enter lots of data is called typing.",
"attribTitle": "Keyboard",
"attribAuthor": "Simple English Wikipedia",
"attribLink": "https://simple.wikipedia.org/wiki/Keyboard_(computer)"
},
{
"text": "Glad you mentioned it, Eric. I'm coming to that. Just because the kaiser makes a speech or two, or a few german officers have too much to drink and begin taking nonsense, you'll hear some people say that war's inevitable. And to that I say - fiddlesticks! The Germans don't want war. Nobody wants war, except some half-civilized folks in the Balkans. And why? There's too much at stake these days. Everything to lose and nothing to gain by war.",
"attribTitle": "An Inspector Calls",