#repost Day 82/100#100daysofcode 📍Setup Update 🔥✌🏼 ▪️ So today I got a ThunderBolt 3 dock from @caldigit_us ! It's really awesome! Basically I can connect everything to it. It has his own power, so I don't even need the macbook charger. I connect a single usb-c cable from the dock to my macbook pro and I'm done 🔥 ➡️ I have my 2 monitors attached to it, my keyboard, mouse, charger for airpods, charger for phone... It can also give you audio output, audio input, and it also has ethernet, sd card reader and a lot of usb a ports and usb c ports! 🚀 I'm also trying this new layout, with 1 monitor centered, and then another to my left and my macbook to my right. I will have the terminal always on the macbook monitor and use the other 2 big monitors for working. It's not has pretty as before in terms of layout, but I think it's more productive! 👍🏼🤔 📍 What do you think of it? 🤗
It Tuesday people or I like to call it Monday +1 :) Lots and lots going on at the minute! . . First, work don’t get me started on work, its far too busy for my likeing but I am still Carrying on as normal doing my thing, even taking my time to start learning PowerShell scripting( I am really starting to dig this whole Windows engineer thing) . . I have also just updated my iPad to iPad OS and man while it is a beta it is smooth and it is good, loving all the new features, but I think I disagree with the fact you have to download the files app, I might review it in about a week. . . Now coding, I have moved on a bit from team treehouse and following a recommendation in work I have started on #hackerrank, I am enjoying it so far but again I’ll leave this to its own post. . . So are any of you awesome people running any of the Apple Betas? Are you chasing your dreams and crushing your goals
It's my day 3 of 30 minutes Python. I'm really amazed by the ability of xargs and xxargs functions. They really adds simplicity to the functionalities of functions in Python. Totally blowned up the ability and simplicity of Python. ❤
Day 76 🕒 #100daysofcode Back to React course 📚! ▫▫▫▫▫ ➡️Today I started looking into Redux Saga. This React course is so big! I am so happy to be doing such a nice course and feeling proud of myself because I'm almost finishing it and after this I will start planning a new side (small) project to cover some concepts I've been learning so far 📝! ➡️What is Redux Saga 👉 It's a library used to handle side-effects in redux. With Redux-Saga we create "Sagas" which are functions which we run uppon certain actions to handle all the side-effect logic! ➡️What is a Saga 👉 It's kind of a function that has a special "*" after the "function" keyword defining a generator function. It comes from Next Gen JS and we can execute this functions incrementaly, which means that we can call those Sagas and instead of running immediately, we can pause during execution to wait until some asynchronous execution code finishes. For this we have a special keyword to prefix every action - yield. This will execute the line of code and then wait for it to finish. As soon as it finishes we can run more yield expressions or dispatch a new action using the "put" keyword from a "redux-saga/effects" import. ➡️What is side-effect logic 👉 When we use Redux-thunk we usually create actions side by side with reducers. Everything we have inside our actions that has extra logic like local storage accesses, reaching out to a server, changing routes or executing timers (settimeout) and don't directly manipulate the redux store is side-effect logic. Those expressions might do something which leads to a different state and in the end will store some data into redux store but at the time of execution those lines it won't be consumed directly by the reducer. 🔁We use redux-saga in parallel to redux-thunk to remove the code from our redux actions that is not directly manipulating our redux store. This way we end up with a
251/365, Hello 🙏, Happy Tuesday 💙 🔸 ➡️✔️ WHAT HAVE I DONE TODAY? 🔸 🔹Today I started The Burger Builder Project from my React Course, which is my first Real App Project with React; 🔸 🔹There is a 3 core steps of planning an App in React :- 1. Component Tree / Component Structure; 2. Application State ( Data ); 3. Components vs Containers; 🔸 🔹 So, today I plan the Component tree, Layout and state; and setup and code the Layout Component and Burger Builder Container; 🔸 🔶 Join the Community 👉 #buildupdevs 🔹 🔸Music: Youth 🔸Musician: @iksonofficial 🔹 ➡️✔️ QUOTE OF THE DAY 🔹 “ It is better to risk starving to death than surrender. If you give up on your dreams, what's left? ” –Jim Carrey 🔸 #quoteoftheday 🔹 Thank you 🔥❤️🙏
🔹Drinking Water🔹 [Day 10 / 100] The weather these days is super warm. So drinking enough water is a must. I tend to drink too little water. So this weather and this week's #devinitelyhealthy#devchallenge are a perfect reminder to drink more water. Because of this warm weather it's hard to be very productive. That's why waking up at 6 am is a good solution. The world is silent and the air is cool. It really ups my productivity along with drinking more to stay hydrated. Trying to stay out of slump, because the final exam is almost here. I learned more about functions and especially recursion. It's quite a new subject to me. So my challenge is to think 'recursively'. Let's see how this goes.
Generating Images on the fly! For this project, I took the code from a previous project, which writes text on images (I was hoping to make a meme maker app). The most fun I had was when I was D.R.Y.ing the code. Was really hoping the code didn't break or generate random errors. After a few minutes, I was able to write three new functions, which made sure I didn't have to repeat a huge bunch of code every time I had to write on the image, or split a long string into a list of tiny strings. have you D.R.Y.ed any project yet? how was it? ---------------------------------------- LIBRARIES USED 1. PIL generate the image Write on image save image 2. inflect convert numbers to words ---------------------------------------- HOW DOES IT WORK? This script does two unique things I worked on different projects 1. Using the library Inflect, it takes the int number and turns it into words. int(127) becomes str("one hundred, twenty seven") 2. Creates an Image, (1080x1350, ideal for insta) 3. Take the string from step 1, and determine the font size, 4. Write it on the image 5. Save it on desktop 🙃 Pretty straight forward. The code is available on my @Github, if the link is not in my bio, check out https://github.com/alikhundmiri/everything/tree/master/instagram_experiment C O D E ⬇️ pip install inflect import inflect def say_the_words(num): p = inflect.engine() string_ = p.number_to_words(num) return(string_) #web#webdev#sidegig#worldcode#bootstrap#thedevlife#codingpics#codinglife#codingisfun#buildtheweb#indiehacker#sideproject#coderworlds#codeuniverse#codingquotes#indiehackers#peoplewhocode#100daysofcode#webdevelopers#codingbootcamp#webdevelopment#programmerlife#programmingisfun#programmerrepublic#developer#programmer#coding
What's up happy Tuesday 🚀 It's been long time since I posted will try to get back on track with some more posts. I wasn't unproductive this time. In fact I was so busy with work I didn't get chance to post. How you guys doing lately?
Learning to get through and get better with coding barriers (aka bugs🐛). Kind of obvious — but you have to learn to be comfortable with asking for help. Programming is a collaborative skill, spending some time to figure it out by yourself is part of it. But going around and finding someone that can help is also part. And because everything is collaborative ✌🏻 the best way to get better at debugging is to help someone else. By heping people with their bugs you train your debugging muscle 💪🏻 and consequently fix yours much easier. Comment below what do you do when you get a nasty bug? 👇🏻 #developerstuff#thedevlife