teleren/devto huggingface dataset:
MuaBanNhanh - Trang thương mại điện tử toàn diện
Published: 2019-12-12 06:50:33

MuaBanNhanh được xem là một trong những trang thương mại điện từ lớn nhất. Bạn có thể mua bất cứ món đồ nào với giá cả ở nhiều mức khác nhau, điều này sẽ cho bạn rất nhiều sự lựa chọn. Hơn thế, MuaBanNhanh với hàng ngàn sản phẩm được buôn bán, thay vì ra đường để tìm mua thì bạn có thể chỉ cần vài cú clip hay vuốt màn hình điện thoại là sẽ có một món đồ ưng ý.
Đặc biệt, nếu bạn là những nhà kinh doanh, bạn có thể đăng bán các sản phẩm của mình và sẽ được hướng dẫn từ các nhân viên của MuaBanNhanh. 
Trong thời đại công nghệ 4.0 hiện nay thì việc mua bán đã trở nên tiện lợi và nhanh chóng hơn nhờ vào những công nghệ hiện đại. Và MuaBanNhanh.com là mạng xã hội Mua Bán Nhanh dễ dàng với hàng trăm ngàn sản phẩm và hàng trăm nghìn thành viên đang mua bán mỗi ngày;
Đây là đơn vị duy nhất hiện nay chuyên hỗ trợ tiểu thương, doanh nghiệp vừa và nhỏ làm thương mại điện tử trên nền tảng di động thông minh M-commerce;
Hàng trăm báo và tạp chí uy tín đưa tin về MuaBanNhanh.com tiẻn phong trong xu hướng thương mại di động (M-commerce) 
Hệ thống đánh giá Thành viên, xây dựng uy tín thành viên trong cộng đồng;
TICKER SEARCH API
Tags: react, javascript, api, stock
Published: 2019-12-12 07:18:10

---
title:TICKER SEARCH API
published: true
description: A Ticker symbol search api end point to get the matched record symbols with their respective names
tags: react,javascript,API,Stock
cover_image: https://94945e6dfce5a6d3.baystream.co/RfWeT9E1n1/3d86b026-1576135503/banner.jpg

---

### Ticker Symbol Api End Point
####  What is the project about?
 Recently I had a hackathon challenge to work on realtime stock markect data end points.After the hours of research from the various stock market end-point-apis , I had short listed a few.I thought that might be enough to complete my project.

1) [IEX]('https://iextrading.com/developer/docs/') , 
Pros: 
A real boon to stock market app developers because of the free unlimited api calls without any limitation. 
Cons: 
No realtime data , only with 15 min delay

2) [AlphaVantage]('https://www.alphavantage.co/documentation/'), 
Pros:
A site for pro developers with near realtime data/live stock data but comes with api key mess and limitation on requests/min made  

After a few days of walkthrough, I found my self on the fence because I have to make an auto complete search field like google search box for stock name/symbol searches.

the main catch here is [Symbol Search AutoComplete]('https://www.alphavantage.co/documentation/#symbolsearch') functionality already found in AlphaVantage, that too 5 API calls/min and 500 api calls/day.Imagine your end user typing keyword of length about 6 char in a minute then you will run out of APIs.

![alphavantageAPI.png](https://cdn.steemitimages.com/DQmbT3RLphBm3kSgGC5MF1iJ9jAZqVVUUtX3khgnJsS3eLu/alphavantageAPI.png) 

Then I had an idea of mixing the both worlds, no API key mess from IEX and high end functionality from AlphaVantage. At first I googled if any already existed but found none while yahoo fiance api was widely used for keyword search,sadly it's deprecated. I had no other choice to stick to AlphaVintage which costs around $30/month,30 api/min.

Thus I ended up making my own keyword filtering on ~8000 stock symbols  downloaded data.I thought it could be great if I host in cloud so that other devs can also use it.

## tickersearch API [Just, I named it so]
Github : https://github.com/yashwanth2804/TickerSymbol <br>
Demo : https://tickersearch.surge.sh/

![facebook.png](https://cdn.steemitimages.com/DQmTB3rTvr1zv4D2A1NgZpjbTbGunGT1dYCkfNF42X3uCXc/facebook.png)

#### In order to get the required search result , please provide `KEYWORD_SEARCH` in the following url

 `https://ticker-2e1ica8b9.now.sh//keyword/KEYWORD_SEARCH`
 eg : `https://ticker-2e1ica8b9.now.sh/keyword/googl`
 
#### output 

`[{"symbol":"GOOGL","name":"Alphabet Inc."}]`


Pros
- Free Free Free
- No API key mess , No email spamming
- Nothing more Nothing less

Cons
- Weired API end point url 

## Technology Stack
1) NodeJS
2) Hosted on ZEIT ,with 100GB bandwidth and 3 instances available
How Can I Activate Roku TV ? Roku.com/link, 2019 
Tags: rokucomlink, rokutv, streamingdevice, rokuactivation
Published: 2019-12-12 07:12:44

