teleren/devto huggingface dataset:
ddd
Tags: hacktoberfest
Published: 2020-10-26 18:31:57

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->


### [Intro Heading]
<!-- If you are new to the DEV community, introduce yourself and share a bit about why you joined DEV and decided to participate in Hacktoberfest this year.  --> 
### Background

<!-- Are you brand new to open source? What about coding in general? Tell us about how you got here →

### Progress

<!-- Share a bit about where you’re at in your Hacktoberfest journey. What stage are you at? How has the process been?  -->

### Contributions

<!-- This is where you can list the contributions you made and explain why you chose the projects you did. Don’t forget to add links!  -->


### Reflections
<!-- Overall, how has your Hacktoberfest 2020 experience been? If you’re a first-timer, will you participate again? What have you learned? Have you made any interesting connections? What is your next step in open source?  -->
Online party planning website
Tags: ucschf2020
Published: 2020-10-26 18:29:57

## Team Declaration

#### Team Name - Alpha

|             | Name     | Student ID Number | Github Handle    |
|-------------|----------|-------------------|------------------|
| Team Leader | Anushka  | 2018IS087         | @AnushkaDarshana |
| Member 1    | Ayomal   | 2018IS023         | @Ayomal98        |
| Member 2    | Chanaka  | 2018IS093     |@chanakawickramasinghe|
| Member 3    | Uvini    | 2018IS013         |@uvinidesilva22   |
| Member 4    | Anuradha | 2018IS092    |@AnuradhaWickramasighe99|     

## What we are building

Nowadays, people are busy with their schedules. So, its an impractical thing for them to organize a party on their own for their loved ones.  They always need someone to assist them and guide them throughout the process.  Also, since they have lesser time to come and visit the store and place their order, it is always better to maintain an online platform which shows all the past work and the opportunity to place the order.


## How we built it

**[Initial Update]**
We identified the ongoing issues and planned the best way to overcome these issues.

**[Update 2]**
Built the UIs and planned the database


**[Final Update]**
Refactorized the project.

## Conclusion
We would really appreciate the efforts you have taken for us. The entire team had a great experience in developing the coding. We are looking forward to participating more in events like this.


## Demo Link
 Demo Link: <i>Link to your demo (Optional)</i>


## Link to Code
<u>Github</u> 
<i>https://github.com/Ayomal98/Parties-by-Cristal.git</i>
Glee - Breaking the boredom
Tags: ucschf2020, hacktoberfest2020, mozilla
Published: 2020-10-26 18:22:45

Team Declaration
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/bnlrvy2wzzox1i48nyql.jpg)
Team Name - TeamX001
Name	Student ID Number	Github Handle
Team Leader	Janani Wasana	18000894	@Jwasana
Member 1	Manthi Nimaya Perera	18001211	@NimayaPerera
Member 2	Michelle Fernando	18000551	@MichelleFdo

What we are building
With the current situation in the world, we will often have to stay home. for those of us who work outside the home, spending time at home can be like being in a prison cell. we need to spend our days without stress and without wasting time. many people are accustomed to using social media. we think it is monotonous. 
As a solution, we thought of fulfilling many different things in one place.
Therefore we decided to create a website by adding several applications called "Glee" with a Cyberpunk theme. Having the meaning joyful/ Cheerful and Happiness. The main purpose of this is to spend time without wasting time and thereby develop people's imagination in some way and also to avoid the toxic environment. It includes several elements.
1.Music
2.Movies
3.Games
4.Cookery
5.E-Books and many more fun activities

How we built it
[Initial Update - 22nd of October]
All the team members participated in the awareness session. Get some knowledge on what they expect from this competition and what we should build.

[Update 2 - 23rd of October]
Three of us had many ideas, related to this covid-19 pandemic. But finally, come up with the best idea to build. We have named it 'Glee'.

[Update 3 - 24th of October]
After getting some inspiration from Cyberpunk website themes, we decided to build our project with it. Searched for color themes and images that suit our idea.

[Update 4 - 25th of October]
Created the repository 'Glee website'. Begins to build UI's using Adobe XD.

