Skip to content

Instantly share code, notes, and snippets.

@zach-is-my-name
zach-is-my-name / .env
Created November 28, 2023 06:23 — forked from Destaq/.env
Graphically analyzes the most commonly learned language combinations on r/languagelearning based on user flairs
View .env
{
"username": "Reddit username",
"client_id": "Register a developer script on Reddit",
"client_secret": "See the above",
"password": "Your Reddit password"
}
View countries.json
[
{
"id": 1,
"name": "Afghanistan",
"iso3": "AFG",
"iso2": "AF",
"numeric_code": "004",
"phone_code": "93",
"capital": "Kabul",
"currency": "AFN",
View countries.json
[
{
"id": 1,
"name": "Afghanistan",
"iso3": "AFG",
"iso2": "AF",
"numeric_code": "004",
"phone_code": "93",
"capital": "Kabul",
"currency": "AFN",
@zach-is-my-name
zach-is-my-name / rfc5646-language-tags.js
Created November 21, 2023 06:12 — forked from msikma/rfc5646-language-tags.js
RFC 5646 Language Tags
View rfc5646-language-tags.js
// List of language tags according to RFC 5646.
// See <http://tools.ietf.org/html/rfc5646> for info on how to parse
// these language tags. Some duplicates have been removed.
var RFC5646_LANGUAGE_TAGS = {
'af': 'Afrikaans',
'af-ZA': 'Afrikaans (South Africa)',
'ar': 'Arabic',
'ar-AE': 'Arabic (U.A.E.)',
'ar-BH': 'Arabic (Bahrain)',
'ar-DZ': 'Arabic (Algeria)',
View tmux-jump-to-prompt-semantic-prompt-shell-integration.zsh
_prompt_executing=""
function __prompt_precmd() {
local ret="$?"
if [[ "$_prompt_executing" != "1" ]]; then
_PROMPT_SAVE_PS1="$PS1"
_PROMPT_SAVE_PS2="$PS2"
PS1=$'%{\e]133;P;k=i\a%}'$PS1$'%{\e]133;B\a\e]122;> \a%}'
PS2=$'%{\e]133;P;k=s\a%}'$PS2$'%{\e]133;B\a%}'
fi
@zach-is-my-name
zach-is-my-name / init.el
Created July 22, 2023 00:45 — forked from Gavinok/init.el
A minimal emacs configuration using evil mode and use-package
View init.el
;;; Startup
;;; PACKAGE LIST
(setq package-archives
'(("melpa" . "https://melpa.org/packages/")
("elpa" . "https://elpa.gnu.org/packages/")))
;;; BOOTSTRAP USE-PACKAGE
(package-initialize)
(setq use-package-always-ensure t)
(unless (package-installed-p 'use-package)
View gist:2735737672973229de1dac48352b8c52
TMUX(1) BSD General Commands Manual TMUX(1)
NAME
tmux — terminal multiplexer
SYNOPSIS
tmux [-2CDluvV] [-c shell-command] [-f file] [-L socket-name] [-S socket-path] [-T features]
[command [flags]]
DESCRIPTION
View 1989.vim
" Vim color file
set background=dark
highlight clear
if exists("syntax_on")
syntax reset
endif
let g:colors_name = "1989"
View complete_nvim_config
":set termguicolors
set notermguicolors
set noshowmode
" Appearence
set guicursor=n:blinkwait0-blinkon0-blinkoff0
set guicursor=n-v-c:block,i-ci-ve:block-Cursor/lCursor
set shell=/usr/bin/zsh
filetype plugin indent on " required
"color default
"set t_Co=256
View javascript.vim
" Vim syntax file
" Language: JavaScript
" Maintainer: Claudio Fleiner <claudio@fleiner.com>
" Updaters: Scott Shattuck (ss) <ss@technicalpursuit.com>
" URL: http://www.fleiner.com/vim/syntax/javascript.vim
" Changes: (ss) added keywords, reserved words, and other identifiers
" (ss) repaired several quoting and grouping glitches
" (ss) fixed regex parsing issue with multiple qualifiers [gi]
" (ss) additional factoring of keywords, globals, and members
" Last Change: 2022 Jun 09