teleren/devto huggingface dataset:
6 Types of Digital Marketing: When and How To Use Them?
Tags: python, javascript, design, productivity
Published: 2021-06-15 19:09:31

#**Types of Digital Marketing**

There are numerous kinds of Digital Marketing that you can use to expand your crowd reach. Utilizing numerous Digital Marketing channels can assist you with making a balanced methodology that will yield the best outcomes.

#**1. Content Marketing**
Content marketing refers to informational, valuable content like blog posts, how-to videos, and other instructional materials. This type of marketing helps you connect with your audience and answer their questions. It can also help to generate leads and close sales.

#**2. Search Engine Marketing/Pay-per-Click**
Search engine marketing, or SEM, refers to paid advertisements that appear at the top of the SERP. The cost of these ads typically depends on the number of clicks the link receives, hence “pay-per-click.”

#**3. Search Engine Optimization**
Search engine optimization, (SEO), is the strategy of creating content in such a way that search engines like Google will rank your page high on the search engine results page (SERP). 

#**4. Social Media Marketing**
With social media marketing, social media platforms are used as a digital marketing channel. Ads can be bought to reach out to a new audience, or you can create a profile for your business on any social media platform and create posts to advertise new products, sales, or freshly published content.

#**5. Affiliate and Influencer Marketing**
Working with an affiliate or influencer can help increase your audience reach by engaging with their existing audience.

#**6. Email Marketing**
When someone visits your website or business, invite them to join an email subscriber list. With their permission, you can send emails about sales, special events, or product releases. Email marketing is often underestimated, and according to Lyfe Marketing, approximately $40 of revenue is brought in for every dollar spent on email marketing.

####*Thank for giving time*

I am begin my freelancing career with fiverr website.
I share my Gigs, If you found helpful share them and assists me to win first customers.
####1 ) https://www.fiverr.com/share/4Xo9q1
####2 ) https://www.fiverr.com/share/ZRl3vk
Date Interface for Frontend
Published: 2021-05-28 09:47:31

Hello fellas,

The aim of the writeup here is to validate the thought process behind creating a custom date interface to be used across multiple frontnend projects.

## What does an application of date library on frontend looks like ?

An example of a date utility on frontend would be, say
My API gives me date as a string in `DD/MM/YYYY`in response and I want to use it for validating a Create operation. 

```
if (date < date.now() + 180 days) 
 allow create
else
 don't
```

#### How do I achieve this ?
I would convert the date string into a date object. Once I have the date object, I can add 180 days to it and comapre this new date object with the current date.
 
Like this we have numerous applications of Date on frontend


## What is date interface and why it makes sense ?

Date Interface is the face of Date library for all my consumer applications. The consumer (the project) say wants to convert date string into a Date object ? Now the developer, does not need to think what should be the type of date object or which date library I should use, etc etc.

Instead the Date Interface exposes the below funtion

```
let make: (~date: string, ~format: string) => Date.t
```

It takes a date string and a valid date format (we can further optimize the `format` argument to accept only valid formats) and returns a type `Date.t` Now the developer can use this type to interact with other functions exposed by this date interface, like a toString function to convert date object to a specific format for display.

```
let toString: (~date: Date.t, ~format: string) => string

```

##Am I rewriting a date library here ?

The answer is, I am rewiting only the interface. Underlying the interface I would be using a library like Moment or DateFns to perform my operations. 

####Why?
The consumer will be unware of the implementation details.
They don;t need to worry about the Date library being used and skim through the documentatiin

I can easily plug and play libraries without affecting my end consumer. Every function in my interface is a pure function, with defined input and outputs. My custom type `Date.t` helps me achieve this. Until that contract holds, I can try out a lot of stuff inside. Sounds cool :), right?

Under the hood we may take best of both worlds, and use two different date libraries to achive two different things. Not 
a very ideal scenario but yes. Quite helpful when you are migrating libraires. Some functions are on old libraries and the other are on the new one.
Queue Data Structure
Tags: codenewbie, algorithms, python, beginners
Published: 2021-06-15 18:56:10

Hi, today, we're going to discuss queue :)

## Definition Of Queue

A Queue is a linear data structure that stores items in a **First-In/First-Out** (FIFO) manner. In Queue, the element that goes in first is the element that comes out first.

![queue data structure](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/40x3kk89j56hq9t95ix0.jpg)

## Space and Time complexity

