Skip to content

Instantly share code, notes, and snippets.

View alycda's full-sized avatar

Alyssa Evans alycda

View GitHub Profile
jQuery
======
[tuts+](https://tutsplus.com/course/30-days-to-learn-jquery/)
Referencing
-----------
jQuery(selector);
$(selector);
RewriteLog /usr/local/pem/vhosts/283073/webspace/httpdocs/logs/rewrite_log
RewriteLogLevel 9
RewriteRule can only apply to REQUEST_URI
RewriteRule pattern target [flags]
if they request the pattern, send them to the target instead
[PT] [passthrough] hands it back to the url mapping phase, treated as though it was the original request
// string literal
let literal: &'static str = "Hello, World";
// Vec<char>, char is u32, owned and stored on the heap with pointer, length and capacity stored on the stack
let string = String::from("Hello, World");
// immutable view
let slice = &string[..];
// Raw
@alycda
alycda / helix-config.toml
Last active January 4, 2026 03:37
Helix Editor Configuration
theme = "mine"
[editor.soft-wrap]
enable = true
[editor]
# line-number = "relative"
rulers = [72, 80, 100, 120]
"color-modes" = true
@alycda
alycda / .gitconfig
Last active December 26, 2025 23:04
Git Config
[core]
editor = code --wait
ignorecase = true
[core]
excludesfile = ~/.gitignore_global
[pull]
rebase = true
@alycda
alycda / .zprofile
Created January 29, 2025 18:20
ZSH
eval "$(/opt/homebrew/bin/brew shellenv)"
@alycda
alycda / VSCode_extensions.json
Last active January 4, 2026 03:39
settings, extensions and launch configurations
{
// See https://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"eamodio.gitlens",
"rust-lang.rust-analyzer"
]
}
@alycda
alycda / devcontainer.json
Created May 7, 2025 00:39
Rust Dev Container
{
"image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {
"ghcr.io/devcontainers/features/rust:1": {
"version": "latest",
"profile": "complete"
}
},
"customizations": {
"vscode": {
#!/usr/bin/env -S cargo +nightly -Zscript
---cargo
[dependencies]
smol = "2"
---
use std::fmt::Debug;
use std::future::{self, Future};
use std::time::Duration;
use smol::{Timer, io};
@alycda
alycda / shell.nix
Last active October 23, 2025 03:44
Nix
let
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-24.05";
pkgs = import nixpkgs { config = {}; overlays = []; };
in
# https://nixos.org/manual/nixpkgs/unstable/#sec-pkgs-mkShell-variants
pkgs.mkShellNoCC {
packages = with pkgs; [
cowsay
lolcat