Let me show you some code.
import os
os.environ["HOST"].startswith("linux")
Bulleted lists, cuz why not?
#!/usr/bin/env swift | |
// Based on https://github.com/chbrown/macos-pasteboard/issues/8#issuecomment-906537204 | |
import Cocoa | |
import Foundation | |
let pasteboard: NSPasteboard = .general | |
let dataTypeName : String = "public.html" |
// Inject via gresemonkey to add other search engine links in DDG | |
// search. This is useful for quickly switching between search engines | |
// or even asking tools like ChatGPT or Perplexity. | |
const ss = { | |
Google: "https://www.google.com/search?q={}", | |
Perplexity: "https://www.perplexity.ai/?q={}", | |
ChatGPT: "https://chatgpt.com/?q={}&hints=search", | |
Bing: "https://www.bing.com/search?q={}", | |
// DuckDuckGo: "https://duckduckgo.com/?q={}", // already on it |
(defun meain/closest-node (nodes) | |
(let ((distance 999999) | |
(node nil) | |
(point (point))) | |
(progn | |
(seq-do (lambda (x) | |
(let* ( | |
(range (tsc-node-byte-range (cdr x))) | |
(start (byte-to-position (car range))) | |
(end (byte-to-position (cdr range))) |
/* Use this with harmony theme */ | |
* { | |
/* font-family: "ProFont for Powerline" !important; */ | |
font-family: "Labrada" !important; | |
font-weight: 500; | |
} | |
.block-properties { | |
background: none; | |
margin: 0; |
The name Wendy was made up for the book 'Peter Pan.' | |
Barbie's full name is Barbara Millicent Roberts. | |
Every time you lick a stamp, you consume 1/10 of a calorie. | |
The average person falls asleep in seven minutes. | |
Studies show that if a cat falls off the seventh floor of a building it has about thirty percent less chance of surviving than a cat that falls off the twentieth floor. It supposedly takes about eight floors for the cat to realize what is occurring, relax and correct itself. | |
Your stomach has to produce a new layer of mucus every 2 weeks otherwise it will digest itself. | |
The citrus soda 7-UP was created in 1929; '7' was selected after the original 7-ounce containers and 'UP' for the direction of the bubbles. | |
101 Dalmatians, Peter Pan, Lady and the Tramp, and Mulan are the only Disney cartoons where both parents are present and don't die throughout the movie. | |
A pig's orgasm lasts for 30 minutes. | |
'Stewardesses' is the longest word that is typed with only the left hand. |
# This works for me with cargo-web (Yew) | |
with import <nixpkgs> { | |
overlays = map (uri: import (fetchTarball uri)) [ | |
https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz | |
]; | |
}; | |
stdenv.mkDerivation { | |
name = "rust-wasm"; | |
buildInputs = [ |
Let me show you some code.
import os
os.environ["HOST"].startswith("linux")
Bulleted lists, cuz why not?
.Box, | |
.State, | |
.Label, | |
.IssueLabel, | |
.timeline-comment-label, | |
.form-control, | |
.signed-commit-badge-large, | |
.signed-commit-badge-medium, | |
.signed-commit-badge-small, | |
.btn { |
const graph = document.getElementsByClassName("js-calendar-graph-svg")[0]; | |
let rects = []; | |
const gs = document | |
.getElementsByClassName("js-calendar-graph-svg")[0] | |
.getElementsByTagName("g")[0] | |
.getElementsByTagName("g"); | |
Array.from(gs).forEach(g => { | |
rects = [...rects, ...Array.from(g.getElementsByTagName("rect"))]; | |
}); |