This file contains 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>HTML Clipboard Tester</title> | |
<style> | |
body * { margin-top: 10px; font-family: sans-serif; } | |
input, select, textarea { font-family: sans-serif; } | |
table, tr, td, th { border: 1px solid black; border-collapse: collapse; } | |
tr, td, th { padding: 5px; } | |
</style> |
This file contains 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
function $x(selector, contextNode = document) { | |
// Ensure the selector is provided and is a string | |
if (!selector || typeof selector !== 'string') { | |
throw new Error('$x requires a non-empty string as its first argument.'); | |
} | |
// Ensure the context node is a valid DOM Node | |
if (!contextNode || !(contextNode instanceof Node)) { | |
throw new Error('The second argument to $x must be a DOM Node.'); | |
} |
This file contains 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>HTML Clipboard Tester</title> | |
<style> | |
body * { margin-top: 10px; font-family: sans-serif; } | |
input, select, textarea { font-family: sans-serif; } | |
table, tr, td, th { border: 1px solid black; border-collapse: collapse; } | |
tr, td, th { padding: 5px; } | |
</style> |
This file contains 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
let g:colors = getcompletion('', 'color') | |
func! NextColors() | |
let idx = index(g:colors, g:colors_name) | |
return (idx + 1 >= len(g:colors) ? g:colors[0] : g:colors[idx + 1]) | |
endfunc | |
func! PrevColors() | |
let idx = index(g:colors, g:colors_name) | |
return (idx - 1 < 0 ? g:colors[-1] : g:colors[idx - 1]) | |
endfunc | |
nnoremap <silent> <s-a-n> :exe "colo " .. NextColors() \| redraw \| colorsch <CR> |
This file contains 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
" commentary.vim - Comment stuff out | |
" Maintainer: Tim Pope <http://tpo.pe/> | |
" Version: 1.3 | |
" echomsg "commentary.vim: before g:loaded_commentary=" . get(g:, 'loaded_commentary', 0) | |
echom a | |
if exists("g:loaded_commentary") || v:version < 703 | |
finish | |
endif | |
let g:loaded_commentary = 1 |
This file contains 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
/* ==UserStyle== | |
@name graphql.github.com/explorer - Jul 2024 | |
@namespace github.com/openstyles/stylus | |
@version 1.0.0 | |
@description A new userstyle | |
@author Me | |
==/UserStyle== */ | |
@-moz-document url-prefix("https://graphql.github.com/explorer") { | |
/* Insert code here... */ | |
} |
This file contains 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
function _PSReadLineRewriteCommand { | |
param($key) | |
$commandLine = '' | |
$cursorIndex = 0 | |
[Microsoft.PowerShell.PSConsoleReadLine]::GetBufferState([ref]$commandLine, [ref]$cursorIndex) | |
if ($commandLine -eq 'prof' -or $commandLine -eq 'profile') { | |
[Microsoft.PowerShell.PSConsoleReadLine]::Delete(0, $commandLine.Length) | |
[Microsoft.PowerShell.PSConsoleReadLine]::Insert('. $profile') | |
} | |
[Microsoft.PowerShell.PSConsoleReadLine]::AcceptLine() |
This file contains 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
using Combinatorics.Collections; | |
using System.Globalization; | |
namespace StringComparerTest | |
{ | |
using ComparerInfo = KeyValuePair<string, StringComparer>; | |
using StringPermutations = IEnumerable<IEnumerable<string>>; | |
internal class Program | |
{ |
This file contains 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
#!/bin/sh | |
SOURCE_URL="https://raw.githubusercontent.com/rupa/z/master/z.sh" | |
OUTPUT_LOC="$HOME/.z.sh" | |
usage_doc="Usage: $0 [-h] [-u url] [-o file] | |
-h this help | |
-u <url> download from <url> | |
default: $SOURCE_URL | |
-o <file> download to <file> |
NewerOlder