Get ultimate guidance to activate your Roku streaming device easily by using roku.com/link account. Once you activate your device, you can stream 1000+ paid as well as free channels. Get answer to all Roku related FAQs. Call +1 845 795 3510 Get help now.or visit <a href="https://myrokucomlink.us">roku.com/link</a>
InKyThuatSo - In ấn giá rẻ, in quảng cáo, in nhanh
Published: 2019-12-12 07:02:31

InKyThuatSo - In ấn giá rẻ, in quảng cáo, in nhanh
Với nhiều năm kinh nghiệm trong lĩnh vực in ấn dịch vụ InKyThuatSo.Com đã từng bước phát triển và nâng cao kỹ thuật cũng như tay nghề trong lĩnh vực In Ấn từ khầu thiết kế cho đến in ấn trên nhiều chất liệu khác nhau với  dàn máy hiện đại cùng màu sắc tuyệt vời. 
InKyThuatSo.Com, một trong những dịch vụ in ấn tốt nhất và cần thiết nhất trong thời buổi hiện nay. Với những chiến lược kinh doanh mới thì việc quảng cáo là vấn đề cấp thiết vì thế in ấn quảng cáo là chiến lược kinh doanh không những tiết kiệm mà còn mang lại nhiều hiệu quả
Với cơ cở cấu tổ chức gồm nhiều đội ngũ khác nhau như: Đội ngũ giao hàng, độ ngũ thiết kế, đội ngũ in ấn,...đã đồng hành cùng nhau mang lại sản phẩm tốt nhất cho khách hàng. 
Tại InKyThuatSo với nhiều dịch vụ in ấn, bạn có thể lựa chọn như: 
In namecard
In PP
In băng rôn
In tờ rơi
In thẻ nhựa
In vải Silk
In lịch
In Backdrop
In tem nhãn
In thực đơn, menu
In thiệp mời
In tranh trang trí
In banner
In phong bì
Hãy đến với inkythuatso.com để trãi nghiệm nhé!
Python: Use the UTF-8 mode on Windows!
Tags: python, windows
Published: 2019-12-12 06:59:46

Summary: Set the `PYTHONUTF8=1` environment variable.

On macOS and Linux, UTF-8 is the standard encoding already.
But Windows still uses legacy encoding (e.g. cp1252, cp932, etc...) as system encoding.

Python works very well about file names and console IO (e.g. use ~W APIs).  But the legacy system encoding is used for the default encoding of text files and pipes.

It is a very common mistake that omits the `encoding="utf-8"` option.  Developers who use macOS or Linux doesn't have any trouble by the mistake.

