- Go through the What is web development? w3schools roadmap (just read)
- Go through the entire sidebar of the w3schools HTML guide. You'll already
be familiar with a good bit of this but there are a lot of new HTML elements including things like
<canvas>
etc. that it would be good to be vaguely familiar with. Go through some of the quick little exercises for anything you are unfamiliar with but otherwise don't bother. - Same deal with the w3schools CSS guide. There's some really useful stuff in here since CSS 3 came out, and the more you know about it the better. A bunch of it I probbaly don't even know about.
- Go through all of the w3schools Javascript guide. Everything here is relevant so you can get a solid foundation.
This file contains 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 formatted = prettyplease::unparse(&syn::parse_file(output.to_string().as_str()).unwrap()); | |
// where output is a TokenStream2 |
This file contains 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
struct BareBlock { | |
stmts: Vec<Stmt>, | |
} | |
impl Parse for BareBlock { | |
fn parse(input: ParseStream) -> syn::Result<Self> { | |
match Block::parse_within(input) { | |
Ok(stmts) => Ok(BareBlock { stmts }), | |
Err(e) => Err(e), | |
} |
This file contains 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
# add to .zshrc: | |
export CLICOLOR=1 | |
alias ls='ls -G' | |
alias ll='ls -lG' | |
export LSCOLORS=ExFxBxDxCxegedabagacad |
This file contains 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
pub enum HttpCode { | |
Continue = 100, | |
SwitchingProtocols = 101, | |
Processing = 102, | |
EarlyHints = 103, | |
Ok = 200, | |
Created = 201, | |
Accepted = 202, | |
NonAuthoritativeInformation = 203, | |
NoContent = 204, |
This file contains 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
Time.now.strftime('%Y-%m-%dT%H:%M:%S%:z') |
This file contains 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
#!/bin/bash | |
# update apt | |
sudo apt-get update || exit 1 | |
sudo apt-get upgrade -y || exit 1 | |
sudo apt-get dist-upgrade -y || exit 1 | |
# install required apt packages | |
sudo apt-get install p7zip-full \ | |
git p7zip-full curl gnupg2 libssl-dev libxml2-dev \ |
This file contains 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
#!/bin/bash | |
echo "pulling from sam-desktop via rsync..." | |
rsync -chavzP --stats sam@sam-desktop:/home/sam/workspace /home/sam/ | |
echo "done." |
This file contains 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
//plex-server/d /mnt/plex_d cifs uid=sam,credentials=/home/sam/.smbcredentials,iocharset=utf8,vers=3.0 0 0 | |
//plex-server/e /mnt/plex_e cifs uid=sam,credentials=/home/sam/.smbcredentials,iocharset=utf8,vers=3.0 0 0 |
This file contains 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
database_url: postgres:///my_db_name |