teleren/devto huggingface dataset:
Hacktoberfest Action
Tags: actionshackathon21, hacktoberfest, opensource, github
Published: 2021-11-10 19:12:08

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


### My Workflow
I created my workflow by customizing the pr-labeler github action by TimonVS on github action marketplace. This workflow works by matching branch patterns name such that whenever a branch with matching pattern makes a pull request and when that branch is merged and closed it adds the hacktoberfest and hacktoberfest-accepted label to the PRs, which automates the task for hacktoberfest maintainers to manually add the labels. 
[Note]: # (Please make sure the project links to the appropriate GitHub Actions repository, and includes [an open source license](https://choosealicense.com/) and README.)

###What the workflow does ? 
When a pull request is closed with the branch name hack/[anything] the Action will automatically apply the hacktoberfest and hacktoberfest-acccepted label once the PR is merged.

###Example
1. I created a new file **index.js** in a new branch with the matching pattern name **hack/test** then committed the change and opened a pull request to the master branch.
![Pull Request](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/voclnojue2lknhn98p6l.png)
2. As you can see currently there are no labels assigned to the pull request also no workflow has been run yet.

3. Now I merge the PR to  the master branch to run the worklfow.
![Merge to Master](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cvgue8pm7n3q60mxwfzk.png)

4. The merge action here triggers the workflow 
![Workflow](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wtv835pzcowgw02q8x73.png)

5. Finally when the pull request is closed and merged the labels hacktoberfest and hacktoberfest-accepted have been added to the pull request.
![Labels Added](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7g0vgerg1nvl91iqhgzc.png)
 
   
 



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


### Yaml File or Link to Code

* 
**Github Repository Link**