[Update 4 - 25th of October]
Developed Login and Signup Pages using HTML5, CSS, and PHP.
Finalize the UIs. Submit the project. We hope to connect other APIs, Applications, and add more other features in the future.

Link to Code
Github
https://github.com/NimayaPerera/Glee-website
TIL: Bundle install with a specific version of Bundler
Tags: todayilearned, todayisearched, ruby
Published: 2020-10-26 18:12:51

The challenge with working on multiple Ruby on Rails projects is coming across issues conflicting dependencies between projects. One issue I have been having has been with the version of `bundler`. One project I am working on depends on `bundler v2` and another depends on `bundler v1` running on the same Ruby version.

Upgrading `bundler` version for the project using `bundler v1` is not an option right now and trying to do any `bundle installs` can get very annoying since it will be using the wrong version of `bundler` for the `Gemlock`.

After doing some web searching for a potential solution I found out about this funky annotation for telling `bundle` what version of the `bundler` gem you would like to use:  

```bash
bundle _1.13_ install
```

It's a weird argument but it works. So next time you have a different major `bundler` versions across projects try using this.
Better Pattern in fetching API data?
Tags: react, api
Published: 2020-10-26 18:10:04

I am fetching jokes data on the first time component rendered in `useEffect` hooks. But after that, I want to get new jokes data when the `Want more` button will be clicked, so I am handling that in `handleNewJoke` function. But here is the problem I am repeating same code. What approch should I take here? 

```
import * as React from "react";
import { useState, useEffect } from "react";
import axios from "axios";
import Jokes from "./components/Jokes";

export interface JokesProp {
  id: number;
  type: string;
  setup: string;
  punchline: string;
}

const App: React.FC = () => {
  const [jokes, setJokes] = useState<JokesProp>({
    id: 166,
    type: "general",
    setup: "What did one wall say to the other wall?",
    punchline: "I'll meet you at the corner!",
  });

  useEffect(() => {
    const getJokes = async () => {
      const response = await axios.get(
        "https://official-joke-api.appspot.com/random_joke"
      );
      setJokes(response.data);
    };
    getJokes();
  }, []);

  const handleNewJokes = async () => {
    const response = await axios.get(
      "https://official-joke-api.appspot.com/random_joke"
    );
    setJokes(response.data);
  };

  return (
    <main>
      <h1>Jokes</h1>
      <Jokes jokes={jokes} />
      <button onClick={handleNewJokes}>want more</button>
    </main>
  );
};

export default App;
```
approach to open source
Tags: hacktoberfest
Published: 2020-10-26 18:05:26

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->


### I am new to the dev community started coding in 2017 but when participated in hacktober fests from 2018 reached to dev today and i am writing about my experiences 
<!-- If you are new to the DEV community, introduce yourself and share a bit about why you joined DEV and decided to participate in Hacktoberfest this year.  --> 
### 
I have coded in long time currently coding in python 

<!-- Are you brand new to open source? What about coding in general? Tell us about how you got here →

### Currently all of my pull requests are approved anf all the contributions are done successfully 

<!-- Share a bit about where you’re at in your Hacktoberfest journey. What stage are you at? How has the process been?  -->

### Contributions
https://github.com/SHY-Corp/LeetCode-Solutions/pull/374
https://github.com/SHY-Corp/LeetCode-Solutions/pull/368
https://github.com/SHY-Corp/LeetCode-Solutions/pull/352
https://github.com/SHY-Corp/LeetCode-Solutions/pull/351
https://github.com/SHY-Corp/LeetCode-Solutions/pull/253
https://github.com/SHY-Corp/LeetCode-Solutions/pull/233

<!-- This is where you can list the contributions you made and explain why you chose the projects you did. Don’t forget to add links!  -->


### Reflections
it has been a great performance this year in the open source event organised by digital ocean this time there were several changes in the guidelines , rules and regulations regarding the fest this lead to a fair and healthy fest i would like to thank digital ocean for organizing this fest and allowing us to show case our talent THANK YOU 
<!-- Overall, how has your Hacktoberfest 2020 experience been? If you’re a first-timer, will you participate again? What have you learned? Have you made any interesting connections? What is your next step in open source?  -->
#hacktoberfest
@digitalocean
Kıdem Tazminatı şartları nelerdir, nasıl hesaplanır?
Tags: hukuk, avukat, law, lawyer
Published: 2020-10-26 18:04:47



