teleren/devto huggingface dataset:
Project Elpis #3: Parallax Backgrounds
Published: 2020-07-19 00:13:25

Hi again!!!

This week I finished the attack movement for both the enemy and our main character, including the different hit/death effects and health stats.
Right now, when the character jumps while attacking, it stays in the air until it finishes the attack animation, so I'll fix that next week  (͠≖ ͜ʖ͠≖)👌

I also added knockback to the characters. At first, I had trouble making the knockback go in the correct direction. For example, when the slime hits the main character from the left side, we want the character to be knocked away to some distance to the right. The same applies to the slime. When the player attacks the slime, we want the slime to be knocked back as well. However, I couldn’t determine whether the characters were hit from the left or right side. 
```gdscript
var playerPos = playerDetection.player.position
	var dir = playerPos - self.position
	if dir.x > 0:
		knockback = Vector2.LEFT * 100
	elif dir.x < 0:
		knockback = Vector2.RIGHT * 100
```
In the end, I decided to use the player detection system that I made last week to get access to the position of the player. Therefore I can subtract the position of the slime from the position of the player to get the distance between them, and then determine if the x-coordinate is positive or negative. If it’s positive, then the player is to the right side of the slime. If it’s negative, that means the player is to the left side of the slime.  In addition, I made an enemy detection system so that the player can also have access to the position of the slime.

AND AND AND….
I made a new world with parallax backgrounds!!!

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/zhcsf8ot75z94dc2u6s2.png)

I placed five parallax layers in this world and the motion turned out much smoother than I thought it would be.
This is my first time making a parallax background, so I had to spend some time researching, but it was totally worth the time!

\- Katherine :)
CREATE A .NET CORE AZURE V3 FUNCTION APP USING VISUAL STUDIO
Published: 2020-07-28 19:35:39

In this tutorial I will be setting up a .Net Core Azure V3 Function app using Visual Studio 2019 with a timer trigger that emits an event to a Azure message queue. Hopefully I can help demystify some of the auto-magic stuff that happens for you when using functions.

[Read more](https://teckstack.io/teck-blog/create-a-net-core-azure-v3-function-app-using-visual-studio/)
Simple live-reloading tool for writing CLI applications in Go.
Tags: go, programming
Published: 2020-07-28 19:29:37


---
title: "Simple live-reloading tool for writing CLI applications in Go."
published: true
description: 
tags: #go, programming
---
# Background and problem to be solved.
As I was learning to write Go, I was often writing simple sample code and running it.
In that case, we had to go back and forth between the editor and the execution window, and we felt that our efficiency was decreasing because of the increase in steps.
So I wanted an environment that automatically detects when a file has been modified and builds and executes it automatically (live-reloading/hot-reloading).

# Solution.

I recommend using the `gohr` tool from Go.
https://github.com/longtime1116/gohr

If you like it, I would be very happy to receive a GitHub star:)

## Introduction and Usage.

