teleren/devto huggingface dataset:
How to Donate to UNICEF with the Internet?
Tags: unicef, donate, abiebdragx
Published: 2019-10-06 19:45:21


Do you wish to donate to small charities? Donating is really a fun way to share to others what you have for the rest of the year or the period. But do you want to know your choices to donate? Below are some ways to help you donate to small charities:

Include it in the checkbook. The most common way to donate is to write a check for the organization that is working within the limits of the cause you want to support. Writing a check is a very direct form of donating to charities. Sending it by mail or directly and personally handling the check to the organization's clerk is a great idea.

Use donor-advised funds. For those who don't have a list of small charities to donate, it is good to use services of donor-advised funds sponsoring organizations. Sponsoring organizations accept funds with the advice of what causes you intend to help. When the sponsoring organization receives the donation, it will be the one to distribute the donation to different small charities that need the donation most.

Circle of people. Are you in a club in your area, say a homeowners club? Well, if you have a set of clubs or associations, you may encourage the members to donate and use the name of the club. It is a better idea to raise funds for the charity that is working for the cause you love, like a spinal cord injury recovery non-profit organization.

Through intermediaries. During the Haiti tragedy, it is very hard for people in Asia to personally hand their donations to the people. With the aid of intermediaries, like the big charity organizations, the donations from people of different geographical locations are catered and served to the people in need.

Donation Website. There are online donation websites that can be a great tool to flow the donations of people. With donation website, geographical barriers are broken; and funds are easily transferred. Donation website caters donations through major credit cards or fund transfers.

Bank transfer. Right now, small charities are utilizing bank accounts for the easy access and transfer of funds. Unlike the use of money orders that may take time to arrive, donations through bank transfers can be reflected in the charity organization's account within seconds - and the fund can be used immediately to provide the needs of the programs.

<a href='https://www.abiebdragx.me/2019/10/cara-berhenti-donasi-unicef.html' title='cara berhenti donasi unicef'>Cara berhenti donasi unicef</a> - Donations of companies. Most charity organizations are depending on the funds and donations from various companies. Corporations are giving part of their income through donations that will give them tax cuts. Direct donations are the usual process that most companies are using.

Donating a part of your income is always a grand way to return the blessings you have received for the entire period. It will give you the opportunity to help a lame man walk again or a hungry child be fed. A simple donation may spare a person's life from the miseries of destitution.
Finding the perfect repository for Hacktoberfest
Tags: hacktoberfest, github, randomrepo
Published: 2019-10-06 19:31:44

