teleren/devto huggingface dataset:
FREE PDF: 50 JavaScript Coding Challenges for Absolute Beginners
Tags: javascript, beginners, free
Published: 2020-05-09 00:34:01

Hi Dev.To Community,

I'm sharing a PDF with 50 JavaScript coding challenges (and their solutions). All solutions are presented in classic JavaScript syntax in order to appeal to beginners.

Advanced users can have fun too!

Download link:
https://codeguppy.com/site/download/50_coding_challenges.pdf

Happy coding!
How is Procedural Ruby a metaphor for life?
Tags: ruby, coding, bootcamp, programming
Published: 2020-05-09 00:01:15

The assignment today is to explain How is Procedural Ruby a metaphor for life?

I guess the first thing one should ask themselves is . . . WHAT ON EARTH IS PROCEDURAL RUBY.

I have been going through the Online Software Engineering part time course with Flatiron school and a few things I picked up on is that apparently. . .

Procedural programming, involves having data and procedures or instructions for operating on that data. In procedural programming, data and procedures, or instructions, are two separate things.

So how is that a metaphor for life? I think in life we are given the tools we need to be successful in life. However, without direction we will not know where or how to use the tools accessible to us.

Having the tools and having a guideline on how to use the tools to be successful is definitely a metaphor for every day life.


Originally published at https://sincerelybrittany.github.io on April 7, 2020.
Code Skills on Codeacademy
Tags: go, python, webdev, javascript
Published: 2020-05-08 23:59:06

I recently started to explore Codeacademy courses. It's really fun to pass my lockdown period coding.

If you are a student, Codeacademy is giving 90 days of pro, so this is an amazing opportunity.

I'm doing the following courses:
- Web Development path;
- Data Science path;
- Go;
- Circuits with Python;
- Java.
COVID-19 API - New version available
Tags: architecture, microservices, android, ios
Published: 2020-05-08 23:33:28

Hi there!

Just a short text to let you all know that in Nubentos we have just launched the new version of our successful COVID-19 tracking API (nCov-2019 API), which is over 1M requests in just a couple of months.

Version 2.0.0 comes with new resources and indicators, and allows you to filter by country or continent.

In a nutshell this is what you will find in the new nCov-2019 API v2.0.0 by Nubentos:

**GET /cases** - Total of active cases.
**GET /todayCases** - Today cases.
**GET /active**	- Active cases
**GET /deaths** - Total of persons death.
**GET /todayDeaths** - Today deaths.
**GET /recovered** - Recovered cases
**GET /critical** - Critical cases
**GET /casesPerOneMillion** - Cases per Million
**GET /deathsPerOneMillion** - Deaths per Million
**GET /totalTests** - Test Totals
**GET /testsPerOneMillion** - Test Per Million

As you can see, there's a lot of things that you can do now, that were not possible with the previous version.

Get ready for this new stage of the pandemic, where new outbreaks will need a close watch to keep them under control, and **people will be willing to be informed**.

In case you haven't signed up in Nubentos yet, do it now and stay tuned as we will keep our users properly informed for the deprecation of v1.0.0.

