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
| jQuery | |
| ====== | |
| [tuts+](https://tutsplus.com/course/30-days-to-learn-jquery/) | |
| Referencing | |
| ----------- | |
| jQuery(selector); | |
| $(selector); |
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
| 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 |
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
| // 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 |
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
| theme = "mine" | |
| [editor.soft-wrap] | |
| enable = true | |
| [editor] | |
| # line-number = "relative" | |
| rulers = [72, 80, 100, 120] | |
| "color-modes" = true |
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
| [core] | |
| editor = code --wait | |
| ignorecase = true | |
| [core] | |
| excludesfile = ~/.gitignore_global | |
| [pull] | |
| rebase = true | |
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
| eval "$(/opt/homebrew/bin/brew shellenv)" |
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
| { | |
| // See https://go.microsoft.com/fwlink/?LinkId=827846 | |
| // for the documentation about the extensions.json format | |
| "recommendations": [ | |
| "eamodio.gitlens", | |
| "rust-lang.rust-analyzer" | |
| ] | |
| } |
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
Show hidden characters
| { | |
| "image": "mcr.microsoft.com/devcontainers/universal:2", | |
| "features": { | |
| "ghcr.io/devcontainers/features/rust:1": { | |
| "version": "latest", | |
| "profile": "complete" | |
| } | |
| }, | |
| "customizations": { | |
| "vscode": { |
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
| #!/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}; |
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
| 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 |