Instantly share code, notes, and snippets.

View light-only.css
// should result in blue editor background if a theme with keyword "dark" is used
atom-workspace[class*="-light"] atom-text-editor {
background-color: blue !important;
}
View hyper-green-scanlines.js
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
View atom-subtle-shadows.css
// body /deep/ atom-text-editor {
// transform: perspective(200px) rotateX(2deg) rotateZ(-3deg);
// transform-origin: center;
// transform-style: preserve-3d;
// }
atom-text-editor {
background: rgba(255,255,255,0.45);
box-shadow:
inset 0px 0px 200px rgba(0,50,150,0.5);
View fish_prompt.fish
function fish_prompt
and set retc normal
or set retc red
tty | string match -q -r tty
and set tty tty
or set tty pts
set_color $retc
if [ $tty = tty ]
echo -n .-
View install-kitty.sh
#!/usr/bin/env bash
# ensure freetype is updated, important to avoid error:
# undefined symbol: FT_Get_Var_Blend_Coordinates
sudo add-apt-repository ppa:glasen/freetype2
sudo apt update && sudo apt install freetype2-demos
# kitty installer script from https://sw.kovidgoyal.net/kitty/binary.html#manually-installing
curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin
View subtle.kak
# code
face global value rgb:ffffff,default
face global type rgb:dedede,default
face global identifier rgb:dedede,default
face global string rgb:aaccaa,default
face global error default,rgb:ffffff
face global keyword rgb:bbbbbb,default+b
face global operator rgb:dedede,default
face global attribute rgb:ccaaaa,default
View vscode-snakecase-to-camelcase.md

Convert snake_case to camelCase in VS Code

  • Press CTRL-H ( ⌥⌘F on Mac ).
  • Press ALT-R ( ⌥⌘R on Mac ).
  • Type _([a-zA-Z]).
  • Press TAB and type $1.
  • Press ALT-ENTER ( ⌥ENTER on Mac ).
  • Press F1 and type upper, then press ENTER.
  • Press CTRL-ALT-ENTER ( ⌥ENTER on Mac ).
View vim-snakecase-to-camelcase.md

Convert snake_case to camelCase in Vim

Vim replace operation to convert snake_case to camelCase (credits @Sean C.): %s/_\([a-zA-Z]\)/\u\1/g

What's it for?

Automatically refactor a script's symbol names from snake_case to camelCase.

How to use it?

View tron-05.txt

▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█
▓ █
▓ █
▓ █
▓ █
▓ ██████████████████████ █
▓ ████████████████████████████████ █ █
▓ █ ████████████ █
▓▓▓▓▓▓▓▓▓▓ █ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ █ █
View qb-stars.bas
DECLARE SUB PrintSomeStars (StarCount!)
REM QuickBASIC example
INPUT "What is your name: ", UserName$
PRINT "Hello "; UserName$
DO
INPUT "How many stars do you want: ", NumStars
CALL PrintSomeStars(NumStars)
DO
INPUT "Do you want more stars? ", Answer$
LOOP UNTIL Answer$ <> ""