teleren/devto huggingface dataset:
Pick Random Item From Dev.to Shop Based On How Much Money You Got
Tags: actionshackathon, rewardspiritbro1english, blogspiritbro1english
Published: 2020-09-17 15:46:55

github action hackathon is hackathon created by dev.to i won as a runner up [here](https://dev.to/devteam/github-actions-hackathon-winners-announced-38o2) as spiritbro1

### My Workflow

So background of the story is, i recently participated in dev.to hackathon called web monetization hackathon and i didn't win so 😢, but thank God dev.to give us another exciting hackathon that i recently learn also by making a covid telegram notification using github action you can check that out here 

{% link https://dev.to/spiritbro1/create-a-github-action-that-send-everyday-covid19-status-through-telegram-using-python-3l78 %} 

and most importantly is dev.to generous enough to gave me some credit to spend on dev.to shop Thank You Dev.to Team!! 😃 but the problem is i dont know which item i want to get from dev.to shop so why dont we make a github action that can get us some random item from dev.to shop. So let's begin.

So since dev.to doesnt have api to get the item and the price tag i need to scrape the dev.to shop and save it to csv i use csv coz it is much faster than setting up a whole new database you can take a look the code here:

{% github https://github.com/spiritbro1/scraped-devshop %}

so what this does is, it scrape all item in dev.to shop and the price tag and put it to the csv in github repo there, so i create a python app to scrape all the item in dev.to and after that we get the raw csv from that python app then we create a github action that can randomly generate markdown with the item that randomly generated from dev.to shop for us, this github action will create a new file called DEVTOSHOP.md so it is basically can work with any repo if you just want to play with it. And doesn't disrupt an already created README.md.

## Step by Step how to use this github action

1. create a repo 

2. create a yaml file example [here](https://github.com/spiritbro1/example-devto/blob/master/.github/workflows/main.yml)

3. let it run until finished like this

![s](https://imgur.com/download/9UGCgIb)

4. after that you get a new branch called "devto-shop-random-generator" compare that branch and pull request

![s](https://imgur.com/download/R7o1Hb5)

click "create pull request"

![s](https://imgur.com/download/FYe7TfF)

then click "merge pull request"

![s](https://imgur.com/download/V0aMIGA)

then click "confirm merge"

![s](https://imgur.com/download/vh6mWZC)

you will get a new markdown file called "DEVTOSHOP.md" click that

![s](https://imgur.com/download/fCxZmbl)

and then VOILA!! you will get your random item like this that you can buy based on your budget

![s](https://imgur.com/download/3eVBCFP)

take a note that this budget is not included with shipping payment coz it will vary based on your country



### Submission Category: 

Wacky Wildcards

### Yaml File or Link to Code

{% github https://github.com/spiritbro1/devtoshop-random-generator %}


### Additional Resources / Info

Example repo that use this github action

{% github https://github.com/spiritbro1/example-devto %}
What's 0.1 + 0.2 in Javascript?
Tags: javascript, webdev, codenewbie, beginners
Published: 2020-09-17 15:34:51

```
console.log(0.1 + 0.2 === 0.3); // false
```
Issues with the floating value stored by JS. 

---

**Thanks for reading 💙**  
Follow **@codedrops.tech** for daily posts.  
[Instagram](https://www.instagram.com/codedrops.tech/) ● [Twitter](https://twitter.com/codedrops_tech) ● [Facebook](https://www.facebook.com/codedrops.tech/)

Micro-Learning ● Web Development ● Javascript ● MERN stack ● Javascript  
**[codedrops.tech](https://www.codedrops.tech/)**
Teams Deploy Tab
Tags: actionshackathon
Published: 2020-09-17 15:18:55

[Instructions]: # (To submit to the GitHub Actions x DEV Hackathon, please fill out all sections.)


### My Workflow
Teams Deploy Tab deploys Teams apps to the Teams store semi-automatically with the Microsoft Graph API. I only heard about this competition yesterday, and just released the Action now so it's not in use yet. But I'm hoping to use it to drive adoption of GitHub at my company, starting with a custom tab I finished yesterday!

### Submission Category: 
DIY Deployments

### Yaml File or Link to Code
{% github https://github.com/pl4nty/teams-deploy-tab %}

### Additional Resources / Info
I've heard from other OSS contributors that the complex deployment process puts them off building Teams apps. Hopefully this Action can help them!
GitHub just released CLI 1.0
Tags: webdev, news, github
Published: 2020-09-17 14:57:06

---
title: GitHub just released CLI 1.0
published: true
description: 
tags: webdev, news, github
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/318v6ehfh3jupilrl33b.png
---
GitHub CLI is out of beta and available to [download](https://cli.github.com/).
Have you already tried it and what are your thoughts on it?
Azure DevOps Work Item linker
Tags: actionshackathon
Published: 2020-09-17 14:55:39



### My Workflow
Azure DevOps Work Item linker is used when you work with Azure Boards and GitHub together and have the need to trace back to the work item from the GitHub Pull Request. 

Simply add a AB#{workitemid} reference in you title or description and the action will post a clickable link

### Submission Category: 
Maintainer Must-Haves


### Yaml File or Link to Code

[Github Repo](https://github.com/solidify/github-action-azdo-link/)

### Additional Resources / Info
[Marketplace Link](https://github.com/marketplace/actions/azure-devops-work-item-linker)

Built By:
[Manuel Ericstam](http://github.com/mericstam)
[Daniel Öhrn](https://github.com/daniel-ohrn)
[Gabriel Johansson](https://github.com/GabrielJohansson-dev)
[Michael Ginart](https://github.com/solidmicgin)
Daily Challenge #292 - ISBN-10 Identifiers
Tags: challenge
Published: 2020-09-17 14:55:10

---
title: Daily Challenge #292 - ISBN-10 Identifiers
published: true
series: Daily Challenge
description: Return true only if input is an ISBN-10 Identifier.
tags: challenge
//cover_image: https://direct_url_to_image.jpg
---

ISBN-10 identifiers are ten digits. The first nine digits are on the range 0 to 9. The last digit can be either on the range 0 to 9 or the letter 'X' used to indicate a value of 10.

For an ISBN-10 to be valid, the sum of the digits multiplied by their position has to equal zero modulo 11. For example, the ISBN-10: 1112223339 is valid because:
`(((1*1)+(1*2)+(1*3)+(2*4)+(2*5)+(2*6)+(3*7)+(3*8)+(3*9)+(9*10)) % 11) == 0`

Create the function `validISBN10()` to return true if and only if the input is a valid ISBN-10 Identifier. 

###Examples
validISBN10('1293000000'), true 
validISBN10('048665088X'), true 
validISBN10('1234512345'), false
validISBN10('1293')      , false

###Tests
validISBN10('1112223339')
validISBN10('X123456788')
validISBN10('1234512345')

Good luck!

***
_This [challenge](https://www.codewars.com/kata/51fc12de24a9d8cb0e000001) comes from nklein on CodeWars. Thank you to [CodeWars](<https://codewars.com/>), who has licensed redistribution of this challenge under the [2-Clause BSD License](<https://opensource.org/licenses/BSD-2-Clause>)!_

_Want to propose a challenge idea for a future post?  Email **yo+challenge@dev.to** with your suggestions!_
10+ Reasons To Date a JS DEVELOPER ;-)
Tags: javascript, codenewbie, css, webdev
Published: 2020-09-17 14:51:23

_Hello to all my community people :-) This is my 9th post and I'm thankful to everyone because I love this community. And special thanks to all my `650+ FAMILY`. I'll try to provide valuable post every week..._❤️😃

#### "JS is one of the most lovable programming language. And there are many JS developers r present in the community. So, are you dating someone?😅🎉" 

IF NO THEN BE READY TO FIND SOMEONE😂 BECAUSE 👇💚

---

#### 1. We’ll offer `vanilla` choco ice-cream on the first date

#### 2. We’re not `strict` on type

#### 3. we always `return` wherever you’re

#### 4. We’ll never cause `arguments` 

#### 5. We’ll  `promise` 

#### 6. we’ll always `callback` 

#### 7. we’ll make your every day as beautiful like `this` day... 

#### 8. we know how to `function` in a difficult situation ... 

#### 9. we’ll always `bind` things together ...

#### 10. we’ll always give you `props` 

#### 11. we’ll  `wait` for you

#### 12. we’ll  `console`  you...

#### 13. we know how to prepare a `filter` coffee for you... 

#### 14. we always have a `map` that leads to happiness

#### 15. we’ll `fetch` whatever you need...

#### 16. Even you  `try` to hide your problem, we’ll `catch` it and resolve it

---
AND
MANY COUNTLESS 
REASON... 
SO U R DATING JS DEVELOPER? If no then you SHOULD start `find`ing that one😂🚨🚨 and `let` us know.. 😅🎯

AND WANT TO SHARE ANY OTHER REASONS...

---

🎉 Post inspired from the question asked by Cyrus(sudo_overflow) on Twitter

---

####If you love this post, please give a like to boost my confidence to write more posts for this community. I'm also sharing a short microblog on my Instagram page also.

If you have doubts regarding development or UI/UX Design. Please feel free to connect with me on: ❤️😃

[Linkedin](www.linkedin.com/in/akash1296) 

[Instagram Page](www.instagram.com/designer.akash)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/325xheh6e60lzhcbqk22.jpg)

Regards
`Akash`
Cloudera Edge Flow Updates - Cloudera Edge Management (CEM) 1.2.1
Published: 2020-09-19 14:37:46

---
title: Cloudera Edge Flow Updates - Cloudera Edge Management (CEM) 1.2.1
published: true
date: 2020-09-17 14:40:00 UTC
tags: 
canonical_url: 
---

# Cloudera Edge Flow Updates

- Support for RetryFlowFile processor for MiNiFi C++
- Support for MergeContent processor for MiNiFi C++
- New attributes introduced in ConsumeWindowsEventLog to add timezone information
- MiNiFi Java preserves NiFi properties overrides during flow updates

**References**

- [https://docs.cloudera.com/cem/1.2.1/release-notes/topics/cem-whats-new.html](%C2%A0https://docs.cloudera.com/cem/1.2.1/release-notes/topics/cem-whats-new.html)
- [https://docs.cloudera.com/cem/latest/support-matrix/topics/cem-java-agent-processors.html](https://docs.cloudera.com/cem/latest/support-matrix/topics/cem-java-agent-processors.html)
- [https://docs.cloudera.com/cem/latest/managing-agent-manifest-resolution/topics/cem-introduction-agent-manifest-resolution-strategy.html](https://docs.cloudera.com/cem/latest/managing-agent-manifest-resolution/topics/cem-introduction-agent-manifest-resolution-strategy.html)
What's your favorite domain registrar?
Tags: webdev, discuss
Published: 2020-09-17 14:35:14

---
title: What's your favorite domain registrar?
published: true
description: 
tags: webdev, discuss
cover_image: https://nameclerks.com/wp-content/uploads/2018/04/top-10-best-domain-registrars.jpg
---
Do you buy domains through various hosts or do you stick with a particular registrar all the time? What is/are your favorite/-s and why?
Check if two documents are same
Tags: dotnet, csharp, codenewbie, codequality
Published: 2020-09-17 14:32:57

In order to check whether two documents are same or not, you gotta do a detailed comparison. I will tell you about a document comparison API that returns a list of differences programmatically in C#. 

**Implementation**

It won't take more than 4-5 lines of code to find out:
1. Difference count
2. Difference summary 
3. Inserted/deleted items or even a style change
```csharp
using (Comparer comparer = new Comparer(@"D:/source.docx"))
{
        comparer.Add(@"D:/target.docx");
        comparer.Compare(@"D:/result.docx");
        ChangeInfo[] changes = comparer.GetChanges();
}
```
You can even compare or get a list of changes from stream:
```csharp
using (Comparer comparer = new Comparer(File.OpenRead("source.docx")))
{
	    comparer.Add(File.OpenRead("target.docx));
        comparer.Compare("save resultant file");
        ChangeInfo[] changes = comparer.GetChanges();
}
```
You can compare PDF, Excel, Presentation or any other [supported files](https://docs.groupdocs.com/comparison/net/supported-document-formats/). All you have to do is to download this [DLL](https://downloads.groupdocs.com/comparison/net) and add it as a reference in your .NET project (existing or new). Post your issues [here](http://forum.groupdocs.com/) to get free support.
Woofy Greet Actions
Tags: actionshackathon
Published: 2020-09-17 14:23:34

[Instructions]: # (To submit to the GitHub Actions x DEV Hackathon, please fill out all sections.)


### My Workflow
**Woofy Greet**

Woofy greet actions could be used to make comment with a dog GIF and template text whenever someone sends a Pull Request.

[Note]: # (Make sure to include the name of your GitHub Action and share where it's being used!)


### Submission Category: 
**Maintainer Must-Haves**

[Note]: # (Maintainer Must-Haves, DIY Deployments, Interesting IoT, Phone Friendly, or Wacky Wildcards)


### Yaml File or Link to Code

[Note]: # (Our markdown editor supports pretty embeds. Try this syntax: `{% github link_to_your_repo %}` to share a GitHub repository)

[Marketplace Link](https://github.com/marketplace/actions/woofy-greet#woofy-greet-actions)


### Additional Resources / Info

To get a random GIF of the dogs, the actions uses [NPM package](https://www.npmjs.com/package/@giphy/js-fetch-api) provided by [Giphy](https://giphy.com/)
Safe@Home Hackathon platform opens, over 500 participants registered to date
Tags: hackthon
Published: 2020-09-17 14:20:46

I’m so excited that the digital platform for Microsoft’s Safe@Home Hackathon to address gender-based violence in South Africa is now open to those who have registered. To date over 500 participants have registered to join our hackathon and be part of positive change to help vulnerable women and children.
The tailored and easy-to-use BeMyApp platform comes with multiple benefits to support our developer community as they collaborate to create and develop technology-based solutions to help victims of gender-based violence.

Through the platform, our developers can:

- Participate from multiple locations 
- Easily form a team by inviting external talent to join the platform. External talent can complete the registration form on the website and will be invited to the platform. 
- Collaborate with and lend their skills to other teams: the hiring section allows teams to expand their skills by recruiting individuals or other small teams with skills they are missing 
- Easily submit their projects and describe, with visual aids, the issue/challenge they are trying to solve, their solution to the challenge, and how it works
- Collaborate with their own team and build their project through a private digital workspace
- Find a mentor with the right expertise to answer questions or give advice 
- Book mentors for one-on-one video sessions that are recorded and sent to them for reference

We know that access to the right technology can help us do and achieve more – but it also has the power to change and save lives. It can, for example, help tackle gender-based violence in South Africa by enabling a better and safer way for women and children to reach out for help. 
This is why it’s essential to equip our developers working to create these types of solutions with the right tools – and the BeMyApp platform fits that bill. 
Developers wanting to partner with us to address gender-based violence can still register until 21 September. For more information on the Safe@Home Hackathon and to register, visit  https://safeathome.bemyapp.com/
Hello World Post
Tags: firstpost
Published: 2020-09-17 14:19:43

Hello world!!

As a developer, this sentence means a lot to me. It is a delightful starting point for every new learning journey in coding. And here I'm writing my first ever post! 

To be honest, I used to be an inactive user who is only reading posts without leaving comments even. Today, I would like to step up and engage to be part of developers community. A community that encourages people to share and exchange knowledge to grow together.

Curiosity is the key to pursue knowledge, enjoy every moment in your learning journey. 

Alaa Ajlouni
Spec Prod: a GitHub Action for validating and deploying W3C specs
Tags: actionshackathon
Published: 2020-09-17 14:17:05

### My Workflow

Action name: Spec Prod

tl;dr: I created a GitHub action that simplifies the compilation, validation and deployment of specifications in the W3C ecosystem.

This post is solely for the purpose of submission. Read more about the action and its development in my other blog post: [Simplifying W3C standards workflow with a GitHub Action](https://dev.to/sidvishnoi/simplifying-w3c-standards-workflow-with-a-github-action-2ch5).

### Submission Category: 

DIY Deployments

### Yaml File or Link to Code

{% github sidvishnoi/spec-prod %}

### Additional Resources / Info

#### Projects using this action

- https://github.com/w3c/gamepad/
- https://github.com/w3c/web-share/
- [and more](https://github.com/search?q=author%3Asidvishnoi+is%3Apr+created%3A%3E2020-09-14+spec-prod&type=Issues) (hopefully all W3C specs 🤞) coming soon!
Uploading multiple files with multer, but from different fields Node JS
Tags: node, backend, beginners, tutorial
Published: 2020-09-17 14:11:26

<meta name="monetization" content="$ilp.uphold.com/LbbNym3PHJ2f">
#### i was in a situation where i were to upload audio file along with a graphic for that particular song so i was to upload to different files an image and audio file so i used a way to do that using multer plugin available on [link](https://www.npmjs.com/)


```
var multer = require('multer')
var storage = multer.diskStorage({


destination: function(req, file, callback) {
    callback(null, './public/audio');
  },
  filename: function(req, file, callback) {
    console.log(file);
    if(file.originalname.length>6)
      callback(null, file.fieldname + '-' + Date.now() + file.originalname.substr(file.originalname.length-6,file.originalname.length));
    else
      callback(null, file.fieldname + '-' + Date.now() + file.originalname);

  }
});

const upload = multer({ storage: storage });


router.post('/save/audio',upload.fields([{
  name: 'audio', maxCount: 1
}, {
  name: 'graphic', maxCount: 1
}]) ,(req, res) => {
  
  const audioFile = req.files.audio[0];
  const audioGraphic = req.files.graphic[0];
  const fileName = req.body.title;


  saveAudio(fileName,audioFile.filename,audioGraphic.filename,req.body.artist,function (error,success) {
    req.flash('success','File Uploaded Successfully')

    res.redirect('/')
  });

})
```
List that have many words for simple game
Tags: discuss
Published: 2020-09-17 14:04:52

Now, i'm trying create a simple game. In that game player trying to guess hidden word.

https://www.hackingwithswift.com/guide/ios-classic/4/3/challenge

but i cannot find a list of words for this little game.
even in russian...

If anyone know. Please help. Thanks a lot!
Discuss: What's your favourite book on Data Science?
Tags: datascience, discuss, books
Published: 2020-09-17 13:58:00

It could be for any number of reasons! Maybe it generated new opportunities for you, it taught you something valuable, or  you just enjoyed it more than any other book. So tell me: <b>what's your favourite book on data science?</b>

---
Cover image by [Enayet Raheem](https://unsplash.com/@raheemsphoto) on [Unsplash](https://unsplash.com)
NativeScript-Play-Pit Actions
Tags: actionshackathon
Published: 2020-09-17 13:57:37

[Instructions]: # (To submit to the GitHub Actions x DEV Hackathon, please fill out all sections.)


### My Workflow
[Note]: # (Make sure to include the name of your GitHub Action and share where it's being used!)
NativeScript-Play-Pit is an opensource repo for NativeScript playgrounds. Anyone can create a new project or contribute to an existing one. 

The newly added Github Actions workflow helps make contributing easy by collecting all user submitted data from issue templates. It automatically creates the project files, and opens a new pull request. Once the playground links have been verified by a reviewer the project is added to the list.

### Submission Category: 
- Wacky Wildcards _(I guess)_


### Yaml File or Link to Code
{% github https://github.com/mudlabs/NativeScript-Play-Pit %}

[Note]: # (Our markdown editor supports pretty embeds. Try this syntax: `{% github link_to_your_repo %}` to share a GitHub repository)


### Additional Resources / Info
How to get github username which is already taken ?
Tags: github, git, username, support
Published: 2020-09-17 13:52:01

Do you have abrupt username in github because the one that matches your name is already taken ? 
If you want to grab username of your choice in github, then keep reading :)
 
Github has a <b>"Name squatting Policy"</b> under which it allows users to claim a username if it is not active or dormant i.e. it has no activities since a long time and it obtained for purpose of reserving a name. So if your desired username is not in use since quite a long time, you can claim it by reporting it on github under their name squatting policy. 
If you will be the lucky one, like I was, you shall get the username of your choice.
For this purpose, follow the steps below :
<b>STEP 1 -</b> Visit to the profile that is not in use and matches your requirements.
<b>STEP 2 -</b> Beside "Follow" button, there will be 3 dots "...", click on them and report the user.
<b>STEP 3 -</b> Select "Report spam" in category and describe your willingness to get that username. Also mention about "Name Squatting Policy" due to which you are reporting the user.

In most of the cases, github developer support replies within a couple of days. If it takes longer than a week, you can revert them back with your request.

In case of any doubts, you can always get in touch with me :
LinkedIn - https://www.linkedin.com/in/gupta-anchal/
Twitter - https://twitter.com/Anchal_Gupta_
Github - https://github.com/anchal-gupta
Leading Namibia's Community of Python Developers
Tags: python, django
Published: 2020-09-17 13:50:12

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

In Africa, the Python community consists of hundreds of passionate developers scattered across the continent. In Namibia’s capital city Windhoek, there is a small but vibrant Python community spearheaded by The Python Software Community of Namibia or PyNam for short. This week Built in Africa spotlight was on me. Find full article here https://www.builtinafrica.io/blog-post/ngazetungue-muheue-python-namibia
UX/UI Design Foundations
Tags: css, ux, uiweekly, design
Published: 2020-09-17 13:37:14

Master design definitions and learn best practices of UX/UI design.


With Uxcel, you can learn UX/UI design online in just 5 minutes per day. 

Available on any device anywhere in the world. 

Start learning today!
http://bit.ly/uxcelUiDesign