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 number | |
:augroup numbertoggle | |
: autocmd! | |
: autocmd BufEnter,FocusGained,InsertLeave,WinEnter * if &nu && mode() != "i" | set rnu | endif | |
: autocmd BufLeave,FocusLost,InsertEnter,WinLeave * if &nu | set nornu | endif | |
:augroup END | |
setlocal spell spelllang=en_us | |
syntax on |
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
# I scraped exisisting tweets using R | |
# library(rtweet) | |
# library(tidyverse) | |
# petey <- get_timeline("PeteButtigieg", n = 3200, include_rts = FALSE, exclude_replies = FALSE) | |
# petey %>% | |
# select(text) %>% | |
# rename(tweets = text) %>% |
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
autoload -Uz vcs_info | |
precmd() { | |
vcs_info | |
# Define the prompt | |
# %F{cyan} for cyan username, %f to reset color | |
# %F{blue}%~%f shows the current path in blue | |
# %F{green} for git branch/status with indicators in parentheses | |
PROMPT='%F{cyan}%n%f:%F{blue}%~%f$ %F{green}${vcs_info_msg_0_}%f ' | |
} |
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
body { | |
margin: 40px auto; | |
max-width: 650px; | |
line-height: 1.6; | |
font-size: 18px; | |
color: #444; | |
padding: 0 10px | |
} | |
h1, |
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
''' | |
Write code that takes some Lisp code and returns an abstract syntax tree. The AST should represent the structure of the code and the meaning of each token. For example: | |
>> "(first (list 1 (+ 2 3) 9))" | |
["first", ["list", 1, ["+", 2, 3], 9]] | |
During your interview, you will pair on writing an interpreter to run the AST. You can start by implementing a single built-in function (for example, +) and add more if you have time. | |
TODO: | |
[] Feels like there should be a better way to test | |
[] Implement eval |
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
# Write a program that prints out the numbers 1 to 100 (inclusive). | |
# If the number is divisible by 3, print Crackle instead of the number. | |
# If it's divisible by 5, print Pop. | |
# If it's divisible by both 3 and 5, print CracklePop. | |
# You can use any language. | |
cracklepop <- function(x){ | |
if(x %% 3 == 0 && x %% 5 == 0){ | |
return("CracklePop") |
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
import pandas as pd | |
import numpy as np | |
import requests | |
import dotenv | |
import json | |
import os | |
dotenv.load_dotenv() | |
NOTION_TOKEN = os.getenv("NOTION_TOKEN", "") |
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
str = '''Coding tests irritate a minority of people. One applicant said his resume should speak for itself. I have no time for that attitude—though I’m happy for the weeding help. Good programmers should welcome the opportunity to demonstrate they’re good at what they do. Heck, most programmers I know enjoy brain teasers anyway. They test themselves when no one’s looking.''' | |
# first pass -- o(n2) time complexity solution | |
words = str.split(' ') | |
chars = 0 | |
for word in words: | |
clean = word.strip('\n').strip('.') |
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
function onOpen() { | |
SpreadsheetApp.getUi() // Or DocumentApp or SlidesApp or FormApp. | |
.createMenu('Add CRH Notes') | |
.addItem('Enter CRH Notes', 'addCRHnotes') | |
.addToUi(); | |
} | |
function showPrompt() { | |
var ui = SpreadsheetApp.getUi(); // Same variations. |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>ANSIBlackColor</key> | |
<data> | |
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw | |
LjExNzY0NzA1ODggMC4xMjk0MTE3NjQ3IDAuMTUyOTQxMTc2NQAQAYAC0hAREhNaJGNs | |
YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp |
NewerOlder