{% github https://github.com/aryanarayantiwari/hacktoberfest-action %}

* **Yaml File**
```
name: PR Labeler
on:
  pull_request:
    types: [closed]

jobs:
  pr-labeler:
    if: github.event.pull_request.merged == true
    runs-on: ubuntu-latest
    steps:
      - uses: TimonVS/pr-labeler-action@v3
        with:
          configuration-path: .github/pr-labeler.yml # optional, .github/pr-labeler.yml is the default value
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
``` 


### Additional Resources / Info
[TimonVS PR-labeler](https://github.com/marketplace/actions/pr-labeler)
Create cannon shape from glb / THREE.Mesh / BufferGeometry.
Published: 2022-10-08 07:42:04

---
title: Create cannon shape from glb / THREE.Mesh / BufferGeometry.
published: true
date: 2021-11-10 19:11:14 UTC
tags: 
canonical_url: https://tanishq-singh-2301.medium.com/create-cannon-shape-from-glb-three-mesh-buffergeometry-5ea0b1bfe62e
---

step 1: npm i cannon-utils

step 2: import cu from ‘cannon-utils’;

step 3: create shape, pass mesh and size

shape: cu.CreateTriMesh(mesh, { x: 5, y: 5, z: 5 });

**full example**

> gltfLoader.load(‘file\_location.glb’, gltf => {  
> gltf.scene.scale.set(2, 2, 2);

> **const cannon\_shape = _cu.CreateTriMesh(gltf.scene.children[1], { x: 5, y: 5, z: 5 });_**

> const body = new CANNON.Body({  
> shape: **cannon\_shape** ,  
> mass: 1  
> });

> world.addBody(body);

> scene.add(gltf.scene);  
> });
Welcome Thread - v150
Tags: welcome
Published: 2021-11-10 18:54:58

---
title: Welcome Thread - v150
published: true
description: Welcome to DEV! A thread of hellos and intros.
tags: welcome
canonical_url: 
---

![Howdy](https://media.giphy.com/media/0N8jZKHBq3smKbyITd/giphy.gif)

### Welcome to DEV!

1. Leave a comment below to introduce yourself! You can talk about what brought you here, what you're learning, or just a fun fact about yourself.

2. Reply to someone's comment, either with a question or just a hello. 👋 

**Great to have you in the community!**
Want some experience with React
Published: 2021-11-10 18:34:01

I am a junior web developer and I have been learning React since a few months ago. Now, I think I am ready to take up the real world challenges but before that I want some experience with react and other stuff. So if you guys have web apps to develop then just tell me, just DM me or something. I will help you guys for free or in exchange for my experience.
Python : OS Module 
Tags: programming, beginners, tutorial, python
Published: 2021-11-10 18:07:33


The os module is a part of the standard library, or stdlib, within Python 3.

Python **os** module provides methods that help us to perform file processing operations. Let’s explore these basic functions one by one.


## Using os

Before you use the os module, you first need to bring it up by means of the Python import command:

```
import os
```
If you try to run os without importing it, you will see an error message:

```
NameError: name 'os' is not defined
```

To get a list of functions supported by os module, run the below command:

```
print(dir(os))
```

## Files

Some of the methoods of the **os** module to work with files.

### rename() method :
It is used to rename a file or directory.

```
os.rename(old_filename,new_filename)
```
**Example**
```
os.rename(“file.txt”, “user.txt”)
```
### remove() method :
It is used to delete the file.
**Path** : This is a path-like object which represents a file system path. This path-like object is either a string or bytes object.
```
os.remove(path_of_file)
```
**Example**
```
os.remove(“d1/user.txt”)
```

## Directories



### CWD :
CWD == "Current working directory"

### getcwd() method :
returns current directory.
or 
To check the path of the current working directory, we will use the getcwd method.

```
print(os.getcwd())
```
**Note**  The folder where the Python script is running is known as the Current Directory. This is not the path where the Python script is located.

### mkdir() method :
It is used to create a directory in current directory.

```
os.mkdir("d1")
```
This method raises FileExistsError if the directory to be created already exists.

### chdir() method :
Suppose, we have a folder, for example, info, inside our current directory, we can switch to the info folder, using the chdir function. or It is used to change the current directory.

```
os.chdir("info")
```

### rmdir() method :
It is used to delete a directory. The directory must be empty before it is deleted.

```
os.rmdir("dirname")
```

### listdir() method :
Returns a list containing names of files and subdirectories in the specified directory.

```
print(os.listdir())
```


Keep Learning!!
Keep Coding....❤️👩‍💻
6 Repos github you should mark as web developper!
Tags: javascript, webdev, codenewbie, beginners
Published: 2021-11-10 17:47:49

Today I will share with you some repository Github that will help you to be more efficient for every developper!

## 🎨 CSS

A collection of tips to help take your CSS skills pro.

_https://github.com/AllThingsSmitty/css-protips_

## 📚 Cheatlists

Awesome cheatsheets for popular programming languages, frameworks and development tools. They include everything you should know in one single file.

_https://github.com/LeCoupa/awesome-cheatsheets_

There is a website that gather all sheets if you prefer: _https://lecoupa.github.io/awesome-cheatsheets/_

## 👨‍🔬 Algo

This repository contains JavaScript based examples of many popular algorithms and data structures.

_https://github.com/trekhleb/javascript-algorithms_

## 🧹 Clean code

Clean code for javascript

_https://github.com/ryanmcdermott/clean-code-javascript_

## 🌎 How web works

What happens behind the scenes when we type google.com in a browser?

_https://github.com/vasanthk/how-web-works_

## 📖 Free programming books

Get free programming ebooks.

_https://github.com/EbookFoundation/free-programming-books_

---

I hope you like this reading!

🎁 You can get my new book `Underrated skills in javascript, make the difference` for FREE if you follow me on [Twitter](https://twitter.com/code__oz) and send message to me 😁 and **SAVE 19$** 💵💵

Or get it [HERE](https://codeoz.gumroad.com/l/RXLYp) 

🇫🇷🥖 For french developper you can check my [YoutubeChannel](https://www.youtube.com/channel/UCC675U1ZUPFASsK9-FjawtA)

🎁 [MY NEWSLETTER](https://www.getrevue.co/profile/code__oz)

☕️ You can [SUPPORT MY WORKS](https://www.buymeacoffee.com/CodeoZ) 🙏

🏃‍♂️ You can follow me on 👇

🕊 Twitter : [https://twitter.com/code__oz](https://twitter.com/code__oz)

👨‍💻 Github: https://github.com/Code-Oz

And you can mark 🔖 this article!
Customizing renpy file structure
Tags: beginners, gamedev, renpy
Published: 2021-11-10 17:47:41

I wrote in my previous [post](https://dev.to/ashfreels/writing-a-story-for-a-visual-novel-57np) on my process on how I outlined my stories. Now let's get to a more boring topic, organizing files. While it may not seem important at first, things can get hetic when assets start piling on as development progresses over time.   

## Flexability
Renpy's default project file structure is generous. Renpy has example projects that is already downloaded. This was a great rescource for me, who was new to using Renpy.

## Assets Management
When developing my visual novel, I knew that I was going to have quite a few assets that include:

* sound effects
* music
* backgrounds
* characters

While the assets are the main components for my visual novel. I had to account for further customization.

## Keeps piling on
I was making story changes, adding more content such as more gui and python scripts for gameplay for minigames I plan to add later. 

## Current file Structure
Here is the file structure I currently use:

```
|--- game
| |-- audio
| |-- cache
| |-- chapters
| |-- gui
| |-- images
| |-- saves
| |-- tl
|-- gui.rpy
|-- options.rpy
|-- screens.rpy
|-- script.rpy
|-- characters.rpy 

```

As above I added a chapter folder to organize my files for chapters in the visual novel.

## Tips and Advice
Luckily for renpy game development there are a few resources to help organize file structure for video games:

### YouTube 
While this is a obvious choice, watching a few renpy tutorials on how game devs structure their game can be useful tool when developing your own visual novel. 

### Forums
[Lemma Soft Forums] (https://lemmasoft.renai.us/forums/) is dedicated forum for renpy devs. Viewing discussions on helped me sturcture my story better. The Ren'Py Cookbook has tutorials on customizing your game with a wide variety of minigames and UI designs.

## Closing thoughts
Overall, the file structure comes down to the developer. The structure can be a simple or complex. Keep the default file structure or modify it to your liking. As long as the file structure is easy to understand, anything is fine.
Wednesday Links - Edition 2021-11-10
Tags: java, jvm, spring, gradle
Published: 2021-11-10 17:28:08

JEP 418: Internet-Address Resolution SPI (3 min)📪
https://openjdk.java.net/jeps/418

JEP 421: Deprecate Finalization for Removal (11 min)🗑️
https://openjdk.java.net/jeps/421

OAuth rate-limiting (13 min)✋
https://blog.allegro.tech/2021/11/oauth-rate-limiting.html

Feature Flags with Spring Boot (8 min)🏁
https://reflectoring.io/spring-boot-feature-flags

Comparison of Java HTTP Clients (10 min)🏇
https://reflectoring.io/comparison-of-java-http-clients

JCenter certificate expired (30 sec)🌇
https://twitter.com/CedricChampeau/status/1458053929531580423

Java’s Checked Exceptions Are Just Weird Union Types (6 min)🏉
https://blog.jooq.org/javas-checked-exceptions-are-just-weird-union-types

Did You Know You Can Create Mappers Without Creating Underlying Objects in Java? (3 min)🍃
https://minborgsjavapot.blogspot.com/2021/11/did-you-know-you-can-create-mappers.html

How to choose the best Java garbage collector (9 min)🤔
https://developers.redhat.com/articles/2021/11/02/how-choose-best-java-garbage-collector

Multi-repository development made easy in Gradle (4 min)🗂️
https://melix.github.io/blog/2021/11/multirepo-dev-made-easy.html

Automatic Feedback on Plugin Publication (3 min)🔁
https://blog.gradle.org/plugin-portal-validations

Extending third-party APIs in different languages (6 min)🧩
https://blog.frankel.ch/extending-third-party-apis

Announcing Testcontainers Cloud: Integration Testing has never been easier (5 min)☁️
https://www.atomicjar.com/2021/11/announcing-testcontainers-cloud

IntelliJ IDEA 2021.3 Goes Beta! (2 min)🎉
https://blog.jetbrains.com/idea/2021/11/intellij-idea-2021-3-beta

GraalVM 21.3 Supports Java 17 (2 min read)🏆
https://www.infoq.com/news/2021/11/graalvm-21-3-java-17

String.format() 3x faster in Java 17 (7 min)🚀
https://www.javaspecialists.eu/archive/Issue294-String.format-3x-faster-in-Java-17.html
How to Install Fira Code Font in VS Code and Sublime Text
Tags: laravel
Published: 2021-11-10 17:20:21

I have been Sublime Text user for past 5 years and I really believe no other text editor can even match the speed, performance and simplicity of Sublime Text. Only thing that has been missing for me was ligature support. I loved Fira Code very much and I really wanted this to be enabled on Sublime text. Fira code offers beautiful ligatures for operators. I have been waiting for this particular feature on Sublime Text for so long. There has been numerous threads seeking the same feature from many developers across web.

At last, developer’s cry has finally reached the contributors of ST and from version 3156+ Sublime Text supports ligatures. Yay!

[How to Install Fira Code Font in VS Code and Sublime Text](https://www.codecheef.org/article/how-to-install-fira-code-font-in-vs-code-and-sublime-text)
How to Get Gravatar URL in Laravel Without Packages
Tags: laravel
Published: 2021-11-10 17:19:19

Laravel Gravatar Helper is a good package that we can use to generate Gravatar avatar URL, with multiple connections support. laravel gravatar. Laravel Gravatar Helper is a good package that we can use to generate Gravatar avatar URL, with multiple connections support. laravel gravatar

Laravel Gravatar Helper is a good package that we can use to generate Gravatar avatar URL, with multiple connections support. laravel gravatar. Laravel Gravatar Helper is a good package that we can use to generate Gravatar avatar URL, with multiple connections support. laravel gravatar

[How to Get Gravatar URL in Laravel Without Packages](https://www.codecheef.org/article/how-to-get-gravatar-url-in-laravel-without-packages)
Laravel Search Query Example with Like Operator

Tags: laravel
Published: 2021-11-10 17:18:00

Laravel where like query example. Here you will learn how to use laravel whereLike() eloquent method in different ways with query builder and model.

In laravel, using whereLike() eloquent method, you can implement laravel where like search query, laravel where like multiple columns and laravel collection with where like.

Now, Take look at examples of laravel whereLike() eloquent methods, as following:
[Laravel Search Query Example with Like Operator
](https://www.codecheef.org/article/laravel-search-query-example-with-like-operator)
1 line of code: How to get every even item of an Array
Tags: javascript, webdev, performance, codequality
Published: 2021-11-10 17:17:29

```javascript
const evenItems = arr = arr.filter((_, index) => index % 2 === 0);
```
Returns an array which contains every even item of the original array.

---

## The repository & npm package

You can find the all the utility functions from this series at [github.com/martinkr/onelinecode](https://github.com/martinkr/onelinecode)
The library is also published to [npm as @onelinecode](https://www.npmjs.com/package/@onelinecode/onelinecode) for your convenience.

The code and the npm package will be updated every time I publish a new article.

---

Follow me on [Twitter: @martinkr](http://twitter.com/_martinkr) and consider to [buy me a coffee](https://www.buymeacoffee.com/martinkr)

Photo by [zoo_monkey](https://unsplash.com/@zoo_monkey) on [Unsplash](https://unsplash.com/s/photos/fuji)

---
RSS Feed Example in Laravel Without Packages
Tags: laravel
Published: 2021-11-10 17:16:19

In this article, we will discuss how to generate RSS Feed using roumen/feed package in Laravel 8. so we are using roumen/feed package to generate RSS feed.

The RSS feed through we can easily send a new update of our websites. such as newsletters and new articles update ..etc

The Google Feedburner, Mailchimp and Mailgun also provide RSS feed facility but if you want to generate RSS feed in laravel then you can do it.


[RSS Feed Example in Laravel Without Packages](https://www.codecheef.org/article/rss-feed-example-in-laravel-without-packages)
What is Signed URL and How and When to Use It in Laravel
Tags: laravel
Published: 2021-11-10 17:14:08

These URLs have a "signature" hash appended to the query string which allows Laravel to verify that the URL has not been modified since it was created. Signed URLs are especially useful for routes that are publicly accessible yet need a layer of protection against URL manipulation.

These URLs have a "signature" hash appended to the query string which allows Laravel to verify that the URL has not been modified since it was created. Signed URLs are especially useful for routes that are publicly accessible yet need a layer of protection against URL manipulation.
[What is Signed URL and How and When to Use It in Laravel](https://www.codecheef.org/article/what-is-signed-url-and-how-and-when-to-use-it-in-laravel)
Laravel 8 SQLite Database Connection Example
Tags: laravel
Published: 2021-11-10 17:12:19


Laravel allows user work on multiple database connections. If you need to connect to multiple databases and make them work together, you are beware of the connection setup.

You also allow using different types of database in the same application if you required.
Laravel allows user work on multiple database connections. If you need to connect to multiple databases and make them work together, you are beware of the connection setup.

You also allow using different types of database in the same application if you required.
Laravel allows user work on multiple database connections. If you need to connect to multiple databases and make them work together, you are beware of the connection setup.

You also allow using different types of database in the same application if you required.

[Laravel 8 SQLite Database Connection Example](https://www.codecheef.org/article/laravel-8-sqlite-database-connection-example)
How to Create Socket.io Server with Express Js in Laravel
Tags: laravel
Published: 2021-11-10 17:07:02

Today now in this post, i will go to show you a example of how to make real time chat message module by using socket.io, redis, express and nodejs in Laravel application. We know that socket.io through we can make a real time chat module in our Laravel application. So now here i will show you this from the scratch because you need to install nodejs and its packages etc. From this post you can understand and also learn step by installing and how to write code. Now we have to follow the bellow step and need to implement real time chat module in our application.
[How to Create Socket.io Server with Express Js in Laravel](https://www.codecheef.org/article/how-to-create-socketio-server-with-express-js-in-laravel)
GitHub App for drafting new announcements using pull requests
Tags: opensource, github, node, typescript
Published: 2021-11-10 17:05:14

Do you use GitHub discussions? Do you create announcements for your open-source projects or org team posts? How do you get feedback or peer reviews on your post before creating it?

With [Announcement Drafter](https://github.com/apps/announcement-drafter), create a pull request to get feedback from your teammates on your announcement, and merge the pull request to have it posted!

You can even use private repos to draft announcements and get feedback privately, and on merge have the announcement created in your public repo.

No more copy/pasting your post content into Google Docs. No more rewriting the markdown. Write the markdown once, get feedback and merge 🚀

Check it out and don't forget to ⭐ !

Repo: https://github.com/philip-gai/announcement-drafter
App: https://github.com/apps/announcement-drafter
Appreciation post
Tags: hacktoberfest, beginners
Published: 2021-11-10 16:48:55

<img src="https://hacktoberfest.digitalocean.com/_nuxt/img/logo-hacktoberfest-full.f42e3b1.svg" alt="Hacktoberfest 2021">

I have wanted to start contributing to open source for a while now but I actually didn't know where to start, thanks to hactoberfest I have my first contribution to open source.

I can't wait for the nearest future where I see myself contributing into large projects.

Thank you for **hacktoberfest badge**
Upload Large CSV File using Queue Job Batching in Laravel
Tags: laravel
Published: 2021-11-10 17:02:35

I recently had to import a 30,000 line CSV file, in this post, I document how I tackled this task.

large files can be read fairly easily with PHP the issue is when you start inserting the data into a database, even worse if you're first checking if the record already exists. In that case, say you're working with a 100 lined CSV file your end up doing 200 queries. You can't avoid needing to do the queries but doing lots in one go will use up your application's memory and will timeout when taking too long.

It's easier to break up a large file into smaller files and process them in batches.

Let's go through the steps achieved.
[Upload Large CSV File using Queue Job Batching in Laravel](https://www.codecheef.org/article/upload-large-csv-file-using-queue-job-batching-in-laravel)
Upcoming book on privacy engineering
Published: 2021-11-10 16:57:26

If engineers and leaders working on privacy and security would like to pre-order my upcoming book, this link offers 50% discount!

If engineers and leaders working on privacy and security would like to pre-order my upcoming book, this link offers a 50% discount using code "mlbhajaria!" 

The book has received great reviews from industry experts but its real test will be in how engineers and data specialists use it to innovate with privacy in mind.

https://bit.ly/2UXldkR