teleren/devto huggingface dataset:
Useful Header files in C 
Tags: beginners, computerscience, cpp, codenewbie
Published: 2020-12-01 10:07:27

###**What are Header Files?**
A header file is a file with extension .h which contains C function declarations and macro definitions to be shared between several source files.

Some commonly used header files in C language are:
###**stdio.h**: 
Facilitates input output statements

###**conio.h**:
Facilitates console input/output functions

###**string.h**:
Contains macro definitions, constants and declarations of functions and types
-> **strlen()**: length of the char array
-> **strcpy()**: copies a string to another
-> **strcat()**: concatenates two strings
-> **strcmp()**: compares two strings
-> **strlwr()**: converts from upper case to lower case
-> **strupr()**: converts from lower case to upper case
-> **strrev()**: reverses a string

###**ctype.h**: 
Contains functions that would facilitate manipulation of character data type. The functions supported are:

-> **isalnum()**: Checks whether a character is alphanumeric(A-Z,a-z,0-9)
-> **isalpha()**: Checks whether a character i alphabetic
-> **islower(), isupper()**: Test if character is lower or upper respectively.
-> **tolower(), toupper()**: Converts to lower and upper cases

###**math.h**: 
Contains library functions. Note that x can be a float or double. C language does not support expression of type x^a.

-> **sqrt(x)**: determines square root of x
-> **pow(x,a)**: compute x^a
-> **exp(x)**: computes e^x
-> **sin(x) and cos(x)**: computes sine and cosine
-> **log(x)**: computes natural log
-> **log10(x)**: computes log to base 10.

###**stdlib.h**: 

-> **abs(x)**: computes absolute value of integer x
-> **atof(s)**: converts a string s to a double
-> **atoi(s)**: converts to integer
-> **malloc()**: allocates memory and returns a pointer to the location 
-> **calloc()**: same as malloc() but initializes the memory with 0s.
-> **free(x)**: frees heap memory space pointed by x.

*Cover Photo by Aryan Singh on Unsplash*
Thank You!
A Quick Poll!!
Tags: devops, html, nocode, webdev
Published: 2020-12-01 09:56:37

Hi Everyone! I'm an aspiring developer.
I would like to know your opinion about a tool which converts hand-drawn layout into a html code, like shown in the picture...

If you think it will help fasten the process of designing a website, which helps the designer , Please reply YES (or like the post) if you agree or NO if you disagree!!(suggestions are welcome...).

Please take sometime to fill in this google form(it'll take less than a minute:))
https://docs.google.com/forms/d/e/1FAIpQLSfSLBKN2FhME_3N28JkuWcpRoh7K0cTOneLeoc6vVmFKX3C-A/viewform?usp=sf_link
URL in C
Tags: c, watercooler, learning
Published: 2020-12-08 14:39:51

---
title: URL in C
published: true
date: 2020-12-01 09:55:00 UTC
tags: C, Watercooler, learning
canonical_url: https://mnlwldr.com/url-in-c/
---

Did you know that URLs are a valid syntactic element in C? Maybe the syntax highlighting will give you a hint :)

```C
#include <stdio.h>

int main()
{
    https://wildauer.io/
    printf("hello, world\n");
    return 0;
}
```

```sh
~ gcc hello.c -o hello && ./hello
hello, world
```

The code compiles and runs successfully, because `https:` is a label and `//` following begins a comment.
Grow your app – Ratings & Reviews
Tags: android, ios, marketing, growth
Published: 2020-12-01 09:34:00

It's a challenge to grow your app / business with limited resources. There are some tried & tested strategies that will help you kickstart your growth. One of them is getting more ratings & reviews for your app.

**Social proof** is a psychology technique that many products use successfully to get people to perform certain actions. For instance, we see messages such as "X people have bought this item today" on a lot of e-commerce websites & apps. This technique makes people adapt their behavior based on experiences of others.

We should also leverage this method. But there isn't a lot of scope for us to include it in the store listing. But the store already shows 3 pieces of social proof.