[Access the API here](https://apimarket.nubentos.com/store/apis/info?name=API-nCoV2019&version=2.0.0&tenant=nubentos.com&utm_source=devto&utm_medium=post&utm_campaign=launch&utm_content=v2), where you will find anything you need to test the API and easily integrate it in your digital products.

Spread the word!

Happy integration!
String Functions  (Python3)
Tags: python, codenewbie
Published: 2020-05-08 23:22:32

On my journey to learn my first language(python) I thought I would document anything that has helped me. As I get better and work on projects I will share them also.


Python contains many useful built-in functions and methods to accomplish common tasks. 
join - joins a list of strings with another string as a separator. 
replace - replaces one substring in a string with another.
startswith and endswith - determine if there is a substring at the start and end of a string, respectively. 
To change the case of a string, you can use lower and upper.
The method split is the opposite of join, turning a string with a certain separator into a list.




Some things I am interested in. 
https://linktr.ee/franczalezoriginals
Understanding 2D array (with python)
Tags: python, datastructure, array
Published: 2020-05-08 23:08:06

##2D Array


Two dimensional array is an array within an array inside, in this type of array the position of a data element is refered by two indices , it's represents a table with row and columns of data. An example of this can be a recolect of the temperature in a week:

* Day 1 - 11, 12, 5, 2
* Day 2 - 15, 6, 10
* Day 3 - 10, 8, 12, 5
* Day 4 - 12, 15,8, 6

In ther array this can be represented like this:

``` T = [[11, 12, 5, 2], [15, 6,10], [10, 8, 12, 5], [12,15,8,6]] ```

# __Accesing__ values in a two dimensional array

How I write before for you can acces of a specific value of the array, you have to use two indices. One index referring to the parent array and other to refer the position inside the parent:

```python
T = [[11, 12, 5, 2], [15, 6,10], [10, 8, 12, 5], [12,15,8,6]]

print(T[1][2])
```

When the code above is execute the output is ``` 10 ```

To printe the entire 2d array we can use the for loop to iterate this:

```python
for r in T:
    for c in r:
        print(c, end = " ")
   print()

```

output:
``` 11 12 5 2 
15 6 10 
10 8 12 5 
12 15 8 6 ```

## __Inserting__ values in the two dimensional array

We can insert new data at specific position by using the _insert()_ method and specifying the index:

```python
T.insert(2, [0,5,11,13,6])

for r in T:
    for c in r:
        print(c,end = " ")
    print()
```

output:
```11 12 5 2 
15 6 10 
0 5 11 13 6 
10 8 12 5 
12 15 8 6 ```

##__Updating__ values in two dimensional array

We can edit the entire inner array or some specific element by reassigning the values using the array index:

``` T[2] = [ 11, 9]
T[0][3] = 7```

Now the array will be:

```11 12 5 7 
15 6 10 
11 9 
12 15 8 6```

##__Deleting__ the values in two dimensional array

We can also delete the entire inner array or some specific data using the index and the keyword _del_ before:

```del T[3] ```
The array will be:
```11 12 5 2 
15 6 10 
10 8 12 5````


Thank you for read.
3D Drawer Animation - Flutter
Tags: flutter, android, ios, mobile
Published: 2020-05-08 22:55:44

With Flutter is possible to create beautiful UIs with challenging animations.

Here's one that I've made, that shows a tridimensional drawer inspired by [this design](https://dribbble.com/shots/7400492-Travel-service-Mobile-concept) and [this animation](https://dribbble.com/shots/4773637-3D-flip-menu).

![image](https://github.com/CarmineToriello95/travel_app_ui/raw/master/assets/demo/travel_app_ui.gif)

Here's the code on [Github](https://github.com/CarmineToriello95/travel_app_ui).

For the 3D Drawer Animation, I've created and published a package, called tridimensional_drawer, that you can find [here](https://pub.dev/packages/tridimensional_drawer).

Hoping you can find it interesting and useful 😁
Basically whenever a dev rants, he comes here
Published: 2020-05-08 22:28:17

I rant a lot especially when I see stupid/irrational/unpractical/annoying/unfavourable/unlikable/undoable/impractical BS yet proven or PR'ed otherwise - I come here! For example: Wrapping `new Car()` inside a function `createNewCar()` inside yet another `util-cars.js`
Day 134 : Late Night
Tags: hiphop, code, coding, lifelongdev
Published: 2020-05-08 22:18:28

_liner notes_:
- Professional : Pretty good day. Great way to end the week. Had some more talk prep sessions. Picked up some more tips for my own presentation. Replied to a StackOverflow question. Worked on a blog post. Ended my day watching a new show some coworkers launched on Twitch called "The Late Night Build". It went pretty awesome! You'll be able to watch that and many other shows over at https://www.twitch.tv/vonagedevs/videos

- Personal : Last night, made some pretty good progress on my current side project. Laid the foundation. Now just have to build the components and the logic on when to show them. Oh, and I was able to catch up on "Boruto", so I got some Japanese practice in as well.

![An early morning in a misty field in Maple Ridge, BC, Canada](https://dev-to-uploads.s3.amazonaws.com/i/2ezu0m9v1rd8vnd7kaqg.png)

Going to go through some tracks for the radio show tomorrow and do the pre show work. Still have to do my laundry. Want to also start building the components for my personal project.

Have a great night and weekend!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube NQDLEdX-Bio %}
Check If It Is a Straight Line
Tags: leetcode
Published: 2020-05-08 22:17:37

You are given an array **coordinates**, coordinates[i] = [x, y], where [x, y] represents the coordinate of a point. Check if these points make a straight line in the XY plane.
####EXAMPLE 1
![example 1](https://assets.leetcode.com/uploads/2019/10/15/untitled-diagram-2.jpg)
`Input: coordinates = [[1,2],[2,3],[3,4],[4,5],[5,6],[6,7]]
Output: true`

####My Solution

To check the coordinates in a straight line we will compute the slope of the first two points and check if the slope of the next points is the same or not. If the slope is same then points lie on the straight line and we will *return true* otherwise, we will *return false*

#####Firstly, 
we will check the length of the coordinates array, if there are only two points we will *return true*   
 ```javascript
    if(coordinates.length<3)
        return true
```
after that we will calculate slope using the formula 
for points (x1,y1) &amp; (x2,y2)
slope will be given by-`slope = (y2-y1)/(x2-x1)`

```javascript
var slope = ((coordinates[1][1]-coordinates[0][1])/(coordinates[1][0]-coordinates[0][0]))
```
after that its pretty simple now we just need to check whether the slope of other point is equal to *slope* or not

```javascript
for(i=2;i<coordinates.length;i++){
        if(slope!== ((coordinates[i][1]-coordinates[i-1][1])/(coordinates[i][0]-coordinates[i-1][0])))
            return false
    }
```
#####*Complete Solution*

```javascript
/**
 * @param {number[][]} coordinates
 * @return {boolean}
 */
var checkStraightLine = function(coordinates) {
    
    if(coordinates.length<3)
        return true
    
    var slope = ((coordinates[1][1]-coordinates[0][1])/(coordinates[1][0]-coordinates[0][0]))
    
    for(i=2;i<coordinates.length;i++){
        if(slope!== ((coordinates[i][1]-coordinates[i-1][1])/(coordinates[i][0]-coordinates[i-1][0])))
            return false
    }
    return true;
};
```
Challenge Frontend Mentor
Published: 2020-05-08 22:16:42

Acabei de concluir um desafio de codificação front-end do Frontend Mentor.

Você pode ver minha solução aqui: https://lnkd.in/d33txnG

Realizei um incremento no layout, espero que gostem.

Todas as sugestões sobre como melhorar os desenvolvedores front-end da minha rede são muito bem-vindas. Obrigado!

Code: https://github.com/pmarcelojr/Four-card-feature-section
Run Odoo in docker for local development
Tags: odoo, docker
Published: 2020-05-08 22:01:13

anyone who is new to Odoo or even experienced developers may have a problem in install odoo in there local devices,So I'm going to show few tips to run odoo using  [docker](https://www.docker.com/).

#### :bell: first this technique assume that you are running a linux distribution like (ubuntu, debian, redhat, ...).

now let's do it.

* we are going to install Docker CE using [https://get.docker.com/](https://www.docker.com/) if you already have it installed skip this step
to check if you have docker install run 
```bash
docker info
```
it's going to show details of the current version of docker installed if not run :
```bash
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
```
after that add the your user to the docker group
```bash
sudo usermod -aG docker $USER
```
######where $USER is the name of the user

* we are going to create a new postgres database server container(don't worry if you don't understand the meaning of the container you can check at [docker](https://www.docker.com/) ) 
```bash
docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name postgres_db postgres:10
```

* Now we can start an odoo server 
```bash
docker run -p 8070:8069 --name odoo --link postgres_db:db -t odoo
```
##### this is going to start latest odoo version which is 13 (in the day the post written) 

now in your browser go to [http://localhost:8070](http://localhost:8070/) and :tada:

and to stop it run 
```bash
docker stop odoo
```

to start it run 
```bash
docker start odoo
```

to run other versions of odoo just change the tag to odoo:11.0, or odoo:12.0
like 
```bash
docker run -p 8071:8069 --name odoo --link postgres_db:db -t odoo:11.0
```
### :thinking: now what about custom addons :question:
:bulb: we have volumes to add modules to the server.
```bash
docker run -v /path/to/addons:/mnt/extra-addons -p 8069:8069 --name odoo
--link postgres_db:db -t odoo
```
Software Development with a sprinkle of dialectics- TerminusDB Discussion #8
Tags: software, development, production, talk
Published: 2020-05-08 21:49:04

---
title: Software Development with a sprinkle of dialectics- TerminusDB Discussion #8
published: true
description: Every week the TerminusDB core team get together to hear a talk led by one of our members. The discussions are always very interesting, so we thought we'd share. This week we have our software engineer talking software development.
tags: software, development, production, talk
---
Every week the TerminusDB core team get together to hear a talk led by one of our members. The discussions are always very interesting, so we thought we'd share. This week we have our software engineer talking software development.
Why getting the job done is not enough.
Tags: productivity, management, startup
Published: 2020-05-08 21:44:47

During the old era of the software industry, some companies thought that delivering working software is enough to sustain the business. 
It turned out that they were right and `Working software is the primary measure of progress` [7th principle in agile manefisto].
But, some companies and developers thought that it’s ok to deliver creepy software as long as it’s working and here where things started to take a wrong direction.

During the last 10 years, there has been an increased use of software in day to day routines, from notes and images taking to managing an entire multi-national organization using an app running on smartphones connected to the internet.
We see smart assistants, social media, e-learning platforms, e-commerce, .., and more.
Anything that was done in the past by working hands is now done by software.
 
With that increase in software usage especially in mobile apps and the amount of competition between startups and tech giants to acquire customers and increase their engagement, low-quality software is not welcomed anymore.
We are talking about customers using their mobile phones nearly every minute.
They do not expect latency, crashes, losing unsaved work, or bad UI/UX. And they do not care about the technical issues you face due to a sudden increase in traffic or a developer’s mistake in handling service scalability.

With all of that, it’s obvious that delivering only working software is not enough anymore to satisfy customers. And with this in mind, we need to reconsider how we manage, design, develop, and deliver software.

Fast delivery with high quality is a must to sustain customers and business continuity. 
But, how to get the job done fast with good quality?

To answer this question, some actions must be taken:
1-  Hire the right ones in the right position, not just the best ones.
2- Maintain the product/software roadmap and make it clear to everyone working on it. 
3- Hold good communication channels within the team and across teams.
4- Assure that we need fast delivery but quality must not be compromised.
5- Give your team a space to innovate, give it the confidence to get the best out of it.
6- Be honest with your team, keep it informed, and updated.
 
This list can be long but these are the most important ones in my opinion.

Getting the job done can be challenging in the software industry, if not done the right way.
Having a consistent delivery process and a high bar for quality is not optional in the modern era. And with the harsh competition between companies -thank you internet- combined with high expectations from customers, we need yo revisit how we manage software teams and how we think, plan, and deliver software.
What’s your alternative solution? Challenge #38
Tags: challenge, javascript, codenewbie, learntocode
Published: 2020-05-08 21:29:09

# About this series

This is series of daily JavaScript coding challenges... for both beginners and advanced users.

Each day I’m gone present you a very simple coding challenge, together with the solution. The solution is intentionally written in a didactic way using classic JavaScript syntax in order to be accessible to coders of all levels.

Solutions are designed with increase level of complexity.

## Today’s coding challenge

```
Calculate the sum of numbers received in a comma delimited string

```

(scroll down for solution)

## Code newbies

If you are a code newbie, try to work on the solution on your own. After you finish it, or if you need help, please consult the provided solution.

## Advanced developers

Please provide alternative solutions in the comments below. 

You can solve it using functional concepts or solve it using a different algorithm... or just solve it using the latest ES innovations.

By providing a new solution you can show code newbies different ways to solve the same problem.

## Solution

```javascript
// Solution for challenge33

println(sumCSV("1.5, 2.3, 3.1, 4, 5.5, 6, 7, 8, 9, 10.9"));

function sumCSV(s)
{
    var ar = s.split(",");
    
    var sum = 0;
    
    for(var n of ar)
    {
        sum += parseFloat(n);
    }
    
    return sum;
}

```


To quickly verify this solution, copy the code above in this coding [editor](https://codeguppy.com/code.html) and press "Run".

> Note: The solution was originally designed for [codeguppy.com](https://codeguppy.com) environment, and therefore is making use of `println`. This is the almost equivalent of `console.log` in other environments. Please feel free to use your preferred coding playground / environment when implementing your solution.
Too Many Languages
Published: 2020-05-08 21:27:55

The thing about job hunting in the tech field is, everyone wants a different set of languages. Job A wants someone with Node and React, Job B wants someone with C#. Job C wants a WordPress expert and Job D wants Rails.

If you wanted, you could learn a little about absolutely all the languages out there, running yourself ragged making sure you have exposure to every possible language. But I sincerely doubt that's really going to up your chances of getting hired. There's just no way to learn everything, and I think you'd be poorer off than when you started.

I am, quite obviously, not an expert here. But here's what's working for me, in terms of keeping me engaged and learning, and giving me a sense that I am doing worthwhile things during my job hunt.

1. Pick just a couple languages and learn those deeply. What this looks like for me is investing time in a project or two that can be enhanced by me improving my knowledge of a language. For instance, I recently decided to throw together a little two player online game, and it's given me the opportunity to deepen my knowledge of Node.js, React Hooks, and even introduce myself to Sockets.
    
2. If there's another language I'm curious about but don't have time to learn, I'll watch a 15-20 minute basics video so that I have a sense of what sort of language it is. Just enough that I can hold a competent and curious conversation about it. 

I've said it many times, the most valuable thing the bootcamp taught was not any one coding language, but how to learn coding languages.

You learn the basic building blocks, and the patterns to look for, and then you're ready to strike out and learn more and more.
15 free SVG illustration sets for your next project 
Tags: design, html, css, webdev
Published: 2020-05-08 21:01:45

I've created a list of 15 great SVG illustration libraries. Each of them has at least some part of their illustration set available free of charge. All of them would be a great fit for the modern web project. 

If you know some other cool looking illustration set feel free to share in the comments! I'll be updating this post when some new thing grabs my attention.

## 01. [Open Peeps](https://openpeeps.com)

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

## 02. [Illlustartions](https://illlustrations.co/)

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

## 03. [Bulbman](https://bulbman.art/explore/)

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

## 04. [Isometric](https://isometric.online/)

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

## 05. [IRA Design](https://iradesign.io/)

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

## 06. [Icons Cout](https://iconscout.com/paper-illustrations)

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

## 07. [Getillustrations](https://www.getillustrations.com/illustration-packs/freebie)

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

## 08. [Whoosh](https://www.ls.graphics/whoosh)

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

## 09. [Charco](https://www.karthiksrinivas.in/charco)

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

## 10. [Absurd](https://absurd.design/illustrations.html)

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

## 11. [Ouch](https://icons8.com/ouch/)

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

## 12. [Humaaans](https://www.humaaans.com/)

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

## 13. [Lukasz Adam's Ilustartions](https://lukaszadam.com/illustrations)

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

## 14. [unDraw](https://undraw.co/illustrations)

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

## 15. [DrawKit](https://www.drawkit.io/free)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/01ty9vgimgfv0ntcqf5m.png)
API Survey [5min]
Tags: api, webdev, devops, help
Published: 2020-05-08 20:59:06

Hey all!
I'm running a survey to learn more about the pains of consuming third-party APIs. I'd love your insights if you have 5 minutes! (happy to share the results when compiled)

https://forms.gle/E2DVs5gjgWdit8WV8

I appreciate it!

(also, will send the first 100 people that submit a bag of awesome coffee from Austin, Texas)
PrismJS
Tags: help, formatting
Published: 2020-05-08 20:48:03

---
title: PrismJS
published: true
description: PrismJS syntax formatting not working
tags: help,formatting
---

I've added PrismJS as a [plugin](https://gridsome.org/plugins/@gridsome/remark-prismjs) to my Gridsome blog for code formatting (as like most I write my posts in markdown) when I run this locally it works fine, but on the live published posts it doesn't. Anyone with some experience with this that might be able to shed some light?

I've added it as a plugin to `gridsome.config.js` under transformers plugins:
```
plugins: ['@gridsome/remark-prismjs']
```
and imported a theme into my main.js file:

```
import "prismjs/themes/prism-dark.css"
```
which works fine when I use `gridsome develop` locally but once psoted this highlighting disappears. Am I missing a step somewhere?

Thanks in advance