<strong>Kıdem tazminatı şartları:</strong>
A) İşçinin en az 1 yıldır çalışıyor olması,
B) İşçinin 4857 sayılı i̇ş kanunu kapsamında i̇ş görmesi.

Kıdem tazminatı hakkında ayrıntılı bilgi için https://www.ozdogruhukuk.com/yayinlar/kidem-tazminati-sartlari-ve-kidem-tazminati-davasi.html bu linkten yardım alabilirsiniz.

- Kadınlar evlenme nedeniyle istifa ettiği takdirde kıdem tazminatına hak kazanır.

- Erkekler askerlik hizmeti için istifa etmesi durumunda kıdem tazminatına hak kazanır.

- İşçi emeklilik durumunda kıdem tazminatına hak kazanır.

- İşçinin ölümü durumıunda mirasçıları kıdem tazminatına hak kazanır.

- İşçi tarafından haklı nedenle fesih halinde, i̇şçi kıdem tazminatına hak kazanır.

- İşveren tarafından ahlak ve i̇yi niyete aykırılık hali hariç diğer haklı sebep hallerinde i̇şçi kıdem tazminatına hak kazanır.
Creating an AWS Lambda Function in Java
Tags: java, aws, lambda, function
Published: 2020-10-26 05:29:55

To create an AWS Lambda function in Java, first, we need to create a Handler class that implements the RequestHandler interface from the lambda package of the AWS SDK (see [RequestHandler interface](https://github.com/aws/aws-lambda-java-libs/blob/master/aws-lambda-java-core/src/main/java/com/amazonaws/services/lambda/runtime/RequestHandler.java). Then, we need to override the handleRequest method from that interface. That method receives a generic object and a context (from the lambda package of the AWS SDK too) and returns another generic object (or void) that is serialized by the runtime into a JSON document. If it is a type that wraps a primitive value, the runtime returns the representation of that value. 

In the next example, we are using a Map and a String to replace the generic objects. The map object will have all the information coming from the event (from the trigger, e.g. API Gateway, as a JSON formatted string), and the context is the information about the invocation (AWS request ID, lambda function version, lambda function ARN, execution environment details, and Cognito identity information).

If you need to take advantage of the execution context for reuse (if the lambda function is on hold waiting for another usage), you can create some global variables (for example to create database connections, loggers, etc)

```java
public class Handler implements RequestHandler<Map<String,String>, String>{
  private static final Logger logger = LoggerFactory.getLogger(Handler.class);
 
  @Override
  public String handleRequest(Map<String,String> event, Context context)
  {
    String response = new String("200 OK");
    ...
    return response;
  }
}
```

Read more about Java Lambda Functions at:
* [https://docs.aws.amazon.com/lambda/latest/dg/lambda-java.html](https://docs.aws.amazon.com/lambda/latest/dg/lambda-java.html)
* [https://docs.aws.amazon.com/lambda/latest/dg/java-handler.html](https://docs.aws.amazon.com/lambda/latest/dg/java-handler.html)
* [https://docs.aws.amazon.com/lambda/latest/dg/java-package.html](https://docs.aws.amazon.com/lambda/latest/dg/java-package.html)
* [https://docs.aws.amazon.com/toolkit-for-jetbrains/latest/userguide/create-new-lambda.html](https://docs.aws.amazon.com/toolkit-for-jetbrains/latest/userguide/create-new-lambda.html)
* [https://docs.aws.amazon.com/toolkit-for-jetbrains/latest/userguide/invoke-lambda.html](https://docs.aws.amazon.com/toolkit-for-jetbrains/latest/userguide/invoke-lambda.html)
* [https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html](https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html)
* [https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html](https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html)
Check if a string is Palindrome
Tags: javascript, codenewbie, webdev, beginners
Published: 2020-10-26 17:38:20

```js
const isPalindrome = (str) => str === str.split("").reverse().join("");

isPalindrome("codedrops"); // false
isPalindrome("racecar"); // true
```

---

**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/)**
On .NET Episode: PWA's with ASP.NET Blazor
Tags: blazor, dotnet, webdev, pwa
Published: 2020-10-26 17:36:24

Progressive Web Applications (PWA) use modern browser APIs and capabilities to behave like a desktop app. Since Blazor WebAssembly is a standards-based client-side web app platform,  developers have the ability to leverage these browser APIs and create PWAs using .NET.

In this episode, Jeremy is joined by Dan Roth to discuss the built in support for building PWAs with Blazor and show us a few demos of how get started.

{% youtube 68pTZV5qcgE %}

If you liked this video and would like to see some more of our .NET content, please subscribe to our [.NET Developers YouTube Channel](https://www.youtube.com/channel/UCvtT19MZW8dq5Wwfu6B0oxw).


<ul>
<li><a href="https://docs.microsoft.com/aspnet/core/blazor/?view=aspnetcore-3.1&amp;WT.mc_id=ondotnet-c9-cephilli" target="_blank">Get started with Blazor</a></li>
<li><a href="https://docs.microsoft.com/en-us/aspnet/core/blazor/progressive-web-app?view=aspnetcore-3.1&amp;WT.mc_id=ondotnet-devto-cephilli" target="_blank">Build Progressive Web Applications with ASP.NET Core Blazor WebAssembly</a></li>
<li><a href="https://docs.microsoft.com/en-us/aspnet/core/blazor/call-javascript-from-dotnet?view=aspnetcore-3.1&amp;WT.mc_id=ondotnet-devto-cephilli" target="_blank">Call JavaScript functions from .NET methods in ASP.NET Core Blazor</a></li>
</ul>
Improve Docker performances with WSL2
Published: 2020-10-26 17:36:07

Docker is the most used container solution. It aligned development experience across various OS, delivering the same container on all the platforms.

By the way, in Windows, there were some performance issues. 

Learn how to boost your setup using WSL2 technology delivered with latest Docker and Windows update.

[read the full article](https://towardsdatascience.com/how-to-improve-docker-performance-with-wsl2-3a54402ab0f2?sk=126467989b22256d3e443feb82f2f701)
Support the community through a charity website
Tags: ucschf2020
Published: 2020-10-26 17:30:26

## Team Declaration

#### Team Name - Sherlock

|             | Name     | Student ID Number | Github Handle |
|-------------|----------|-------------------|---------------|
| Team Leader | S.R.W.M.M.T.K.Ekanayake | 2018CS049         | @ThiliniEkanayake      |
| Member 1    | K.A.D.N.Nanayakkara | 2018CS107         | @DiliniNanayakkara      |
| Member 2    | R.M.D.S.Harishchandra | 2018CS061         | @Harishchandra98      |
| Member 3    | G.R.N.Sankalani | 2018CS151         | @Navodyasankalani      |
| |  |          | |     

## What we are building

As a developing country, some of Sri Lankan families still suffer from poverty.
Though there are so many charity programs are processing in current Sri Lanka, the ability to join such program as a volunteer or as a donor is difficult. So our project (Sherlockind) is a best platform where volunteers and donors bring together. Through this project (Sherlockind) volunteers and donors can gain charity projects easily in Sri Lanka.

## How we built it

First we finalized the idea. Then we distributed workload among the team members. Finally we pushed all the work as one folder.

## Conclusion

For an assignment while we searched through the internet one of our team member suddenly saw a picture of a helpless child. This incident paved the path to our project.



## Link to Code
<u>Github</u> 
 <i>https://github.com/DiliniNanayakkara/SherlocKind</i>
CONTRIBUTING: PnPjs
Tags: hacktoberfest, opensource, opensourceoctober
Published: 2020-10-26 17:30:11

> Leading up to (and during) the month of October, we want to help you discover open source projects to work on, and put your Hacktoberfest contributions to excellent use. Meet [Patrick Rodgers](https://twitter.com/mediocrebowler) & [Julie Turner](https://twitter.com/jfj1997), co-maintainers for the [PnPjs project](https://github.com/pnp/pnpjs).   
> ######*Check out [this page](https://www.contributing.today/) regularly for more interviews with contributors & maintainers*######

**What can you tell us about your project?**
PnPjs is a fluid JavaScript library that is designed to help you make requests to SharePoint and Microsoft Graph. We've been around since 2016, so that's 4.5 years of great, fun work with the community. Right now we process about 9.2 billion requests to SharePoint online, coming out of about 19.000 tenants.

**What contributions are you welcoming?**
We'd love for people to contribute to Docs, helping us clarify and streamline documentation so that people can consume the library better. We also list Issues in our repo that are an opportunity to contribute. But also if you have ideas, things you'd like see as part of the library, we welcome that as well! Submit your PR and we will review and if it's a good fit we'll absolutely include your addition in the next version - and we release on a monthly cadence.

**What skills do people need to contribute?**
From a skills perspective it's really good if you have some general understanding of how to use TypeScript and build client-side solutions - you'll need to be able to write TS, and review the library that's already there, so that you can extend it. It's build in such a way that it has a core set of functionality, and the way that we extend it is to build on top of that. It takes a little bit to understand that (core set of functionality), but you can have a look at some of the other features of the library to help you get started on extending PnPjs for whatever RESTful endpoints we're not yet covering, or for things we could do a little better. 

And if you have questions on getting started contributing, of course you could post those on our Issues list, and we'll do our best to help you out! 

**How do folks get started?**
In order to get started, you can check out the [Contribution guidelines](https://pnp.github.io/pnpjs/contributing), which give you step by step guidance on how to get your workstation set up. It's also our Docs, so more information on how to use the library can also be found there. 

*Check [contributing.today](https://www.contributing.today/) regularly for more interviews with contributors & maintainers, as well as online events to help you get involved in open source.*
Contributing: Megan Sullivan on Gatsby
Tags: hacktoberfest, opensource, opensourceoctober, gatsby
Published: 2020-10-26 17:28:49

> Leading up to and during the month of October, we want to help you discover open source projects to work on, and put your Hacktoberfest contributions to excellent use. Meet [Megan Sullivan](https://twitter.com/meganesulli), Senior Software Engineer who works on documentation at [Gatsby](https://gatsbyjs.com).   
> ######*Check out [this page](https://www.contributing.today/) regularly for more interviews with contributors & maintainers*######

**What can you tell us about your project?**
Gatsby is an open source project that's been around since 2015, and the company started in 2018. [Gatsby](https://github.com/gatsbyjs/gatsby) is a framework that lets you build React apps quickly. Our goal is to make building the right thing, the easy thing. So that means that we give you some accessibility features off the bat, and we think about performance and security so you don't have to. You can focus on building your UI as quickly as possible.  

**What contributions are you welcoming?**
For Hacktoberfest we have 2 main ways for you to contribute to our project. The first way is to work on the Docs. Our documentation has a few Issues open looking for contributions. The second way is to contribute to the code. There is [one issue in particular](https://github.com/gatsbyjs/gatsby/issues/21995), for the TypeScript migration - there's a long list of files that we're transferring over to TypeScript, and we would love your help with that.

**What skills do people need to contribute?**
Our project is written in JavaScript, it uses Node and React, and also Graphql, so depending on what part of the codebase you want to contribute to, you'll need to know some or all of those. We also use npm, or yarn, depending which part of the codebase you're in. And if you want to contribute to our Docs, those are written in markdown. 

**How do folks get started?**
The best way to get started is to go and look at our GitHub Issues list. There are a few different labels you can look for there. For now you can look for the `hacktoberfest` label. Once Hacktoberfest is over you can look for the `good-first-issue` or `help-wanted` labels. On our website we have [Contributing guide](https://gatsbyjs.com/contributing/) that outlines advice on how to get started, our Code of Conduct, as well as recommendations to make sure your contribution gets accepted!  

*Check [contributing.today](https://www.contributing.today/) regularly for more interviews with contributors & maintainers, as well as online events to help you get involved in open source.*