Run the following command as described in [README.md](https://github.com/longtime1116/gohr/blob/master/README.md).

```shell
$ go get github.com/longtime1116/gohr
```

Then, just run the `gohr` command in your working directory.

The first argument is the name of the output file you want.

```shell
$ gohr main
```

# Extra.
You can use the `watch` command to achieve the same pseudo-like functionality without the need for such a tool.
It's a useful technique to keep in mind, since it can be used regardless of the situation.


```shell
# Repeat the command every second.
$ watch -n1 <command>
```

(For example, you can do something like `watch -n1 go run main.go` with the above command and it will run every second.)
DBAD license for open source projects, and thoughts
Tags: opensource, legal
Published: 2020-07-28 19:29:08

[DBAD license](https://github.com/philsturgeon/dbad/blob/master/LICENSE.md) stands for `Don't be a d*ck`, which intended for a safer modification of [WTFPL](http://www.wtfpl.net/) license (which is of ALLOW ALL kind)

> As developers we all want to protect our code from d\*cks that try to steal, sell, infringe or just generally rip us off.

So, the real problem here is, some people are d\*cks that either abuse the law system, or lack thereof.

<small>I also realize that there is also soft plagiarism, unintentional or real d*ck as well.</small>

Also, I recently come across [hiQ vs LinkedIn](https://www.cpomagazine.com/data-privacy/what-the-hiq-vs-linkedin-case-means-for-automated-web-scraping/), and my thought is that

- Whether originally intended or not, when you let the client sign the tl;dr ToS, you can always make it a legal case. (So, unfair ToS is totally possible. In contrast, not sure if legal man totally think everything in advance, so sometimes overdone, sometimes under.)
- When it is a decided lawsuit, people will try to win, rather than listening. (Probably as losing will affect ALL stakeholders, regardless of reasons.) At that time, both sides decided to be a d\*ck.
- Isn't that also the case with LICENSE, and when you decided to take a legal action?
The 7 Most Popular DEV Posts from the Past Week
Tags: top7
Published: 2020-07-28 19:27:10

---
title: The 7 Most Popular DEV Posts from the Past Week
published: true
description: A round up of the most-read and most-loved contributions from the community this past week.
tags: icymi
cover_image: https://thepracticaldev.s3.amazonaws.com/i/sfwcvweirpf2qka2lg2b.png
---
Every Monday we round up the previous week's top posts based on traffic, engagement, and a hint of editorial curation. The typical week starts on Monday and ends on Sunday, but don't worry, we take into account posts that are published later in the week. ❤️

#1. Scalable Vector Graphics

Alexi explains what SVGs are and why they're beneficial. Next time, you'll think twice before using JPEGs, PNGs, or GIFs!

{% link https://dev.to/alexi_be3/benefits-of-svg-10mn %}

#2. Managing Digital Identities

Kim helps us understand what goes on behind the scenes when using OAuth 2.0 and OpenID Connect standards.

{% link https://dev.to/auth0ambassadors/authorization-and-authentication-for-everyone-4ol8 %}

#3. Pros and Cons

JWT Tokens are awesome, but how do you store them securely in your front end? Michelle walks us through a comparison of the pros and cons between localStorage and cookies.

{% link https://dev.to/cotter/localstorage-vs-cookies-all-you-need-to-know-about-storing-jwt-tokens-securely-in-the-front-end-15id %}

#4. Make a Difference

Hannah shares thirteen tips for site accessibility - these changes could make all the difference to someone's experience when navigating a site using assistive technology.

{% link https://dev.to/erhannah/13-ways-to-level-up-your-site-s-accessibility-22c6 %}

#5. A Dark Path

Lars shares their opinion on the current state of the Angular Ecosystem. TLDR: not looking good.

{% link https://dev.to/layzee/angular-struggles-in-2020-1po4 %}

#6. Holograms, eh?

Vitor shares a shortlist of powerful VS Code shortcuts they wish they knew about sooner.

{% link https://dev.to/vtrpldn/vs-code-shortcuts-that-i-would-teach-myself-if-i-had-a-time-machine-with-limited-fuel-36md %}

#7. Time to Practice

Fayaz shares eight interview assignments they were tasked with throughout their interviewing process. Fayaz includes the title of the role, industry, and whether or not they were selected.

{% link https://dev.to/fayazara/a-list-of-assignments-i-was-given-when-interviewing-for-companies-1opm %}

_That's it for our weekly wrap up! Keep an eye on dev.to this week for daily content and discussions...and if you miss anything, we'll be sure to recap it next Monday!_
🚀 Vercel API Client for Python
Tags: sdk, python, showdev, vercel
Published: 2020-07-28 19:21:11

---
title: 🚀 Vercel API Client for Python
published: true
description: An unofficial python client for the vercel api
tags: 
- sdk
- python
- showdev
- vercel
---

## Overview

Introducing a python sdk for interacting with the Vercel API!

```bash
pip install vercel
```

Get started in just a few lines:

```python
import vercel

vercel.api_token = 'xxxxxx'

user = vercel.User.get()
# { ... }
```

Or you can remix this glitch project:

{% glitch plump-troubled-dust %}

## Get Involved

If you'd like to get involved, check out the repo below:

{% github wulfmann/vercel no-readme %}

You can see the supported resources [here](https://github.com/wulfmann/vercel/blob/master/docs/supported-resources.md).

If you'd like to contribute or find a bug feel free to [open an issue](https://github.com/wulfmann/vercel/issues/new/choose).

------

Follow me on [twitter](https://twitter.com/wlfmnn)
Get help with CSS fast - in the CSS Discord
Tags: css, webdev
Published: 2020-07-28 19:20:06

StackOverflow, and Quora, and Dev.to - and all of the places have their specialty. Discord chat servers (or slack or IRC etc.) - have the '*speed*' factor. You ask for help / and someone might just say - "Here you go!" "I see what you missed here... you'll have to just learn x and y to flesh out your conceptual model on these points..." - and BAM! You just leveled up. Questions like:

> Why doesn't my 'code' work

Don't belong in StackOverflow - but they _DO_ belong in a tech-specific chat room.

It's very clear that CSS is _THE SCARIEST_ thing to talk about for programmers. Why?

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/7l8rl5y16ai1qrv5t6fl.gif)

Some of our most lovely friends who have been in the industry for 20 years will get really tense around the subject. We all learned differently: at different times: from different resources: and different people... and your mental model of CSS is like a dirty secret. 

>What if they find out that I don't really understand how it works?

Well, screw that! CSS in 2020 is like - _the most magical time period ever_... so - do _EVERYONE_ a favour - and just **learn it**.

Discuss it, share your stories, share your edge cases, ask questions - and yeah. Just do that, _please_.

[CSS discord invite](https://discord.gg/pFc6XmH)
Corona Live - Covid-19 Statistics Dashboard.
Tags: coronavirus, covid19, dashboard, statistics
Published: 2020-07-28 18:58:56

It's a live updating dashboard that shows in a clear and organized way the number of local and global coronavirus cases with active, recoveries and death rate statistics.

I started it 4 months ago and I have spent more than 400 hours building it and perfecting it.

I just released a big update that added an English version of the website an addition to more detailed stats including number of cases in each city in Israel, hospital occupancy, number of doctors and nurses who are infected with the virus or that are in bidud and more.

Plus a dark mode too 😎

I have created [Corona Live](https://coronaisrael.live/en/) with the goal of giving people a clear view of the current Covid-19 pandemic situation, and hopefully making people realize how serious it is and how we have to all work together to stop the spread.

Please check it out here: https://coronaisrael.live/ (Hebrew)
or the English version here: https://coronaisrael.live/en/
Git 2.28 brings default branch option
Tags: git, news
Published: 2020-07-28 18:50:56

---
title: Git 2.28 brings default branch option
published: true
description: New update with Git provides option to set default branch
tags: git, news
//cover_image: https://direct_url_to_image.jpg
---

Git 2.28 dropped yesterday (July 27, 2020) and it brings a nifty feature to set a default branch.

```
$ git config --global init.defaultBranch main
```

Any projects initialized with `git init` will now use the branch name `main`. 
 
For more highlights of Git 2.28: https://github.blog/2020-07-27-highlights-from-git-2-28/
Secret Github Feature
Tags: github, trick
Published: 2020-07-28 18:37:06

I am pretty sure most of you might have figured this out by now, but for the ones who still haven't tried this out, go to GitHub and create a repository with the same name as your GitHub username. Initialize this repository with a Readme and head to your GitHub profile to see something like this 👇🏽👇🏽

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/tnbds635ffi4m88zn78n.png)

Try this out and share your comments below :)
Thanking the 404
Tags: webdev, writing
Published: 2020-07-28 18:35:45

---
title: Thanking the 404
published: true
description: Writing a post to thank all the people who have been reading my stuff
tags: #webdev #writing 
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/0ti9a73c8wwumbkdwb7d.jpg
---

Hey friends!

This post is a different one, kinda breaking the routine a little. This morning I got a notification from DEV that I had a new follower and that now I have *exactly* 404 followers on here.

Honestly, the specific number made me laugh. It's the first time I think I been happy or felt good by a 404 ever in my life hahaha.

But most importantly than that funny event is knowing that there are over 400 people following the stuff I write here (probably much less considering the bots or some rarely active accounts.)

I never really paid much attention to those numbers in any social media network but here is actually special like it means something more than vanity metrics, besides folks here, are on a different mindset and this community has become my new tech home.

I didn't start writing to get followers or to become popular or anything like that, it was part of one of my "new year goals" as I wrote on my first post this year 

{% link juanfrank77/new-year-new-goals-2dj %} 

Since then I've encountered a lot of obstacles that all newbie writers face when starting out and trying to make something useful, plus writing stuff that would pass my inner critic's approval has been quite a **big** challenge.

I've been learning a lot from the articles here, getting to know really skilled and talented individuals and benefitting in general from the community that I wanted to contribute back and share the stuff that has worked for me and some of my friends in hopes that it will help others who haven't been exposed to that kind of topics.

All in all, I want to thank everyone that is part of this 404 group for paying attention to what I've posted here or for giving me a vote of trust by pressing that "follow" button. 

Like some people say "If your work can help at least 5 people then it's worth it." And with this amount, I see that it's been _more_ than worth it.

Thanks to you all for being part of this journey and giving me a reason to improve my writing and refining what I've learned in order to share it and make it accessible at a wider scale. 

![thank you](https://media.giphy.com/media/26gsjCZpPolPr3sBy/giphy.gif)

---

<span>Photo by <a href="https://unsplash.com/@visuals">visuals</a> on <a href="https://unsplash.com/">Unsplash</a></span>
How to delete all users from Firebase
Tags: firebase, serverless, googlecloud
Published: 2020-07-28 18:35:25

Sometimes we need to [wipe out our entire Firestore database](https://dev.to/wceolin/how-to-delete-all-the-data-from-your-firestore-database-4i60). When that happens, it might also be useful to delete all existing users from the Firebase console.

As far as I know, we can't do that using the CLI. However, we can create a Cloud Function with an HTTPS trigger to delete all users:

```typescript
export const deleteUsers = functions.https.onRequest(
  async (req, res): Promise<any> => {
    const allUsers = await auth.listUsers();
    const allUsersUID = allUsers.users.map((user) => user.uid);
    return auth.deleteUsers(allUsersUID).then(() => res.send("deleted"));
  }
);
```

---

[Follow me on Twitter](https://twitter.com/ceolinwill)
About The Business Fame
Tags: onlinebusinessmagazine, b2bmagazine, globalmediaorganization, thebusinessfame
Published: 2020-07-28 18:10:15

The Business Fame (TBF) is Business-to-Business (B2B) Magazine, a platform to share knowledge for business insights, analysis, business outreach and technological advancement. In this data driven era, we bring to you the asset of information, procuring and verifying it with thorough attention to offer the highest quality. Along with highly precise insights on industry-specific trends, news and topics, it is also a podium where businesses can advertise their products and services to expand their brand’s presence and awareness.

Our viewers comprise of individuals from various verticals, experts, industry leaders, laymen as well as potential clients for businesses. They have the access to different magazines, where they can see latest market trends, offerings industry knowledge, market disruptions, competition, and future predictions or market demands to be aware and strategize growth.

What we offer

Our services encompass two key offerings, a business magazine and a digital platform.

Business Magazine: The very first step to crafting a masterpiece of a magazine is the research about the industries, geographical areas, market trends, and more. As soon as the key focus of any issue is carefully decided, we move on to researching about the main players, the leaders and the individuals or companies that making a difference in that particular niche.

Meticulously studying their journey, their aims and their profile, we bring to our readers the stories that are beautifully drafted to offer the right information and to inspire those with similar dreams.

Showcasing the brands in the best light, this is a platform to expand the reach of your brand. Right from the interview to content creation to designs to finally publishing the issue, you are at the center of all our processes with quality and transparency being our strong suit.

Digital Platform: We render a digital platform for information and advertisement to all kinds of businesses. It is a virtual stage where profiles, ideas, insights, trends, predictions and entrepreneurship stories are shared. Alongside, with content creation and digital marketing being one of our fortes, we offer a platform for your business to reach people from all walks of life, all around the world.
TC39er.us
Tags: javascript
Published: 2020-07-28 18:30:39

#[TC39er.us](https://TC39er.us)

Hear it from folks at TC39!

[tc39er.us](https://TC39er.us) a podcast where we talk to the TC39 delegates about JavaScript and everything else!

P.S: This is not an office TC39 podcast, but it is discussions with delegates by a delegate.
3 Top Webites for freelancer work
Tags: webdev, freelance, work, devops
Published: 2020-07-28 18:09:04

To help the community i list below 3 great websites where you can apply as a freelancer in programming. They offer jobs for anyone in development. The first 2 are great as they feature only the top 1-3% of freelancers and high quality clients. You just need to pass a skills test (some javascript, frontend, backend test) and you get hired by top clients all over the world!

<h3>1. Toptal</h3>
Website: <a href="https://www.toptal.com/">Toptal</a>
Requires skills test - high yield

<h3>2. Soshace</h3>
Website: <a href="https://soshace.com/">Soshace</a>
Requires skills test - high yield

<h3>3. Freelancer</h3>
Website: <a href="https://www.freelancer.com/">Freelancer</a>
No skills test - lower yield

<h3>Bonus</h3>
Website: <a href="https://www.upwork.com/">Upwork</a>
No skills test, submit resume - medium yield

Hit these up and best of luck!
14: Towards Shalom
Tags: community, faith, education
Published: 2020-07-28 18:00:00

---
title: 14: Towards Shalom
published: true
date: 2020-07-28 18:00:00 UTC
tags: community, faith, education
canonical_url: https://share.transistor.fm/s/b2b895b0
---

> What does flourishing look like? 

{% spotify spotify:episode:1PEnIwHXOEYppbxRsvGf3n %}

Nicole Williams joins Henry to chat about faith in a less reductive way (than many of us may of grown up with): on rationality, the Church as a body, education, liturgy, family, being productive, and simply doing things for it's own sake. Was rather hard to say what we were getting at until the very end, all tying back to a picture of shalom! Transcript at https://hopeinsource.com/shalom.

**Headings**:
- Faith in Public
- Apologetics and Rationality
- Church as a Body
- The Machine Stops and Pandemic
- Remote Work and Education
- C.S. Lewis on Living and Dying
- Secular/Spiritual Distinction (1 Corinthians 10:31)
- On Disrupting Church: Reductionism
- "Family": Unity and Humility
- Non-neutrality of Technology
- Liturgy and Senses
- Productivity and Fun
- Education, Learning is Autotelic
- Professionalization
- Shalom

Nicole: https://twitter.com/nwilliams030
Henry: https://twitter.com/left_pad
A new way to support open source
Tags: opensource, maintainers, webdev
Published: 2020-07-28 17:51:54

Open source is an amazing concept. Brilliant developers write code to do all sorts of interesting and useful things, and then anyone can use that code and write even more code on top of it themselves. That is very, very cool. As a frequent user of open source, I benefit from this combination of generosity and brainpower. And as a result, I think a lot about ways to give back. I'm not the only one - GitHub sponsors, Open Collective, and Patreon all address this desire in one way or another. But given the nature of open source, where code is written on top of code, these 1:1 ways of giving back just feel a little incomplete. When I give back to a maintainer of a package I'm using, I'm really only giving back to the person who put the last block on top of the tower. Their package was built on other packages which was built on other packages - so why isn't there a way to give back to all the builders? Well, now there is.

Some friends and I built Flossbank to address two concerns: First, we think it should be easy to give back to not just the maintainer of a package, but the full dependency tree of that package. Second, we think there should be a way to give back without having to open up your wallet. (If you have the disposable income to do so, great - but if you don't, we want to give you a way to give back too.)

Flossbank is a package manager wrapper. It takes a dependency tree snapshot when you install an open source package (like when running `npm install`). Then it distributes revenue to all the packages in the tree. What revenue? With Flossbank you can donate monthly or you can choose to see text-based ads while `npm install` is spinning away. Either way, all of those "dependencies of dependencies of dependencies" are getting their share.

If you're interested in learning more check us out at https://flossbank.com/how-it-works?rc=dto, or if you have general feedback don't hesitate to comment!