code-name-beanie
code-name-beanie
What The Syntax
7 posts
Learning How to Code!
Don't wanna be here? Send us removal request.
code-name-beanie · 2 years ago
Text
git
i was configuring my emacs and suddendly realized how unhappier would I be if I did not know of git reset HEAD~1, git reset --hard HEAD~1 and git commit --amend. Like, if you're someone who commits quick mistakes frequently these are just godsent. If you do not know, here's a summary.
git reset HEAD~1
This command basically asks git to forget that you've typed "git commit ..." in the command line. All the changes will be there, but unstaged. This is SO useful when you end up comitting too much stuff or want to change some stuff in the last commit you did, it is just incredible. You can use git reset to undo more "git commit"s as well, but HEAD~1 is usually enough. Note that this command basically does not affect your files in your working directory, it just affects the git commit history.
git reset --hard HEAD~1
This is the danger/velociraptor version of git reset. Unlike its cousin, reset --hard not only undoes the last "git commit" terminal command, but it also undoes the changes of the last commit. Use this when you realize that your last modifications to the project were just way too powerful for this world and you want to try again differently. Use with caution.
git commit --amend
The --amend flag in git commit is pretty useful, it is a nice alternative to git reset HEAD~1. When you use --amend, instead of adding a new commit, git will just replace the last commit you did with this new commit you're adding. I like to use this one to fix typos in commit messages, as all i need to do is reload the original command from the terminal, change the commit message and add the --amend flag.
:v
146 notes · View notes
code-name-beanie · 2 years ago
Text
listen I say this with patience bc some people may genuinely have not thought about this before but if you firmly say “AI art is terribly unethical and steals from artists” (which is correct) but then turn around and use voice AIs to generate songs/voice lines that sound like your favourite voice actors or singers……………………………………that is also AI art and it is also terribly unethical
68K notes · View notes
code-name-beanie · 2 years ago
Photo
Tumblr media
CARROT CAKE LOAF
1K notes · View notes
code-name-beanie · 2 years ago
Text
Tumblr media
Had a long weekend that extended into Tuesday.
Note to self: Don't start major cleaning without a clear timeline.
Project Recipes is going well. I was afraid of Git and GitHub, but I love commit messages. My short term memory can be spotty (mainly due to lack of sleep), so commit messages are a good way to see where I'm at in a project at a glance.
Being able to stage files before committing is great. I wish that I knew about Git while working on a video game project with college friends. It would've our lives soooooo much easier.
10 notes · View notes
code-name-beanie · 2 years ago
Text
Lesson: Links and Images
Finished The Odin Project's lesson today, and had a bit of fun using the terminal to make files and open VSCode. There's something cool about using the terminal to do things quickly compared to navigating GUI.
Learning about accessibility and security when it comes to links and images is great because I want to get used to this stuff early so that it would become second nature to me eventually.
Still refining the pomodoro method to my liking as well as changing up my study music. Study lofi makes me sleepy so I've been listening to a shuffle of liked songs on Spotify and then lowering the volume on it so I won't get distracted. So far, so good.
10 notes · View notes
code-name-beanie · 2 years ago
Text
It's live now!
Really thinking about making a study/coding side blog.
64 notes · View notes
code-name-beanie · 2 years ago
Text
Tumblr media
Hello! This is a side blog dedicated to my progress on The Odin Project, Codeacademy, and any resource available to me.
Striving for daily updates, but I'll probably just post my ups and downs during a lesson.
Thanks to everyone for the encouragement to give this a go after posting about being on the fence!
0 notes