## About Hacktoberfest
If you are a frequent visitor of this site there's a high probability you've heard about [Hacktoberfest](https://hacktoberfest.digitalocean.com). It's a month-long challenge to celebrate the open-source community.
And the best of it? There's a prize! Let's see that in the organizers' words:

> To qualify for the official limited edition Hacktoberfest shirt, you must register and then make four pull requests (PRs) between October 1-31 (in any time zone). PRs can be made to any public repo on GitHub, not only the ones with issues labeled Hacktoberfest. If a maintainer reports your pull request as invalid or behavior not in line with the project’s code of conduct, you will be ineligible to participate. This year, the first 50,000 participants who successfully complete the challenge will earn a T-shirt.

## Finding repositories to work on
I know from experience how hard is to find repositories and issues for your first contributions. Fortunately, there are some excellent tips and guides on the [program's details page](https://hacktoberfest.digitalocean.com/details) for beginners.

If you're a more experienced developer there's a chance you want to find interesting projects you've never heard of. I've made a little tool to help you with that.

## Randomrepo.com
[Randomrepo.com](https://randomrepo.com) is a filterable database of Github repositories over 1000 stars. The projects you find there already got some traction and proved to be useful for a lot of people.

![Randomrepo.com screenshot](https://thepracticaldev.s3.amazonaws.com/i/4qljiyj92qo1fxllfk4s.png)

On every page refresh, you get one random repository matching the filters. You can filter the repositories either by the number of stars or by its main programming language.

It's a little side project of mine that still requires some tweaking but I thought it might be helpful this month.

Feel free to add any comments regarding Randomrepo or Hacktoberfest below.
Join Some Tech Slacks
Tags: beginners, career, codenewbie, discuss
Published: 2019-10-06 19:24:11

---
title: Join Some Tech Slacks
published: true
description: I posted a brand new podcast episode this week suggesting folks join more tech slacks. I’d love to get some suggestions to share. 
tags: #beginners, #career, #codenewbie, #discuss
cover_image: https://images.pexels.com/photos/860227/pexels-photo-860227.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940
---

I posted a brand new podcast episode this week suggesting folks join more tech slacks. I’d love to get some suggestions to share.

I specifically suggested local tech slacks as a great way to get to know local developers and recruiters. But I also suggested there were others like remote worker slacks etc that can be great resources. 

It's an amazing way to get to know local developers. These are folks who work for companies you might want to work for.. They can make introductions, suggest companies you should apply you and can even put you forward for positions. Getting to know them and, more importantly, letting them get to know you can be a huge boost to your career.

Equally, a lot of these Slack communities have recruiters keeping an eye on the goings on. They're looking for potential recruits, keeping an eye on (and sharing) local events and generally are really great connections to have.

Connection is a huge part of networking. I used to view networking and marketing fairly negatively, I saw the worst of it. But what I've since learned is that networking and marketing are both based around creating connections and relationships. These are mutually beneficial things that are good for everyone. Yes, some people abuse that, but you don't have to! You can create really awesome relationships with other developers and recruiters and that can be your ticket to the job you're looking for!

Another aspect that goes back to the first one. There are other developers in these communities. Not only can they point out companies to work for and make recommendations... But they're also experienced and experiencing similar things to you. They're looking for jobs. They're freelancers looking for jobs. They're developers who've created apps they're trying to market. Their experience is of value and can help you along your journey. Sharing their experience and yours is a great way to promote the community and yourself!

So, if you're a part of a tech Slack you think would be beneficial to others, I'd love to hear about it so I can share. If you're looking for specific recommendations, feel free to share those as well!

In the meantime, if you're interested in the podcast episode!

[Go Join Some Tech Slacks!](https://gettingappsdone.com/episodes/go-join-some-tech-slacks/)
What is stopping you from joining a union?
Tags: discuss, career, opensource, healthydebate
Published: 2019-10-06 18:09:39

If you search for `union` on this site, you will find mostly articles about SQL join queries, but more and more programmers are interested in joining one. 

Kickstarter is the latest tech company to go public in their unionizing campaign, and they have asked people to support them in getting management to recognize them {%twitter 1179445723429003264 %}

{%link https://dev.to/steveblue/should-we-form-a-labor-union-13o %}

{%link https://dev.to/munizart/general-thoughts-about-unions-h83 %}

{%link https://dev.to/stereobooster/developer-is-the-next-blue-collar-job-269b %}

{%link https://dev.to/ben/will-software-ever-become-blue-collar-work-4aef 
 %}
Javascript Journey
Tags: javascript, webdev, humour, beginners
Published: 2019-10-06 18:00:44

---
title: Javascript Journey
published: true
description: 
cover_image: https://media.giphy.com/media/l46CbZ7KWEhN1oci4/giphy.gif
tags: javascript, webdev, humour, beginners
series: Hacking Nasa with Javascript 
---

Hey there,

![Alt text of image](https://media.giphy.com/media/YOjP742CyBbg0zKCbl/giphy.gif)

I have been thinking about organising things i learned and still learning at a single place like this. 

So instead of going to <code>google</code> and then <code>stack overflow</code> i can directly come right here. 

Wow . Brilliant idea . Nobody would have never thought about this. Classic.

I know you may think like that. But wait. There is more. I bet you can find atleast one new thing from here. 

Lets start with some very basic one. 

<h2>What is a closure?</h2>

So baby pull me closure in the back seat of your ... nop not that. 

<b>A closure is basically an inner function that has access to the outer or enclosing function's variables. </b>


![details](https://i.ibb.co/wJPmbyc/carbon.png)

So the <code>canIGoToMars</code> returns the inner function <code>firstThingFirst</code>.
<code>canIGoToMars</code> function has a variable in its local scope called <code>greeting</code>.
<code>firstThingFirst</code> function has access to the <code>greeting</code> variable . It console logs the <code>greeting</code> variable plus the name variable we pass into the  <code>canIGoToMars</code> function.

An example of closure. 



<h3>HTML</h3>
![details](https://i.ibb.co/st18K0x/carbon-2.png)
<h3>CSS</h3>
![details](https://i.ibb.co/4RTjLzd/carbon-3.png)
<h3>Javascript</h3>
![details](https://i.ibb.co/5c7ChVB/carbon-1.png)

{% codepen https://codepen.io/sandeepbalachandran/pen/NWWWOvd default-tab=js,result %}

###References
[MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Closures) 
[Dude Explaining Closure] (https://www.youtube.com/watch?v=71AtaJpJHw0)



Lets wrap up with a real complex javascript scenario only god can answer.

<h2>How to console a certain word without using its entire letters</h2>


Say here its 'banana'. We can use most likely

<code>console.log(('b' + 'a' + + 'a' + 'a').toLowerCase());</code>

Developers are still researching on this. 

If we can go through their updates it would be

*+'a' resolves to NaN ("Not a Number") because it coerces a string to a number, while the character a cannot be parsed as a number.*

Thats it for now.
How to check File exist in Folder or Not in Laravel 6 ?
Tags: laravel
Published: 2019-10-06 17:44:54

 I will show you how to check file in folder exists or not.if you required to check if file is exists or not in given path then you can check easily. Normally we always need to check file exists

more

https://nicesnippets.com/blog/how-to-check-file-exist-in-folder-or-not-in-laravel-6
Introducing DocFetcher: the document retrieving bot!
!!
Published: 2019-10-06 17:42:15

DocFetcher is a bot that retrieves programming language documentation information. Right now, DocFetcher only works with Java 7, 8, and 11 To use DocFetcher simply leave a comment like this:

!DocFetcher https://pcbuilder.onl/pcpartpicker/

The bot will respond with information about the Integer class and a link to the Java 7 documentation about the Integer class. To call the other version just do java7, java8, or java11 https://curated.onl/nba-reddit/

In the future, DocFetcher will work with other languages(c++, python, swift, JavaScript) hopefully starting with python. The bot is still in development, for questions and suggestions, please send a message.https://reversephonelookup.onl/
Github hosted comments
Tags: showdev
Published: 2019-10-06 17:32:37

---
title: Github hosted comments
published: true
description: Absolutely free 3rd party commenting hosted system from the famous open-source system
cover_image: https://thepracticaldev.s3.amazonaws.com/i/eob137p0mv87eifsmu5k.jpeg
tags: #showdev 
---

There are a ton of free comment widgets available — I tried Disqus, Facebook, Livefyre for example. They all have huge disadvantages — privacy, page loading time, number of requests, limit functionality and useless logins to 3rd party systems. But there is a new(at least for me) idea to store comments in Github issues.

The benefits of this approach you get immediately:

1. Tracking site visitors is reduced to zero. Github itself only sees requests from anonymous IPs.
2. All comments are written in Markdown, with support for inline code, images, lists, and formatting.
3. You can use Github's notifications of responses; you don’t even need to go to this site to read comments and participate in the discussions.

Already exist a Github app for that purpose - [utteranc.es](https://utteranc.es/) (no advertizing, my personal recommendation). Check it out on my site - http://luminousmen.com

*Photo by Andrew Neel on Unsplash*

------



**Thank you for reading!**

Any questions? Leave your comment below to start fantastic discussions!

Check out [my blog](https://luminousmen.com/) or come to say hi 👋 on [Twitter](https://twitter.com/luminousmen) or subscribe to [my telegram channel](https://t.me/iamluminousmen).
Plan your best!
Basic command line "find" written in C. Asking for review.
Tags: replit, c
Published: 2019-10-06 17:07:42

Hey!

This is a simple command line to find a string within all files of a directory and its subdirectories.

Please compile using the shell functionality of repl.it:
on windows it's  ctrpl+shift+p > type Open Shell
In the terminal please follow these instructions:
> make
> ./main test
Output should be showing the lines matching your search "test"
> ./main -l test
Output should be only showing filenames containing matches.

I am not sure whether this has bad practices in terms of memory allocation or even if it has undefined behaviour. I would be grateful if you could review the code and tell me.
Beginner in C here

{% replit @axelduch/find-unix %}
Spread Syntax (ES6) (Must know for React)
Tags: javascript, react
Published: 2019-10-06 16:27:36

JavaScript is becoming more powerful every day (thanks to ES6 and Babel), new syntax and tools allow us to write concise code and the less code we have to write the less errors. This is for my skill reinforcement purpose but you if can learn valuable knowledge from this then be the force with you! 



**Let's start from examples:** 

**Example 1**: Combining/Intersecting two arrays 

In this code, we will use the old way of combining two arrays using concat then the second way is using the spread syntax. 

{% jsfiddle https://jsfiddle.net/Tapesh/tbqj921g/5/ js,result %}

There is not much of a difference here as we are just putting two arrays together but where things get interesting is when we want to insert an array in the middle of another array.

{% jsfiddle https://jsfiddle.net/Tapesh/tbqj921g/23/ js,result %}

**Example 2** — You can also use the spread operator on objects, this makes it very easy to make a copy of an object and not worry about object references and mutability which can lead to unexpected behavior.

{% jsfiddle https://jsfiddle.net/Tapesh/tbqj921g/51/ js,result %}

**Example 3** — Combining two objects - Notice the spread syntax which is separated by a comma in order to combine!

{% jsfiddle https://jsfiddle.net/Tapesh/tbqj921g/56// js,result %}
Presenting with VS Code – Screencast mode
Tags: tools, code, presenting, speaking
Published: 2020-01-28 20:50:00

---
title: Presenting with VS Code – Screencast mode
published: true
date: 2019-10-06 15:58:28 UTC
tags: Tools,code,presenting,speaking
canonical_url: https://chrislayers.com/2019/10/06/presenting-with-vs-code-screencast-mode/
---

![](https://chrislayers.files.wordpress.com/2019/10/2019-10-06.png?w=1024)

I have been starting to speak and present a lot more, and was looking into great tools like [Carnac](http://carnackeys.com/) and [KeyPosé](https://github.com/AxDSan/KeyPose). But I just found out today about a feature I didn’t know existed inside Visual Studio Code, [Screencast mode](https://code.visualstudio.com/updates/v1_31#_screencast-mode). This was introduced in January 2019. How did I miss it?

To enable and use Screencast mode, Open the command palette, Ctrl + Shift + P.

![](https://chrislayers.files.wordpress.com/2019/10/enable-screencast-mode.png?w=605)

![](https://chrislayers.files.wordpress.com/2019/10/screencast-unconfigured.png?w=1024)

When first enabled, Screencast Mode is not what I wanted. It shows _EVERY_ keypress. It also shows a little higher on the screen that I prefer. It also puts a little red circle everywhere I click the mouse, which is nice. Let’s configure it and see if we can clean up some of that. Open the command palette again (Ctrl + Shift + P) and go to the user settings.

![](https://chrislayers.files.wordpress.com/2019/10/open-user-settings.png?w=612)

![](https://chrislayers.files.wordpress.com/2019/10/screencast-settings.png?w=999)

There aren’t a lot of options right now, but I only want to see keyboard shortcuts.. Ctrl+C, Ctrl+V, Alt+Shift+F. So I’ll check that, and I want it a little lower on the screen, so I lowered the default from 20 down to 5. Let’s see the finished product:

![](https://chrislayers.files.wordpress.com/2019/10/screencast-configured.png?w=1024)

Awesome. I can now go on a mac, linux, or windows machine and have a consistent experience with sharing my keypresses and mouse clicks. If you present, live code, or give demos, this is a great feature to enable and I encourage you to do so. Seeing all the keyboard shortcuts people use is a great thing to learn.
Tips to Become a Better Interviewer
Tags: discuss
Published: 2019-10-06 15:45:34

---
title: Tips to Become a Better Interviewer
published: true
tags: discuss
---

What tips do you have to be a better interviewer? I have a hard time following people's train of thought while they are problem solving. Also knowing what questions to ask.. basically I just freeze up like I'm the interview-ee. How'd you do it?
Howdy Programmers ...!!!🚨
Tags: linux, computerscience, contributorswanted
Published: 2019-10-06 15:37:38


Check out this brand new dedicated Developer Community app -DivSpace for programming related chats.

Get answers to your questions here and solve others.
⚠ Get it Exclusively (Early Access) now

Download here 📌📌
https://play.google.com/store/apps/details?id=com.thedivspace.divspace
Day 5/100 - Understanding Type Inferences
Tags: typescript, javascript, 100daysofcode
Published: 2019-10-06 15:16:01

On day 5 of #100daysofcode challenge, learned more about Type Inferences and when to use Type Inferences and Type Annotation in the code. 

Following are some of the key points I learned today:
1. What is Type Inferences and how does TypeScript compiler know that variable need to infer to a type?
2. Learned when to use Type Inference and Type Annotation.
3. You should always use Type Inference except for some exception.
4. Three thumb rules to use Type Annotation instead of relying on TypeScript compiler.
5. The Any type in TypeScript and how to fix it. The side effects of Any type.

Tomorrow, I would start with Annotation with functions.

Happy Coding.
I'm building a product, should I stream it?
Tags: discuss
Published: 2019-10-06 14:53:32

Hey everyone!

I am in the middle of designing a new product and subsequently a new company. I really like the idea of being open about how I am building it so others can learn how to/not to do things.

This would be a no brainer if I was going to make the code open source but at this point I am choosing not to. My question to the community is:

> Should I stream the building of this product?

I am really talking about the coding and design of it, with the possible extension of the building of the company.

I would love all your thoughts, good, bad and ugly!

---

You can read a vague article I wrote about what I am doing here: https://dev.to/ericadamski/creating-more-meaningful-interactions-4j2h
Local and global variables in Javascript - 00013
Tags: javascript, beginners, deliaslan, khanacademy
Published: 2019-10-06 14:34:04

__please ignore xPos and yPos values__
__codesample from khan academy__

var __lifeInches__ = 20; //

var calcInches = function(startAge, endAge, inchesPerYear) {
    var totalInches = inchesPerYear * (endAge - startAge);
    __lifeInches__ += totalInches;
    return totalInches;
};

fill(255, 0, 0);

text("From 0-8 years:", 10, 20);
text(calcInches(0, 8, 2.5), 10, 40);

text("From 8-16 years:", 10, 100);
text(calcInches(8, 16, 2), 10, 120);

text("Total grown over life:", 10, 168);
text(__lifeInches__, 10, 200);



__output:__
_"From 0-8 years: 20"
"From 8-16 years: 16"
"Total grown over life: 56"_


__lifeInches__ -> global variable

__totalInches__ -> local variable

__calcInches__ -> local variable
Functions with parameters in Javascript - 00012
Tags: javascript, beginners, deliaslan, khanacademy
Published: 2019-10-06 13:52:28

__simple using sample__

var add = function(num1, num2) {
    return num1 + num2;
};

add(3,4);

__output:__ "7"


_parametreler sayesinde aynı fonksiyonu bir çok yerde farklı şekillerde kullanabiliriz._
How to test views?
Tags: testing, tdd, html, question
Published: 2019-10-06 13:10:42

---
title: How to test views?
published: true
description: 
tags: testing, tdd, html, question
---
Unusually for me, my current project I'm doing in the traditional Web 1.0 style. It's a forms based app, and the server is rendering HTML direct to the browser. And it's really efficient to work this way.

Until you get to automated testing. With REST APIs, or GraphQL, or anything like that, you've got very obvious test points. For example, you have an API to get a user profile, and it just returns the exact JSON for the user. That's easy to test.

With forms and views, you have a controller to render the user profile page, and this will render the entire screen of which a part is the user details. But there's a lot of other things going on too - page headers, menus, etc.

Right now I'm doing snapshot testing. This is in Java, so I'm using jsoup to normalize the HTML - that ensures that irrelevant changes to the HTML, such as whitespace, don't affect the tests - and then asserting that the full rendered string is exactly correct.

It works, but I don't like it. It feels clunky, and - well - wrong. It also doesn't ensure that it renders correctly, just that the string is as expected. If the CSS changes then this will make the page look wrong but the tests won't catch it! But I'm not sure yet what to do instead. 

So - what do other people do for this kind of testing? Is there a better way to do this?