the space complexity of a queue is *O(n)*

| add ( enqueue )| remove (dequeue)| search | access | 
|------	|------	|------	|------|
| O(1) 	| O(1) 	| O(n) 	| O(n) |


## Implementation of queue using python

```python
class Queue:

    def __init__(self,size):
        self.items = []
        self.front = self.rear = 0 
        self.size = size
```
### Enqueue

```python
def enqueue(self,data):
        if not self.isFull()  :
            self.items.append(data)
            self.rear += 1 
            return f'{self.items[-1]} added'
        else:
            return 'full'
```
### Dequeue

```python
def dequeue(self):
        if not self.isEmpty() :
            self.items.pop(0)
            self.rear -= 1 
            return 'deleted successfuly'
        return 'empty'
```
### isEmpty

```python
    def isEmpty(self) -> bool:
        return  self.rear == self.front
```
### isFull

```python
    def isFull(self) -> bool :
        return self.size == self.rear
```
## References and useful ressources
+ [https://www.geeksforgeeks.org/queue-in-python/](https://www.geeksforgeeks.org/queue-in-python/)
+ [https://www.geeksforgeeks.org/queue-data-structure/](https://www.geeksforgeeks.org/queue-data-structure/)
+ [https://www.tutorialspoint.com/data_structures_algorithms/dsa_queue.htm](https://www.tutorialspoint.com/data_structures_algorithms/dsa_queue.htm)
+ [https://www.youtube.com/watch?v=A3ZUpyrnCbM](https://www.youtube.com/watch?v=A3ZUpyrnCbM)
+ [https://www.youtube.com/watch?v=wjI1WNcIntg](https://www.youtube.com/watch?v=wjI1WNcIntg)

\#day_3
Have a good day!
We Just Open Sourced our Tech!
Tags: opensource, tooling, discuss, devops
Published: 2021-06-15 18:49:53

We believe that OSS is the present and future of great developer-led tech, so here we are. 

Merico Build is an open platform to quantify and articulate developer contribution and accomplishment, it's powered by novel static analysis techniques, and now open to all! 

https://merico.substack.com/p/open-source-and-developer-first

We hope you'll follow us on this journey, or better yet, join us!
Sets of props in React and Typescript
Tags: typescript, react, javascript
Published: 2021-06-15 18:45:26

Sometimes when writing an app in React you might have a component that changes its look and logic dramatically depending on provided props. In addition, if a particular prop provided, the other props become either required or restricted. That hidden prop relation can be explained in documentation but if your project uses Typescript there is a great opportunity to utilize what I call "sets of props".

## Simple example

It's usually not the best idea to make buttons look like links and vice versa but let's ignore this for the sake of clarity. The code snippet below is so-called Clickable component which can be either a link or a button that shares the same style but has different behavior depending on props.

```tsx
import { ReactNode } from 'react'

interface BaseProps {
  children: ReactNode
}

interface AsButtonProps extends BaseProps {
  as: 'button'
  onClick: () => void
  href?: never
}

interface AsLinkProps extends BaseProps {
  as: 'a'
  href: string
  onClick?: never
}

type ClickableProps = AsButtonProps | AsLinkProps

const Clickable = ({ children, as, onClick, href }: ClickableProps) => {
  return (
    <>
      {as === 'a' && (
        <a href={href}>{children}</a>
      )}

      {as === 'button' && (
        <button onClick={onClick}>{children}</button>
      )}
    </>
  )
}

export default Clickable
```

The component has four props. `children` is required in any case so it's put under the `BaseProps` interface. Both `AsButtonProps` and `AsLinkProps` extended from `BaseProps` and represent two sets of props. The active set depends on the value of the as prop while the type `never` for unused props makes sure that Typescript will yell if someone is using a prop which does nothing.

Here is a scheme:
![sets-of-props-clickable-scheme](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wt3vi6rv7qu065j1q9e5.jpg)

## Summary

This pattern is obviously not limited to props in React. It's widely used in the types of various npm packages. Now you can add it to your arsenal and build reusable components/utils with better API for you and your team.

## Links
- [TypeScript Deep Dive: Never Type](https://basarat.gitbook.io/typescript/type-system/never)
- [SyntaxFM: Episode 348. TypeScript Fundamentals — Getting a Bit Deeper](https://syntax.fm/show/348/typescript-fundamentals-getting-a-bit-deeper)
Working on a Free Low Code Dashboard Builder for Bootstrap 5
Tags: javascript, webdev, html, css
Published: 2021-06-15 18:13:08

Hi,

I recently launched a new theme to **Loopple**, a **Free Low Code Dashboard Builder** that aims to help developers to speed up their development process.

This new theme is built on top of **Soft UI Dashboard by Creative Tim**, an Open Source **Bootstrap 5 Dashboard**. Loopple currently has 2 themes and is still in Beta version.

Any feedback would be gratefully received!

Links:

[Soft UI Dashboard Builder](https://www.loopple.com/theme/soft-ui-dashboard) - Newest theme, built on top of Bootstrap 5
[Argon Dashboard Builder](https://www.loopple.com/theme/argon-dashboard) - built on Bootstrap 4
[Loopple](https://www.loopple.com/) - Loopple website
[Loopple](https://github.com/Loopple/loopple) - Github Repo

Thank you!
Day 112
Tags: 100daysofcode, programming
Published: 2021-06-15 17:52:04

Day 112/200 of #200DaysOfCode #100DaysOfCode #100daysofcodechallenge 

- Solved two problems on Codewars.

1 - Reversing a Process (6 kyu)
2 - Heron's formula (7 kyu)
What is Word2Vec?
Tags: machinelearning, datascience, opensource, beginners
Published: 2021-06-15 17:47:06

**Why we need word2vec?**

1. As both TFIDF and BOW do not store semantic information. TFIDF gives importance to uncommon words.
2. Hence there is definitely a chance of overfitting.

**What word2vec does?**

In this word2vec specific model, each word is basically represented as a vector of 32 or more dimension instead of single number.

Here the semantic information and relation between different word is also preserved.

Word2vec is applied to huge amount of data mostly.

**How to use?**

```
from gensim.model import word2vec

After tokenizing and stopwords write the following code...

model=word2vec(senetnces,min_count=1)
words=model.wv

```

Thank You!
Htmotor - Template Engine for Python
Tags: template, engine, html, python
Published: 2021-06-15 17:47:02

# Htmotor
HTML Template Engine for Python!

## Installation:
Open your terminal and type `pip install htmotor`. Now you are ready to go!

## Supports:
- Variables
- For Loop
- Eval, Exec
- XSS Preventation

## Documentation:
Documentation is avaible at [GitHub](https://github.com/5elenay/htmotor).

## Bug? Issue?
If you got an error or bug, please report at [here](https://github.com/5elenay/htmotor/issues).

## Simple Example
if you want to see htmotor syntax, here you go:
```html
<!DOCTYPE html>
<html lang="en">
<head>
        {% responsive %}
        <title>{%v title %}</title>
</head>
<body>
        <h1>{%v name %}</h1>
        {%ex import datetime %}
        <p>Datetime: {%ev datetime.datetime.utcnow().strftime("%d/%m/%Y, %H:%M:%S") %}</p>
</body>
</html>
```
Developing new Games on Kaboom!
Tags: beginners, gamedev, codenewbie, learning
Published: 2021-06-15 17:46:24

Hey Guys,

Mika back again with another update on my coding journey.
Over the last few days after working on some of the webdesign portfolio I decided to switch my brain to other coding activities to resist fatigue which I have gotten in the past.

Which Im glad to say it works! Sometimes spending hours and hours on a project can be the one thing that can make you feel fed up and not want to continue. This happened to me quite a lot over the last 2 years when I first decided to embark on my coding journey.

I switched gears this time to a FreeCodeCamp course of trying to create your own easy Java Script games. I myself am a gamer AND would definitely love to reach the point one day to be able to develop my own games. So when I came across this course I thought it would be a no brainer to save it for later. 

I started the course and what do you know, I found since I loved Gaming so much, my frustration for the Errors and getting stuck halved by about 50% 😅. Which is great. I was able to persevere and stare @ numerous code for ages and see where I went wrong and how to fix the errors till I was able to make the code work.

Ofcourse there was a lot of help with this one because it was a tutorial, but nontheless I feel like I have gained valuable experience and actually learned something rather than to just struggling through a hard topic and not feeling like I'm missing out on anything.

I worked abit on my own customised game and also a Space Invaders game. In the next few days I hope to finish the course and be able to create my own Zelda & Mario game.

If your interested in giving my game a quick play.
The link is here: https://spaceinvaders.mikacodez.repl.co/

I plan to tweak and uprade along the way to make it more challening🤪 Enjoy! (p.s. Comment with your top score!)

Buttons: LEFT, RIGHT & SPACEBAR(shoot)

Good Day,
Mika/Malcolm.
How to use Excel UNICHAR Function in Office 365?
Tags: excelfunctions, unicharfunctioninexc, excel, exceltutorials
Published: 2021-06-23 03:24:48

---
title: How to use Excel UNICHAR Function in Office 365?
published: true
date: 2021-06-15 17:36:12 UTC
tags: ExcelFunctions,UNICHARFunctioninExc,Excel,ExcelTutorials
canonical_url: https://geekexcel.com/how-to-use-unichar-function-in-microsoft-excel-2013/
---

## The UNICHAR Function in Excel:

In this article, we will describe the **definition, basic syntax, and usage of the**  **UNICHAR function** in Microsoft Excel 2013.

## The UNICHAR Function – Definition:

The **UNICHAR Function** in Excel returns a Unicode character based on a given number.

## Fundamental Syntax of UNICHAR Function:

The fundamental syntax of the **UNICHAR function** is,

```
=UNICHAR(number)
```

### **Argument Description:**

- **Number:** Code point for a Unicode character in decimal.

## Practical Examples of UNICHAR Function:

Let’s look at some examples of **UNICHAR **** function** and analyze how to use it in Microsoft Excel.

**Example 1:**

- Enter the input term in **cell D12.**
- The Output will be displayed in the **cell F12.**
- There are **two ways** to enter the formula in Excel to calculate the Output, kindly refer the below screenshots.

![Using formula](https://geekexcel.com/wp-content/uploads/2020/05/Screenshot_1-4.png)<figcaption id="caption-attachment-6341">Using formula</figcaption>

![Another way of using formula](https://geekexcel.com/wp-content/uploads/2020/05/Screenshot_2-3.png)<figcaption id="caption-attachment-6342">Another way of using formula</figcaption>

- Press Enter to display the **output.**

![Output](https://geekexcel.com/wp-content/uploads/2020/05/Screenshot_3-5.png)<figcaption id="caption-attachment-6343">Output</figcaption>

**Example 2:**

- Here, the below screenshot explains the **different examples of UNICHAR Function** in Excel.

![Example 2](https://geekexcel.com/wp-content/uploads/2020/05/Screenshot_4-3.png)<figcaption id="caption-attachment-6344">Example 2</figcaption>

## A short summary:

This article gives you the clarification about the **definition, basic syntax, and usage of the UNICHAR function** in Microsoft Excel 2013 with a few practical examples. Kindly drop your valuable **suggestions/queries** in the comment box & don’t forget to drop your **worthwhile Feedback**.

Thanks for visiting **[Geek Excel!!](https://geekexcel.com/)** Keep Learning with us!!

## Related Articles:

- [**CONCAT Function in Excel 365**](https://geekexcel.com/how-to-use-concat-function-in-microsoft-excel-365/)
- [**FIXED Function in Excel 2007**](https://geekexcel.com/how-to-use-fixed-function-in-microsoft-excel-2007/)
- [**SEARCH Function in Excel 2013**](https://geekexcel.com/use-search-function-in-microsoft-excel-2013-simple-methods/)
- [**RIGHT Function in Excel 365**](https://geekexcel.com/how-to-use-right-function-in-microsoft-excel-365/)
- [**CUSTOM ADD Function in Excel 365**](https://geekexcel.com/how-to-create-custom-add-function-in-excel-365/)
How does Tensorflow play a key role in solving machine learning problems ?
Tags: tensorflow, machinelearning
Published: 2021-06-15 17:33:45

---
title: How does Tensorflow play a key role in solving machine learning problems ?
published: true
description: 
tags: tensorflow, machineLearning
//cover_image: https://direct_url_to_image.jpg
---

( This is a placeholder for my learnings in the context of Tensorflow , updated almost daily, until I complete the course)

Tensorflow is a tool created by Google, which was opensourced, inorder to provide capabilities to solve machine learning problems, for researchers, developers, to not just toy with ML problems, but also produce solutions.

#### Machine learning vs Traditional Programming

Traditional programming -- We have data coming from diff data sources and we have rules, as to how to manipulate / query the data , to arrive at some answers.

Machine learning -- Its a new paradigm. Given the data and answers, the machine figures out the rules.

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xy9yz3n2lb3bx9495gy1.png)
courtesy: [Laurence Moroney](https://www.linkedin.com/in/laurence-moroney/) 

#### Neural Networks

Neural Networks is basically a set of functions, which can learn patterns from data.

Learning continues....
Extension methods for generic types
Tags: dart, extensions, generics
Published: 2021-06-15 17:33:04

Since Dart 2.7 it is possible to add **functionalities** to existing **libraries**. If a class is missing a method you would like to use, you can just **extend that class** with your own implementation of such a method.

You do not need to create a pull request on the code of the library you want to update, you can keep the new functionality **locally** to your code. For example, if you need to format a `Duration` so that it shows days, hours, minutes, and seconds in the following format: `dd:HH:MM:SS`, you can define an **extension method** on `Duration`:

```dart
extension DurationFormatter on Duration {
  /// Returns a day, hour, minute, second string representation of this `Duration`.
  ///
  ///
  /// Returns a string with days, hours, minutes, and seconds in the
  /// following format: `dd:HH:MM:SS`. For example,
  ///
  ///   var d = new Duration(days:19, hours:22, minutes:33);
  ///    d.dayHourMinuteSecondFormatted();  // "19:22:33:00"
  String dayHourMinuteSecondFormatted() {
    this.toString();
    return [
      this.inDays,
      this.inHours.remainder(24),
      this.inMinutes.remainder(60),
      this.inSeconds.remainder(60)
    ].map((seg) {
      return seg.toString().padLeft(2, '0');
    }).join(':');
  }
}

void main() {
  var d = Duration(days:19, hours:22, minutes:33);
  print(d.dayHourMinuteSecondFormatted()); // 19:22:33:00
}
```

## Extension on generic types

You can not only extend a "concrete" type like `Duration`. You can also **extend** the functionalities of a **generic** type, so that **all** its concrete **instances** (and all subclasses) obtain the new extension method.

For instance, if we want to add a `firstWhereOrNull` to `List`, where we either return the first element in the list that satisfies a condition, or `null` if none satisfies that condition, we can create an extension method like this:

```dart
extension FirstWhereOrNull<E> on Iterable<E> {
  /// Returns the first element that satisfies the given predicate test.
  ///
  /// Iterates through elements and returns the first to satisfy test.
  /// If none is found, returns `null`.
  E? firstWhereOrNull(bool test(E element)) {
    for (E element in this) {
      if (test(element)) return element;
    }
    return null;
  }
}

void main() {
  final List<String> myList = ["First", "Second", "Third"];
  
  print(myList.firstWhereOrNull((element) => 
     element.endsWith('d'))); // Second
  
  print(myList.firstWhereOrNull((element) => 
     element.startsWith('d'))); // null
}
```

By creating the extension method on the **generic** `Iterable<E>` we add it to **all concrete types of all subclasses** of `Iterable`, like <a href="https://api.dart.dev/stable/2.13.3/dart-collection/Queue-class.html">Queue</a>, <a href="https://api.dart.dev/stable/2.13.3/dart-core/List-class.html">List</a>, and <a href="https://api.dart.dev/stable/2.13.3/dart-core/Set-class.html">Set</a>, thus also to `List<E>`.
User requests vs Dev desires
Tags: programming, users, sideprojects
Published: 2021-06-15 17:32:53

---
title: User requests vs Dev desires
published: true
description: A discussion of when what users suggest or want conflicts with what a developer wants to do.
tags: programming, users, sideprojects
//cover_image: https://direct_url_to_image.jpg
---

I have a side project that provides a service to a community for free. This project started out of functionality requests that my wife had that were missing.  The user base has grown past my wife, but in my mind she is still the primary user.

Recently someone inadvertently abused the my service and knocked it offline for a short period of time (maybe 15 mins). This concerned some of the users, they want a higher up-time rate and are willing to fund some of that build out.  The problem I have is that I'm not interested in solving the problem of a paid for use service. I'm interested in preventing the use case that knocked the service offline in the first place.

I have stated from the start that I don't want to take any money for this service. This is for a few reasons, first is that this a toy for me and if I start getting paid, it stops being a toy. Second, I'm concerned that if people start paying they may feel they have a right to direct development, again not a fun idea for me.  Thirdly, there may be issues with my work if I start taking pay for programming.

I figure I will continue to put the pay-for-use segment of the user base off for a while. I'm put off a little that I have to do it though.