- Total number of downloads
- Average rating
- Total number of reviews

It's not possible for us to have higher number of downloads at start. But we must try to have higher rating than other apps in the category. As a rule of thumb, your app must have more than **4.6/5** rating.

Getting reviews & ratings is not easy. People who liked your product may not leave a review. But when someone does not like your product, they will make sure that everyone knows about it. _The rating system is biased towards poor ratings_. The challenge is to get your happy customers to rate your app.

![Taskito - Ratings & Reviews](https://i.imgur.com/sDMokEz.jpg)

## How to get more reviews
- Get your friends & family to rate your app.
- Prompt users to give feedback and rate on the play store. Make sure you are not spamming them or interrupting their flow. Don't ask for rating for first few days.
- Use in-app review flows. These flows are more organic & seamless. [Google Play In-App Review](https://developer.android.com/guide/playcore/in-app-review) and [iOS In-App Review](https://developer.apple.com/design/human-interface-guidelines/ios/system-capabilities/ratings-and-reviews/)
- When you make a promotional post on social media, reply to every comment and ask them to support the app by leaving a review.
- Whoever writes to you, ask them to leave a review. Add it in your email signature.
- Make it easy for people to review. Put links everywhere.
- When you provide a promo code to someone, ask them to leave a review. They will hands down give a good review.

Growth hack your ratings & reviews. **Set up milestones to reach 100, 500, 1000 reviews and work towards it.**

> 📈 Higher rating & number of reviews act as social proof. These also contribute heavily to your rank on Play Store.
Advent of Code 2020-01 with R & JavaScript
Tags: adventofcode, rstats, javascript
Published: 2020-12-02 13:43:55

---
title: Advent of Code 2020-01 with R & JavaScript
published: true
date: 2020-12-01 00:00:00 UTC
tags: adventofcode, rstats, javascript
canonical_url: https://colinfay.me/aoc-2020-01/
---

Solving Advent of Code 2020-01 with R and JavaScript.

[Disclaimer] Obviously, this post contains a big spoiler about Advent of Code, as it gives solutions for solving day 1.

[Disclaimer bis] I’m no JavaScript expert so this might not be the perfect solution. TBH, that’s also the case for the R solution.

## About the JavaScript code

The JavaScript code has been written in the same RMarkdown as the R code. It runs thanks to the `{bubble}` package:[https://github.com/ColinFay/bubble](https://github.com/ColinFay/bubble)

## Instructions

- Combine all the possible duos and trios of the input numbers

- Locate the combination that equals 2020

- Multiply the numbers from this combination to get the puzzle answer

Find the complete instructions at:[https://adventofcode.com/2020/day/1](https://adventofcode.com/2020/day/1).

## R solution

### Part one

``` r
# Read
ipt <- read.delim( "2020-01-aoc.txt", header = FALSE )
library(dplyr, warn.conflicts = FALSE)
# Creating all the combinations
tidystringdist::tidy_comb_all(ipt$V1) %>%
  # Adding them together
  mutate(sum = V1 + V2) %>%
  # keeping only the one that equals 2020
  filter(sum == 2020) %>%
  # Multiplying it
  mutate(res = V1 * V2) %>%
  # Getting the answer
  pull(res)


## [1] 445536
```

### Part two

``` r
# Creating all the combinations
combn(
  ipt$V1, 
  3
) %>% 
  # Transposing the matrix and turning it to a tibble
  t() %>%
  as_tibble() %>%
  # Same old song as step 1
  mutate(sum = V1 + V2 + V3) %>%
  filter(sum == 2020) %>%
  mutate(res = V1 * V2 * V3) %>%
  pull(res)


## [1] 138688160
```

## JS solution

### Part one & Two

> // Reading the file and converting it to int

``` javascript
const fs = require('fs')
var ipt = fs.readFileSync("2020-01-aoc.txt", 'utf8').split("\n").filter(x => x.length != 0);
ipt = ipt.map(x => parseInt(x));
```

> // Doing the combn

``` javascript
var ipt2 = ipt;
var comb = ipt.flatMap(i => ipt2.map(j => [i, j]))
```

> // Getting the 2020

``` javascript
var twentytwenty = comb.filter(x => (x[0] + x[1]) === 2020)
```

> // Solution

``` javascript
twentytwenty.reduce(y => y[0] * y[1])


## 445536
```

> // Same with three

``` javascript
var ipt3 = ipt;
var comb2 = ipt.flatMap(i => ipt2.flatMap(j => ipt3.map(k => [i, j, k])));
```

> // Doing the computation

``` javascript
var twentytwenty2 = comb2.filter(x => (x[0] + x[1] + x[2]) === 2020)
```

> // Solution

``` javascript
twentytwenty2.map(y => y[0] * y[1] * y[2])[0]


## 138688160
```
SASS Là Gì- Hướng Dẫn Cài Đặt & Sử Dụng SASS Từ A - Z
Published: 2020-12-01 09:33:27

SASS là gì- SASS được định nghĩa là một CSS Preprocessor có khả năng cung cấp những quy tắc dạng như: nested rule, variable, mixin,..Xem chi tiết tại: https://blog.itnavi.com.vn/sass-la-gi/
What will the code below output to the console and why?
Tags: javascript, quiz, programming, challenge
Published: 2020-12-01 09:24:59

> Write your answer in comment

1. console.log(1 + +"3" + "3");
2. console.log(1 +"3" + "3");
3. console.log(1 + -"1" + "3");
4. console.log(+"1" + "1" + "3");
5. console.log("X" - "Y" + "3");
6. console.log("X" - "Y" + 3);
50% discount for any plan in the UI Bakery web app builder on #CyberMonday
Tags: webdev, beginners, startup, frontend
Published: 2020-12-01 08:50:12

Get any UI Bakery plan with a 50% discount 🎉
Choose any plan – monthly or annual – that suits your web app development needs, and pay 2x less for it today.
BF2k20 – use this code in your UI Bakery account to apply a discount.

👉 Use a discount - https://uibakery.io/?utm_campaign=ui_bakery%20-%20xx%20-%20BF_CM%20-%20cacq%20-%20xx%20-%20purchases&utm_source=DevTo&utm_medium=webdev&utm_content=BF_deal
Data Analytics Training in Delhi NCR
Tags: dataanalyticstrainingonline
Published: 2020-12-01 08:46:23

Data Analytics Training in Delhi NCR and become a ✔️Data Analytics Training in Delhi NCR Specialist. Training in Delhi/NCR -SASVBA Provides Best Data Analytics We have a very good and supportive environment.  Enroll Now for this Data Analytics Training  in Delhi to master Data Analytics Training in Delhi NCR & Data Visualization skills you need for passing ✔️ with Latest Development Environment and Frameworks. We train college students as well as school students. 
https://sasvba.com/data-analytics-institute/
Excel Formulas to Sum the values that Equal to One of Many Things!!
Tags: excelformula, excelformulas
Published: 2020-12-01 10:00:50

---
title: Excel Formulas to Sum the values that Equal to One of Many Things!!
published: true
date: 2020-12-01 08:40:20 UTC
tags: ExcelFormula,Excelformulas
canonical_url: https://geekexcel.com/excel-formulas-to-sum-the-values-that-equal-to-one-of-many-things/
---

Here, we will discuss the **formula used to sum the values in the cells that equal to one of many things in Excel Office 365**. Let’s get started!! Get an official version of ** MS Excel**  from the following link: [https://www.microsoft.com/en-in/microsoft-365/excel](https://www.microsoft.com/en-in/microsoft-365/excel)

[![Formulas to sum the values in the cells that equal to one of many things](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2020/12/Formulas-to-sum-the-values-in-the-cells-that-equal-to-one-of-many-things.png)](https://geekexcel.com/excel-formulas-to-sum-the-values-that-equal-to-one-of-many-things/formulas-to-sum-the-values-in-the-cells-that-equal-to-one-of-many-things/#main)<figcaption id="caption-attachment-18382">Formulas to sum the values in the cells that equal to one of many things</figcaption>
## General Formula:

- To sum the values in the cells that equal one of many things in Excel, use the below formula.

**=[SUMPRODUCT](https://geekexcel.com/how-to-use-excel-sumproduct-function-in-office-365/)(SUMIF(range,things,values))**

## Syntax Explanations:

- **SUMPRODUCT** – In Excel, this function will help to multiply the corresponding array or range and return the result as the sum of the product. Read more on the [**SUMPRODUCT Function**](https://geekexcel.com/how-to-use-excel-sumproduct-function-in-office-365/).
- **SUMIF** – The Excel **SUMIF Function** will help to sum the cells that meet a single condition or criteria.
- **(Things) Criteria**– It is the specific text or criteria that is used to sum the values.
- **Range** – It represents the input range given in the worksheet.
- **Comma symbol (,)** – It is a separator which helps to separate a list of values.
- **Parenthesis ()** – The main purpose of this symbol is to group the elements.
- **Value** – It represents the input values given in the worksheet.

## Example:

- Let’s consider the below image to sum the values in the cells.
- Here, we will enter the input values in **Column B** and **Column C**.
- Then, enter the given formula in the formula bar section.
- Finally, it will display the result as shown in the below image.

![Example](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2020/12/Example-5.png)<figcaption id="caption-attachment-18381">Example</figcaption>

## Summary:

This page gives you a detailed view of the **formula used to sum the values in the cells that equal to one of many things in Excel Office 365**. Hope you like this article. IF you have any suggestions, don’t forget to share it with us. Thank you so much for Reading!! Keep learning on **[Geek Excel](https://geekexcel.com/)!! **and [**Excel Formulas**](https://geekexcel.com/excel-formula/) **!!**
Excel Formulas to Sum the Values Greater than a Certain Date!!
Tags: excelformula, excelformulas
Published: 2020-12-01 10:00:22

---
title: Excel Formulas to Sum the Values Greater than a Certain Date!!
published: true
date: 2020-12-01 08:37:06 UTC
tags: ExcelFormula,Excelformulas
canonical_url: https://geekexcel.com/excel-formulas-to-sum-the-values-greater-than-a-certain-date/
---

Here, we will guide you to know the simple **formula used to sum the values, if the date is greater than a certain date in Excel Office 365**. Let’s get into this article!! Get an official version of ** MS Excel**  from the following link: [https://www.microsoft.com/en-in/microsoft-365/excel](https://www.microsoft.com/en-in/microsoft-365/excel)

[![Formulas to sum the values greater than a certain date](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2020/12/EXCEL_zZF53Kld9f.png)](https://geekexcel.com/?attachment_id=18390#main)<figcaption id="caption-attachment-18390">Formulas to sum the values greater than a certain date</figcaption>
## General Formula:

- To sum the values greater than a certain date in Excel, use the below formula.

**=SUMIF(range,”>”&[DATE](https://geekexcel.com/how-to-use-date-function-in-microsoft-excel-365/)(year,month,day),sum\_range)**

## Syntax Explanations:

- **SUMIF** – The Excel **SUMIF Function** will help to sum the cells that meet a single condition or criteria.
- **DATE** – In Excel, this function will combine three different values and returns them as a date. Read more on the [**DATE Function**](https://geekexcel.com/how-to-use-date-function-in-microsoft-excel-365/).
- **Sum\_Range** – It represents the input values given in the worksheet.
- **Comma symbol (,)** – It is a separator which helps to separate a list of values.
- **Parenthesis ()** – The main purpose of this symbol is to group the elements.
- **Range** – It represents the input values given in the worksheet.

## Example:

- Let’s consider the below image to sum the values greater than a certain date.
- Refer to the below image.
- Here, we will give the input values in **Column B** and **Column C**.
- Then, enter the given formula in the selected area.
- Finally, we will get the result in **Cell F3**.

![Example](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2020/12/Example-1.png)<figcaption id="caption-attachment-18323">Example</figcaption>

## Verdict:

In this tutorial, you can get to know the simple **formula used to sum the values, if the date is greater than a certain date in Excel Office 365**. Hope that this article is useful to you. If you have any **doubts/queries,** don’t forget to share it with us. Thank you so much for Reading!! Keep learning on **[Geek Excel](https://geekexcel.com/)!! **and [**Excel Formulas**](https://geekexcel.com/excel-formula/) **!!**

### Related Articles:

- **[Excel Formulas to Sum the Values from every N Rows!!](https://geekexcel.com/wp-admin/post.php?post=18066&action=edit)**
- **[Excel Formulas to Sum the Values from Every Nth Column!!](https://geekexcel.com/wp-admin/post.php?post=18084&action=edit)**
NPM Là Gì- Công Dụng & Cách Thức Hoạt Động Của NPM
Published: 2020-12-01 08:32:11

Nếu đã theo học và phát triển chuyên ngành công nghệ thông tin thì bạn không thể không biết NPM là gì?Hãy theo dõi bài viết dưới đây nhé.Xem chi tiết tại: https://blog.itnavi.com.vn/npm-la-gi/
A Developer's Guide: 7pace Timetracker for Azure DevOps - How to Track and Log Time in Azure DevOps
Tags: timetracker, azure, devops, productivity
Published: 2020-12-01 08:29:56

In this video we talk about how to use 7pace Timetracker for Azure DevOps, how to log/track time, submit a timesheet and import/export time. A true developer's guide for 7pace Timetracker. 
Click on the image below for the full video and happy watching!

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

Add or track time from a Work Item: 0:28
Adding time on a monthly or weekly basis: 1:10
Creating a Timesheet: 1:49
Seeing all data on the Times Explorer Page: 2:37

Stay tuned for future videos on the Pace calculation, 7pace API, and more.

[Install 7pace Timetracker for Azure DevOps](https://bit.ly/3lsg1MO)
[Follow 7pace](https://twitter.com/madeby7pace)
[7pace Blog](https://bit.ly/2Vi8J3x)

______________________________________________________________
*[7pace Timetracker](https://www.7pace.com/) is the only integrated, professional time management solution for teams using Azure DevOps and GitHub.*

[![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/0abhoy61sfwppfggxyhq.png)](https://www.7pace.com/)
Stacky REST API #4 - Push Project to Github
Tags: node, tutorial, javascript, github
Published: 2020-12-01 08:29:48

GitHub is a web service that helps developers store, track and control changes to their code.

[What Is GitHub, and What Is It Used For?](https://www.howtogeek.com/180167/htg-explains-what-is-github-and-what-do-geeks-use-it-for/)

Ensure to have git installed and setup on your machine. You can download git [here](https://git-scm.com/downloads).

Visit [Github](https://github.com/) and create an account or sign in if you already have one and then create a new repository called stacky.

![create](https://dev-to-uploads.s3.amazonaws.com/i/yyafcjl5nqmx3k90miok.PNG)
 
Head back to our project, open up the terminal and initialize an empty git repository;
```bash
$ git init
```
Add a **.gitignore** file at the root of our project. A **.gitignore** file specifies which files and folders should be ignored in a given source code. This means this files and folder will not be pushed and tracked by git.
```bash
/node_modules 
/dist
.env
yarn-error.log
```
Notice we added our **.env** file to be ignored because the **.env** file usually contains sensitive or localized information. In the case of sensitive information, like API keys, authentication keys and so on, we won't want these sitting in version control where they can be publicly accessed.

But then how do any user who pulls our projects knows what environment variables needs to be set. Simple, let's add a **.env.example** file and as the name implies this is just an example file which users can then use to create their **.env** file. So let's add this file to the root of our project.
```bash
PORT=
DB_HOST=
DB_USERNAME=
DB_PASSWORD=
DB_DATABASE=
```
Next, we need to stage and commit our changes;
```bash
$ git add .
$ git commit -m"First commit"
```
Back to the Github screen on the browser, scroll down to the "**... or push an existing repository from the command line**" and copy the commands into your terminal.

![Inkedcomplete_LI](https://dev-to-uploads.s3.amazonaws.com/i/t2ccg70hbls8t8wxwzyw.jpg)
 
Head to your GitHub repo and you should see your codes in the main branch.

**Heads up:** If you have a previous version of git installed on your system, your default branch might be master.
i want access an appliction data using python api it says send to server.
Tags: pythonapi
Published: 2020-12-01 08:22:27

I have an application which has quiz with 10 question and all qts have radio buttons eg each qts has 
4 radio buttons and quiz results have to be mailed to teachers ,admin and parents so applications 
options Here are
1.email
2.run at server
Now I need this data from this application to have a seperate analytics dashboard so I have created 
Aws Ubuntu server,database ,table I need to know how can I get this data through python API kindly 
help its humble request.
import urllib.request
import json

url = 'https://hacker-news.firebaseio.com/v0/topstories.json?print=pretty'

def response(url):
    with urllib.request.urlopen(url) as response:
        return response.read()
res = response(url)
print(json.loads(res))

This is what I am getting every where I have tried this but I need a architecture where I shall get data from application I the application has send to server option where actually they need a server address how I can get this data because all API scripts says fetch from url or get from url kindly help
" Bật Mí " CLI Là Gì- Lý Do Developer Cần Làm Quen Với CLI
Published: 2020-12-01 08:21:06

CLI là gì - Đây là vấn đề không phải ai cũng giải đáp được.Hãy cùng chúng tôi thoi dõi bài viết dưới đây để hiểu rõ hơn nhé.Xem chi tiết tại: https://blog.itnavi.com.vn/cli-la-gi/
Learn: Blade Templating Engine and Eloquent ORM on Laravel
Tags: learn, story, laravel
Published: 2020-12-01 08:16:07

I never thought of deep diving into Laravel this far. The main reason that pushed me to learn it was "My college project".

It was my first time using Laravel. But I've been exploring CodeIgniter for two semester before. Hence I thought it was not that scary to learn. 

Refers to what I've mentioned in the title. The Blade Templating Engine gives me so many things to expand as much as the benefit it has. For the Eloquent ORM, I surprised a lot cause it can hugely reduce my codes. Also gives me more insights about the MVC method.

I can say that Laravel keeps me learn more. And code more often.
Hot module replacement in create react app (cra)
Tags: react, createreactapp, fastrefresh
Published: 2020-12-01 08:14:06

Problem: 
In real projects with even minor complexity reloading of pages at each change in code becomes slower and slower. Luckly there is hot module replacment/fast refresh settings that can be done in CRA apps. 
Solution: 
Easy way to integrate hot module replacement in react (CRA) apps

1) Install dependencies

```
npm install -D react-app-rewired customize-cra customize-cra-react-refresh```
```
2) Create config-overrides.js in your project root folder (if it does not exists, which normally is the case)
3) Add following code in config-overrides.js file

```
const { override } = require("customize-cra");
const { addReactRefresh } = require("customize-cra-react-refresh");

/* config-overrides.js */
module.exports = override(addReactRefresh());
```
4) Change your start, build scripts to use installed plugins
```
  /* package.json */

  "scripts": {
-   "start": "react-scripts start",
+   "start": "react-app-rewired start",
-   "build": "react-scripts build",
+   "build": "react-app-rewired build",
-   "test": "react-scripts test --env=jsdom",
+   "test": "react-app-rewired test --env=jsdom",
    "eject": "react-scripts eject"
}
```
note: I also set the env variable FAST_REFRESH=true as proposed by official react documentation in .env file (create a file named .env in your root folder and place this single line in it FAST_REFRESH=true) although I am not sure it is still needed after setting up these plugins. 

Main source of this text is this github repo (link below). I mentioned some pointers here for my own convience and future reference and also for dev.to community ;).
https://github.com/esetnik/customize-cra-react-refresh