This file contains hidden or 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
x.com##a[href~="/i/premium_sign_up"] | |
x.com##a[href~="/i/grok"] | |
x.com##a[href~="/i/verified-orgs-signup"] | |
x.com##a[href~="/jobs"] | |
x.com##div:has(> div > aside[aria-label="Subscribe to Premium"]) | |
# Grok button on tweets | |
x.com##button[aria-label="Grok actions"] | |
# Grok button on bottom-right, above DMs |
This file contains hidden or 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
# fly.toml file generated for gitea-zikes-services on 2022-09-04T16:49:56-05:00 | |
app = "gitea-zikes-services" | |
kill_signal = "SIGINT" | |
kill_timeout = 5 | |
processes = [] | |
[build] | |
image = "gitea/gitea:1.18.3" |
This file contains hidden or 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
GRAB 300 | |
REPL AZIMUTH | |
SEEK 1 | |
COPY F M | |
COPY M T | |
REPL ELEVATION | |
SEEK 1 | |
COPY F M |
This file contains hidden or 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
module spherical_cap(height,diameter) { | |
R=(pow(diameter/2,2)+pow(height,2))/(height*2); | |
translate([0,0,-R+height])difference() { | |
sphere(r=R,$fn=100); | |
translate([0,0,-height])cube(size=[R*2,R*2,R*2], center=true); | |
} | |
} |
This file contains hidden or 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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<title>Force-Directed Graph</title> | |
<script src="https://d3js.org/d3.v5.min.js"></script> | |
</head> | |
<body> | |
<script> | |
var height = 600; | |
var width = 600; |
This file contains hidden or 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
#include <time.h> // Robert Nystrom | |
#include <stdio.h> // @munificentbob | |
#include <stdlib.h> // for Ginny | |
#define r return // 2008-2019 | |
#define l(a, b, c, d) for (i y=a;y\ | |
<b; y++) for (int x = c; x < d; x++) | |
typedef int i;const i H=40;const i W | |
=80;i m[40][80];i g(i x){r rand()%x; | |
}void cave(i s){i w=g(10)+5;i h=g(6) | |
+3;i t=g(W-w-2)+1;i u=g(H-h-2)+1;l(u |
This file contains hidden or 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
# Enable the kube-ps1 oh-my-zsh plugin | |
plugins = ( | |
git | |
kube-ps1 | |
) | |
# The output of the kube_ps1 function is text, so it can be used | |
# directly as a custom p9k segment | |
POWERLEVEL9K_CUSTOM_KUBE_PS1='kube_ps1' |
This file contains hidden or 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
zsh_gpmdp_now_playing(){ | |
local json_file="$HOME/.config/Google Play Music Desktop Player/json_store/playback.json" | |
local is_playing=$(cat "$json_file" | jq '.playing') | |
local artist=$(cat "$json_file" | jq -r '.song.artist') | |
local title=$(cat "$json_file" | jq -r '.song.title') | |
if [[ "$is_playing" == "true" ]]; then | |
echo -n "\ufc58 $artist - $title" | |
fi | |
} |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head><title>Fizzlefade</title></head> | |
<body> | |
<canvas id="framebuffer" width="320" height="200"></canvas> | |
<script type="text/javascript"> | |
/* Fizzlefade using a Feistel network. |
This file contains hidden or 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
set nocompatible | |
filetype off | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |
NewerOlder