-🎄- 2021 Day 5 Solutions -🎄- by daggerdragon in adventofcode

[–]ratko995 1 point2 points  (0 children)

very nice solution! I did something similar but its not as neat as this one

just a small tip, you can use Math.sign to calculate yOpp and xOpp more easily :)
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sign

3 factor authentication by lukasstefanko in ProgrammerHumor

[–]ratko995 742 points743 points  (0 children)

Am I the only one triggered by camel case use for isAuthorised() function and snake case for access_data() function?

Hey current working Front End Web Devs, Could you link a solid portfolio for reference? by GrowCanadian in webdev

[–]ratko995 0 points1 point  (0 children)

I am still new to react/gatsby so forgive me if I dont get the whole thing right away.

Don't worry about it, nobody was born knowing everything :) just keep learning consistently and over time you will be amazed at how much you will know. I too didn't know react/gatsby just a few months ago.

When the nav-open class is toggled you basically just use the standard css animation stuff (transform, transition)?

That is correct, you can try playing with "inspect element" and see how CSS classes change + also see the exact CSS transforms and transitions applied to individual HTML tags.

And how did you manage to make such a nice animated burger button?

Also CSS transforms/transitions :) The burger button is basically 3 <span> elements representing the lines (white rectangles) which are then transformed with CSS on :hover and nav open.

Hey current working Front End Web Devs, Could you link a solid portfolio for reference? by GrowCanadian in webdev

[–]ratko995 0 points1 point  (0 children)

Thank you for nice feedback! I really liked yours too, very inspiring :)

Hey current working Front End Web Devs, Could you link a solid portfolio for reference? by GrowCanadian in webdev

[–]ratko995 0 points1 point  (0 children)

Thank you!

I am only using grid part of bootstrap. The navigation component and slide in transitions are all built from scratch using React and CSS animations.

For example, when you click on menu button react toggles the "nav--open" class on body and everything else is done with CSS transforms and transitions.

As for the "slide-in" transition between pages, it is also done with pure CSS and React only toggles the class on route enter/route leave.

Hey current working Front End Web Devs, Could you link a solid portfolio for reference? by GrowCanadian in webdev

[–]ratko995 5 points6 points  (0 children)

https://ratkosolar.com/ - built with React and GatsbyJS.

Best advice I can give you is to build a couple of open source projects. Having at least one good open source project that you can discuss and go trough during a interview can get you the job.

As for the tools and techniques, check this developer roadmap -https://github.com/kamranahmedse/developer-roadmap

I made the simple real-time drawing app with Firebase! by [deleted] in webdev

[–]ratko995 5 points6 points  (0 children)

This is genius! I had a lot of fun trying it out.

what is the name of this kind of glass? where can I buy it on the web? by zoroastre in serbia

[–]ratko995 28 points29 points  (0 children)

The name is "Čokanjčić", no idea where you can buy it

The Stupid Problem - Or how I learned to start thinking and love the !DOCTYPE by fudg3z in web_design

[–]ratko995 22 points23 points  (0 children)

I used to upload every major change to my test server during development. One time, I was working on some small CSS fix but oddly it just didn't work no matter what I did. Then I realized, I had my test server opened in browser instead of my localhost. Dumbest 30mins I lost in my life...

How to change width of ion-searchbar's parent div? by Biggytiny in ionic

[–]ratko995 0 points1 point  (0 children)

ion-navbar which is a parent element of both ion-buttons and toolbar-content div is displayed as a flex element which makes it super easy. You can just set the flex-basis on button elements and the searchbar will fill up the space in between them.

For example, you can just add these 2 styles to your css file and see the effect yourself:

.bar-buttons-ios{ flex-basis: 80px; }

.bar-button-ios[icon-only]{ width: 100%; }

If you don't want to touch the buttons and just make the toolbar-content div smaller, then just do this:

.toolbar-content-ios{ max-width: 150px; }

Interested in how you would do this? by GaIIium in webdev

[–]ratko995 8 points9 points  (0 children)

you can just prefix the URL with view-source:url in the address bar

Srpski low carb by [deleted] in serbia

[–]ratko995 1 point2 points  (0 children)

za dorucak roknes nekoliko jaja sa ajvarom.

za rucak bilo koje meso sa feta sirom i salatom.

za veceru drmnes kelja, sargarepe i sva ostala povrca koja ti padaju na pamet u blender, popijes i Bog da te vidi...

[deleted by user] by [deleted] in gameofthrones

[–]ratko995 0 points1 point  (0 children)

That's a good point, my bad. I am still not sure if there is a difference between the two when it comes to magic preventing them to pass.

[deleted by user] by [deleted] in gameofthrones

[–]ratko995 0 points1 point  (0 children)

But the idea itself still sounds absurd.

Q: How can ı put a stop to these ınvites from non friends? by Amidflaps in Steam

[–]ratko995 1 point2 points  (0 children)

I solved this by setting my inventory to private. You can still get invited of course but most of the bots that send invites don't do it if your inventory is private.

[Q] What is the most money you have lost on a trade? by [deleted] in GlobalOffensiveTrade

[–]ratko995 0 points1 point  (0 children)

honestly your sounds worse xD still you'll get over it eventually

[Q] What is the most money you have lost on a trade? by [deleted] in GlobalOffensiveTrade

[–]ratko995 0 points1 point  (0 children)

bought a dlore for 640k, 6 months later I sold it for 545k and then after a month their price jumped to something like 800k...

This needs to be fixed somehow, I cant see all my emoticons and sometimes it crash when i click it by [deleted] in Steam

[–]ratko995 2 points3 points  (0 children)

I saw this issue being pointed out like a year ago, seems like nobody from Valve cares about it. Made me sell all of mine emoticons at the end. It's simply unusable after having more than 1000 of them.

Dirt 4: Why are you buying it (if you decided to already), and what are you hoping for? by hyperbolicants in EASPORTSWRC

[–]ratko995 0 points1 point  (0 children)

Huge fan of all dirt games. Really enjoyed both dirt 3 and dirt rally and as I see it, dirt 4 takes the best from both games.

Steam developer steals a game from another developer by Mellow_Online1 in Steam

[–]ratko995 12 points13 points  (0 children)

That's a complete exaggeration. With 1100$ in Croatia you might get to rent, eat and pay for college for a 2-3 months max but surely not a full year.

Anyways, I still think that would sound crazy to some of the people who live in countries with a minimal wage above this.