For example, even the [packaging tutorial in the packaging.python.org](https://packaging.python.org/tutorials/packaging-projects/) uses this code snippet:

```py
with open("README.md", "r") as fh:
    long_description = fh.read()
```

When `README.md` contains some non-ASCII characters (e.g. Unicode emoji),  `setup.py` will fail on Windows.  Windows users can not install the package when wheel is not provided.  (I sent [a pull request](https://github.com/pypa/packaging.python.org/pull/682) to fix this example code already.)

I believe many Python programmers are suffered by this default text file encoding on Windows because:

* The default encoding of Python source code is UTF-8
* UTF-8 is the standard encoding of the Web
* Modern text editors like VS Code use UTF-8 by default.  And even the notepad.exe chose UTF-8 for the default encoding!

But it is difficult to change the default encoding of text files because it is backward incompatible change.  It will break some legacy applications which relying on the legacy encoding.

But there is good news: Python 3.7 introduced the ["UTF-8 mode"](https://www.python.org/dev/peps/pep-0540/). (thanks to Victor Stinner!!)

When UTF-8 mode is enabled, Python uses UTF-8 as default encoding for text files instead of system encoding.
You can live in the world "UTF-8 is the default.  Other legacy encodings are used only when explicitly specified." like macOS and Linux.

To enable UTF-8 mode:

* Set the the environment variable `PYTHONUTF8=1`, or
* Use `-Xutf8` command line option.
Starting off #30DaysOfThreads talking about the Software Development Lifecycle (SDLC)
Tags: startup, beginners, productivity
Published: 2019-12-12 06:04:23

Programming is just one part of software development and having a plan beats not having a plan.

### Stage 1 - Planning

We start with figuring out what we’re trying to do.

Who will be using the app?
How will it be used?
What data will be collected?

Planning is the most important phase of the lifecycle. Here changes are the easiest & get exponentially more difficult as we go. 

### Stage 2 - Analysis

It’s great to have an idea and plan a project, it’s better to know if people are interested and willing to pay for it.

Poll your communities, post on forums, even setup a landing page with a email form to gather leads and measure interest. 

### Stage 3 - Design

Design is how you envision your app to look and what your user experience will be like.

You know what data you’ll be collecting and presenting so now’s the time to make that experience be as easy and enjoyable for the user as possible. 

### Stage 4 - implementation

DON’T START HERE! This is the part everyone can’t wait to jump into, actually making something.

By this point you now have a carefully considered, thoughtful, and peer reviewed idea and design. Assemble your team, plan milestones and get to work! 

### Stage 5 - Testing & Integration

Your app is completed! Does it work the way you expect? This stage, testing, commonly called QA (quality assurance). Bugs get sent back to developers to review and fix.

You can find more information if you look up “unit testing”. 

### Stage 6 - Maintenance

Now that your app has been released there isn’t much to do other than make sure it continues to work as expected. Accept bug and vulnerability reports and focus energies into other aspects surrounding your app; marketing, sales, user acquisition, etc. 
That’s the end of this thread! I hope you learned something!

Comments and questions below!

--
Enjoyed the post? Let me know! 💛🦄🔖
how many cups of coffee you drink in a working day?
Tags: career
Published: 2019-12-12 05:55:09

Cover Resource: https://www.coffeearea.org/

Normally, I drink no more than 1 cup everyday. But in our company, we often have long hours of work. We do not leave the office even after 5 p.m. Sometimes, lets say, if I stay in my office to 9 p.m. or 10 p.m., I will drink two cups more. I ever read some reports that drinking too much coffee is bad to our health. But have no choice, I am too tired to continue work so many hours everyday.
Find Real Information About Waklert Armodafinil – Sunwaklert
Tags: waklert, armodafinil, adderall
Published: 2019-12-12 05:50:04

Find true information about waklert armodafinil when you are searching to known more about waklert armodafinil like as how to use waklert, where to buy waklert, best way to buy waklert, sunwaklert is blog online site of waklert armodafinil to provide right information and suggest to you best way to buy waklert with discount and safe.
Front End Development-Introduction
Tags: beginners, webdev
Published: 2019-12-12 05:47:10


Hello!!!! This is an introduction about front end web development.

Front end web development is also known as client-side development.The basic tools required for front end web development are:

HTML(hyper text markup language).
CSS(cascading stylesheets).
JavaScript.
Front end development is a practice of creating the structure of the web page using HTML, styling webpage using CSS and introducing interactive environment for good user experience using JavaScript.The tools and techniques used to create front end of the website keep changing so a front end developer need to keep himself updated.

HTML:- HTML stands for hypertext markup language.It is used to create the basic structure of the page.It is used to create links to different webpages and that`s why hypertext. It uses tags and elements which tell the browser how to display the content of the webpage.Browser does not display the tags but use them to render the content of the page. Inside these tags, we can use attributes which contain more information about an element.Some attributes are id,type,class etc.. We will be dealing all of them in future posts.

CSS:- CSS stand for cascading styling sheets.This is used to give styles to the webpage.CSS is used to present the HTML webpage in a good and attractive way.There are many properties in CSS which can be used for styling like margin, padding,color,background-color etc.

JavaScript:- JavaScript is client-side scripting language.The progarms written in JS are called scripts.It is mainly used for interaction purposes in a webpage.It is used for event handling intractions also.In JS there are data types like string,number,date, null,undefined,array,objects and symbols which we can use for various purposes.
PROUDLY PRESENTING ✨CANDIDATE PLANET ✨
Tags: news, career, interview, negotiation
Published: 2019-12-12 04:29:47


On January 1st, 2020, Adam and I are launching Candidate Planet! We’ll be sharing tips and scripts for candidates, everything from talking with recruiters, to acing interviews, and negotiating offers. Our advice is a mix of general tech company advice, as well as specifics for engineers and tech-adjacent roles.

We’re starting with Youtube videos, and plan to share this content as a podcast, blog and newsletter, too. We want everyone to benefit from what we’ve been learning. 

We've started recording already and I can't wait to share these fun advice videos with all of you. I’m hoping y’all will send us feedback, as well as more candidate questions for us to answer. 

We have a couple short promo videos coming out this month, but the core content won’t get started until January 1st. Please subscribe so you're ready to go with the New Year.

{% youtube NSnCDdWqMJM %}

I’m feeling excited. I love performing and I love the creative work of brainstorming and producing videos and podcasts. I’m looking forward to building a community of candidates who will give us feedback, ask questions and cheer each other on.

This is also a totally new venture for Adam and I, and I’m anticipating some vulnerability. Will we be entertaining enough? Will anyone want to follow us?

I don’t doubt we’ll get there in the end, but there will be some incremental steps along the way. I rather like the nostalgia of looking back on one’s journey, but it can feel daunting while it's happening. One of my Candidate Planet goals is to build a compassionate audience so we can make mistakes and learn together... especially for the first few months!

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/1vua2hqgn7k2we83c8j5.jpg)

There are a few ways to subscribe to Candidate Planet content:

- [Youtube](https://www.youtube.com/channel/UCdvny6qs8e4VUJIG01puw2Q): subscribe and turn on notifications
- [Podcast](https://candidate-planet.simplecast.com/): hosted by SimpleCast (coming soon to iTunes, Spotify and more)
- [Newsletter](https://www.dangoormendel.com/blog): sign up at top of blog
- [Twitter](https://twitter.com/staycalmcomic)

If you want to do us a huge favor, share Candidate Planet with your friends and professional network. It means a lot to us that you would help us get this beautiful beast off the ground.

Lastly, if you have a question or scenario you want us to give advice about, send us an email: [CandidatePlanet@gmail.com](mailto:CandidatePlanet@gmail.com)

When you email us, share your name, pronouns and relevant work/candidate/company details. The context will help us create a great answer. Rest assured that we’ll leave out the details on air and keep you completely anonymous in our answer.

See you next Wednesday for a spoiler, and in 2020 for weekly advice for candidates.
Python Selenium Infinite Scrolling
Tags: python, selenium, scraping
Published: 2019-12-12 03:36:28

Scraping web pages with infinite scrolling using python, bs4 and selenium

Scroll function
This function takes two arguments. The driver that is being used and a timeout. The driver is used to scroll and the timeout is used to wait for the page to load.
```python
def scroll(driver, timeout):
    scroll_pause_time = timeout

    # Get scroll height
    last_height = driver.execute_script("return document.body.scrollHeight")

    while True:
        # Scroll down to bottom
        driver.execute_script("window.scrollTo(0, document.body.scrollHeight);")

        # Wait to load page
        time.sleep(scroll_pause_time)

        # Calculate new scroll height and compare with last scroll height
        new_height = driver.execute_script("return document.body.scrollHeight")
        if new_height == last_height:
            # If heights are the same it will exit the function
            break
        last_height = new_height
```

Here is an example using the function
```python
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.firefox.options import Options
from bs4 import BeautifulSoup

# Your options may be different
options = Options()
options.set_preference('permissions.default.image', 2)
options.set_preference('dom.ipc.plugins.enabled.libflashplayer.so', False)


def all_links(url):
    # Setup the driver. This one uses firefox with some options and a path to the geckodriver
    driver = webdriver.Firefox(options=options ,executable_path='./geckodriver')
    # implicitly_wait tells the driver to wait before throwing an exception
    driver.implicitly_wait(30)
    # driver.get(url) opens the page
    driver.get(url)
    # This starts the scrolling by passing the driver and a timeout
    scroll(driver, 5)
    # Once scroll returns bs4 parsers the page_source
    soup_a = BeautifulSoup(driver.page_source, 'lxml')
    # Them we close the driver as soup_a is storing the page source
    driver.close()

    # Empty array to store the links
    links = []
    
    # Looping through all the a elements in the page source
    for link in soup_a.find_all('a'):
        # link.get('href') gets the href/url out of the a element
        links.append(link.get('href'))

    return links
```
And that's how you scrap a page with infinite scrolling
Conditional Class Names in React
Tags: react, jsx
Published: 2019-12-12 02:12:22

---
canonical_url: https://brianflove.com/2019/12/11/react-conditional-class-names/
title: Conditional Class Names in React
description: Efficiently apply class names conditionally in React.
tags: react, jsx
published: true
---

## tl;dr

You can easily apply class names conditionally in React by leveraging an `array` of values, then `join()` each value with a space deliminator:

```jsx
<Link
  to="/course"
  className={['ui', 'button', !fixed && 'inverted', !!fixed && 'primary']
    .filter(c => !!c)
    .join(' ')}
>
  Launch Course
</MenuButton>
```

## How does it work?

This is because JavaScript conditionals are short-circuited when using the `&&` (and) operator.

If the first conditional in the series of _and_ conditionals is _falsey_, the remaining values in the conditional do not need to be checked, and the result is `false`.
If the first conditional in the series of _and_ conditionals is _truthy_, then in sequence each subsequent value must be checked to verify the complete truthiness of the statement, and the result is the final value.

This concept is sometimes referred to as a _guard_.

## Gotchas

There is one thing to be aware of.
The final value (or class name string in our case) must be evaluated as a _truthy_.
What is meant by that, is when JavaScript coerces the value to a `boolean`, you should be aware of the instances in which values can be coerced to be `false`.

So, if the class name (or value) is coerced to `false` when it is:

- An empty string
- The number `0`
- `undefined`
- `null`
- `NaN`

And as a result, the value will not be included in the final list of class names.
JAMstack Roundup for December 11th 2019
Tags: jamstack, react, graphql, webdev
Published: 2019-12-12 01:14:20

###Here are 5 articles that taught us a lot, from SEO to React Testing!

1. [How JAMstack Impacts Your SEO](https://hackernoon.com/how-can-jamstack-help-your-seo-lzr32aq)
    Nowadays, if you want to do search engine optimization (SEO) properly you have to think beyond the desired keyword, title, and other tags. 🏷 You also have to take branding, audience behavior, search intent, user experience, analytics, website performance and competition into consideration as well. 👩‍🔬

2. [The Rising Complexity of JAMstack Sites and How to Manage Them](https://css-tricks.com/the-rising-complexity-of-jamstack-sites-and-how-to-manage-them/)
    When you add anything with user-generated content or dynamic data to a static site, the complexity of the build process can become comparable to launching a monolithic CMS. 🐘 How can we add rich content to static sites without stitching together multiple third-party services? 🤔

3. [Get Started With ExpressJS](https://www.brianemilius.com/get-started-with-expressjs/)
    ExpressJS is probably the most popular framework for creating server-side web applications in Node.js. In this blog series I want to show you how to get started and how to do it The Right Way™. 😎

4. [Forget Mobile First, Progressive Web App First is the Future](Forget Mobile First, Progressive Web App First is the Future)
    The days of “build it and they will come” 🛠 are long gone, and now the name of the game in mobile is “pay to play.” 💵 It doesn’t have to be this way. Companies that have historically been web-first have employed a very different strategy to acquire users. 🕸

5. [UI Testing Best Practices](https://dev.to/bryce/ui-testing-best-practices-4ke4)
    I've been writing a decent amount of UI tests these past few weeks and thought I'd share a handful of patterns I've been adhering to. 🤝 Hopefully this can help guide good decision making when writing tests and make it easy to write more maintainable code.
Open Source Culture Company Handbooks
Tags: opensource, culture, reference
Published: 2019-12-12 01:11:57

This is a reference list of company handbooks who are building an open source company culture. This list is inspired by a [recent conversation](https://dev.to/coss-media/a-discussion-of-open-source-culture-hlm) between DROdio (CEO at Armory) and Kate MacAleavey (Head of Culture and Leadership Development at Armory) and Joseph Jacks (founder of OSS Capital) on the topic of "open source culture", in the context of building a Commercial Open Source Software (COSS) company.

We hope this list, which we will maintain going forward, can be a valuable reference material to help COSS founders and operators better build their company culture. While not all of these companies are COSS companies, the way they approach, foster, and articulate culture is forward-thinking and very much "open source".

We encourage you to provide comments, edits, and contribution to this list at the COSS Media [GitHub repo](https://github.com/cossmedia/company-handbooks/blob/master/README.md). 

| Company      |  Link to Handbook  |
| ------------- | -------------:| 
| 18F | https://github.com/18F/handbook |
| Armory | http://go.Armory.io/iterate |
| Basecamp | https://github.com/basecamp/handbook |
| Bonusly | https://github.com/bonusly/un-handbook |
| GitLab | https://about.gitlab.com/handbook/ |
| Nylas | https://github.com/nylas/handbook |
| Sourcegraph |  https://about.sourcegraph.com/handbook |
| Sparksuite | https://github.com/sparksuite/employee-handbook |
| Tidepool |  https://github.com/tidepool-org/handbook |