Skip to content

Instantly share code, notes, and snippets.

View jacobdalamb's full-sized avatar
💭
Hi I'm Jacob!

Jacob Lamb jacobdalamb

💭
Hi I'm Jacob!
View GitHub Profile
/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Remove default margins and padding
3. Reset all borders.
*/
*,
::after,
::before,
::backdrop,
@theme {
/* Defaults */
--default-transition-duration: 150ms;
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
--default-font-family: var(--font-family-sans);
--default-font-feature-settings: var(--font-family-sans--font-feature-settings);
--default-font-variation-settings: var(--font-family-sans--font-variation-settings);
--default-mono-font-family: var(--font-family-mono);
--default-mono-font-feature-settings: var(--font-family-mono--font-feature-settings);
--default-mono-font-variation-settings: var(--font-family-mono--font-variation-settings);
@jacobdalamb
jacobdalamb / wesbos.css
Last active May 13, 2024 18:42
list of wesbos styles
textarea {
--padding: var(--size-3);
min-height: calc(2lh + 2 * var(--padding));
max-height: calc(4lh + 2 * var(--padding));
line-height: 1.5;
padding-block: var(--padding);
padding-inline: calc(var(--padding) * calc(1lh - 1ex) / 2);
}
input,
@jacobdalamb
jacobdalamb / Link.astro
Last active May 16, 2024 01:08
astro link component
@jacobdalamb
jacobdalamb / index.json
Last active April 26, 2024 05:51
zed extensions
{
"extensions": {
"astro": {
"manifest": {
"id": "astro",
"name": "Astro",
"version": "0.0.1",
"schema_version": 1,
"description": "Astro support.",
"repository": "https://github.com/zed-industries/zed",
@jacobdalamb
jacobdalamb / env.nu
Last active January 28, 2024 18:37
env.nu
# Nushell Environment Config File
#
# version = "0.89.0"
def create_left_prompt [] {
let home = $nu.home-path
# Perform tilde substitution on dir
# To determine if the prefix of the path matches the home dir, we split the current path into
# segments, and compare those with the segments of the home dir. In cases where the current dir
@jacobdalamb
jacobdalamb / config.nu
Last active January 28, 2024 18:33
config.nu
# Nushell Config File
#
# version = "0.89.0"
# For more information on defining custom themes, see
# https://www.nushell.sh/book/coloring_and_theming.html
# And here is the theme collection
# https://github.com/nushell/nu_scripts/tree/main/themes
let dark_theme = {
# color for nushell primitives
@jacobdalamb
jacobdalamb / lastSyncextensions.json
Last active April 11, 2024 02:51
vscode extensions
[
"calebporzio.better-keybindings",
"calebporzio.simple-project-switcher",
"vscode.bat",
"vscode.clojure",
"vscode.coffeescript",
"vscode.configuration-editing",
"vscode.cpp",
"vscode.csharp",
"vscode.css",
@jacobdalamb
jacobdalamb / bun-global-pkgs.txt
Last active January 28, 2024 17:35
global bun pkgs
/Users/jacoblamb/.bun/install/global node_modules (742)
├── @antfu/ni@0.21.12
├── npm-check-updates@16.14.12
└── vercel@33.3.0
@jacobdalamb
jacobdalamb / .zshrc
Last active March 13, 2024 19:31
zshrc
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="apple"
# Set list of themes to pick from when loading at random