toastdoesthecodething
toastdoesthecodething
Toast Does The Code Thing
4 posts
let's teach these bitches how to code (i'm bitches)
Don't wanna be here? Send us removal request.
toastdoesthecodething · 4 years ago
Text
Creating a new key value out of returned data
To create a a new key with a value that is the property value of a different key which should then have the property value of a different key entirely...do remember this moment in code:
superagent.get('https://swapi.dev/api/people') .then(data => { let dataBack = data.body.results; dataBack.forEach( character => { let obj = {} obj[character.name]= character.url; console.log(obj); }) })
This returns a number of objects the length of dataBack that looks like: {'luke skywalker':'whateverhisurl.com'}
0 notes
toastdoesthecodething · 4 years ago
Text
Promies
Helpful intro videos explaining with promises without use of superagent: 
Simplilearn:  https://www.youtube.com/watch?v=KFQVgi0uJdM Web Dev Simplified:  https://www.youtube.com/watch?v=DHvZLI7Db8E
0 notes
toastdoesthecodething · 5 years ago
Text
CSS
Here is where I will put tricks that I have discovered trying to make things look pretty in CSS! 
I had an H1 in a header, wanted that header to have background image, and wanted to it to appear as if the h1 text was on top of the image that had been loaded into my header element.  To do this:  header { position: relative; }
h1{ position: absolute; }
0 notes
toastdoesthecodething · 5 years ago
Text
wassup bitches
soo, it’s the sunday before your ass starts that coding bootcamp. you finished your work week on friday watching women tech makers youtube videos while folding letters (insert reminder that you don’t want to be folding letters for the rest of your life while you sit on an MFA degree, rejoicing in the current student loan freeze - a byproduct of a certain current global pandemic).  There was a guest who left you with some idea droplets; one of them was to make a blog. And, coming from someone was a featured guest on a video, she is clearly doing the damn thing. so, okay, yes. she also had a background in non-profits so YES i choose HER as my first whatever the equivalent is of a coding bootcamp mortal kombat fighter.  
[unfortunate exclusion: a mortal kombat gif, though not for lack of effort, i just wasn’t really vibing with any of the ones i found] my goal in this blogging journey is to post a recap of my week: what i learned, how i am feeling but also challenges i ran into it and the googling that led me to solve it.
another aspect that i am hoping to use this writing space for is to manage any anxiety, stress and imposter syndrome that i have a sneaking suspicion i will encounter during this process, to some degree.  
speaking of anxiety, stress and imposter syndrome (oh, my!) a different women tech makers guest left me with a mindfulness droplet WHICH WAS to remain in a state of curiosity.  to not get bogged down or overwhelmed when trying to get something to work.  it seemed to me that, for her, remaining curious, rather than in a state of overwhelmed-ness, allowed her to compartmentalize different smaller parts of the overall “problem”.  Tackling a problem in parts, one smaller step at a time, ultimately created a sense of excitement, productivity and increased a sense of self efficacy.  which these bitch needs. so, that sounds fucking tight, too. 
[forunate inclusion: this gif of lisa rinna from RHOBH that i do vibe with. see below]
Tumblr media
1 note · View note