fabiochiu/medium-articles huggingface dataset:
Quicksort — The Best Sorting Algorithm?
By: Esha Wang
Tags: Algorithms, Arrays, Code

How Quicksort Works

Quicksort (especially in-place Quicksort) can be a bit confusing, so let’s walk through an example to show how this sorting algorithm works.

Suppose we are given the following array to sort:

Now let’s choose something called a “pivot point”. The goal is to rearrange the array such that all all elements less than the pivot are to its left, and all elements greater than the pivot are to its right. The choice of the pivot point is arbitrary; it can be the first element of the array, the last element of the array, or even a random element! For our purposes though, let’s choose the pivot point to be the last element in the array, 5.

After rearranging the array around the pivot point 5, we should obtain the following array:

We then recursively follow the above procedure for the subarrays to the left and to the right of the pivot point.

The subarray to the left of the pivot point is just one element. No point in sorting an array of length one, so there’s nothing to do here!

The left subarray

On the other hand, the subarray to the right of the pivot point is not so trivial. Following the procedure described above, let us choose 7 to be the new pivot point for this subarray.

The right subarray

After rearranging the elements of the subarray around the pivot point, we obtain the following:

The right subarray rearranged around the new pivot point, 7

By continuing recursively, and merging the left subarray with the pivot and the right subarray, a sorted array is returned.
EZ School Projects You Can Do At Home
By: Lynn I. Hsu
Tags: Humor, Education, Comics, Parenting, Homeschooling

EZ School Projects You Can Do At Home

Your teachers have added new mind-blowing experiments to the school’s curriculum.

Hey kids,

Now that you’re stuck at home with remote learning, we teachers know that you little Einsteins miss the fun, hands-on projects you used to do in school. Lucky for you, we’ve come up with some EZ activities that require minimal supervision at home. Sure, the time for prep and clean up may take hours, but parents know that even five minutes of learning these days is priceless. They will be thrilled to transform your home base into an innovative lab space for these fun experiments.

Physics: Newton’s Laws of Motion

MATERIALS: Condiment bottle (ketchup, BBQ, mustard). If not available, use a slingshot and a dozen raw eggs.

DESCRIPTION: The effects of Newton’s Laws of Motion and gravity on a moving projectile can be demonstrated by a hands-on approach: squirting ketchup from a bottle. Use a protractor to change up the angle of the squirt, and a ruler to measure the horizontal distance and vertical height of the splatter on your kitchen floors, walls, and ceiling. Plot these marks on a graph. If the bottle jams up, just stomp it.

History: Diorama

MATERIALS: Superglue and your parents, who will happily gather all materials needed and spend a whole day making the model for you.

DESCRIPTION: Build an elaborate diorama that represents an important historical event. We understand that reading old reference books can be a drag, so we’re cool with movie “research” too. Watch a historically accurate film, like The Last Samurai, Pocahontas, Cleopatra, or Braveheart for inspiration. Show off your diorama on Zoom to your teacher, then feel free to throw it away.

Arts: Music Appreciation

MATERIALS: Decibel meter and any object or surface in the house.

DESCRIPTION: Awaken the musician within you, your family, and neighbors by turning any household object into a musical instrument. Bang out sounds with a baseball bat, power tools, and Grandma’s urn and shout out your favorite song. Use a decibel meter to measure how loud you can get. Will 120 dB actually damage the human ear? Will 150 dB break glass? Find out!

Biology: Dissection and Decomposition

MATERIALS: A dead thing, big ass knife (plastic is acceptable, but dissection may take longer), cutting board, and goggles for gut splatter.

DESCRIPTION: Find a dead worm, frog, goldfish, or small rodent around the house. Lay subject on cutting board and cleave that sucker open. Draw some pictures of its guts in your science journal. Then leave the corpse out for 2 weeks and record the different stages of decomposition.

Bonus: Count how many flies enter your house in a 2-hour period. Assuming half of the flies are female, calculate the number of baby fruit flies that will be created in 4 days, given that a female fruit fly can lay about 500 eggs that hatch in larvae in 30 hours.

Your parents will scream in delight, as you experience the circle of life, right in your home.
Tips for PlayStation 4 Streamers on Twitch
By: Mark Ramsey
Tags: Twitch, Streaming, PS4, PlayStation 4, Videogames

The MarkRamsey Twitch Community https://markramsey.com https://twitch.tv/markramsey Comment Line: ‪(469) 619–5668‬ leave questions in the response area

Follow
Happy Holidays!
By: Jess Kaisk
Tags: Literally Last Week, Membership, Literally Literary, Ll Letters, Holidays

We hope that your holidays are going well! We are on the last stretch of 2016, and what a skinned knees type of year it has been. We don’t know about you, but we are absolutely looking forward to seeing what 2017 will bring.

We would like to let you also know that the membership is live, so please feel free to sign up! While you may think there are not a lot of reasons to do so, we think there is. It will help us dedicate more time to Literally Literary, not just through editing, but using the funds to put together a print publication featuring all of our wonderful writers! Along with giveaways, a Slack Channel dedicated to members, and other benefits we think up as we try this out!

On a personal note, it is my goal to be able to feature the print publication in my biggest personal project, Literally Literary-Akron’s Lit House; a brick and mortar haven for writers, readers, and dreamers!

We also have launched our Facebook page and Instagram account for LL, because, you know, that’s what young folks do these days right? :)

Next week we will also resume our Literally Last Week newsletters as well! We hope that you have a fabulous holiday season!

Stay warm, stay sane, stay safe!

❤❤❤

Jess
Maybe Next Time
By: Kat Morris
Tags: Poetry, Poem, Relationships, LGBTQ, Love

Thank you for taking the time to read my poem. If you like my work the maybe you’d like to read more of my work.

If you’d like to stay up to date and get regular writing inspiration and tips then you can find me on Facebook, Twitter and Instagram: katmorrisbooks.
LifeSpeak serves Canada’s 100 Best Employers
By: Lifespeak Inc.
Tags: Employee Experience, Employee Engagement, Workplace, Work, Employer Branding

The winners of the Canada’s Top 100 Employers award were announced last week. Congratulations to all our friends at:

3M Canada Company

Air Canada

Alberta Health Services / AHS

BC Public Service

Bell Canada

Canadian Nuclear Laboratories Ltd.

CIBC

Export Development Canada

Irving Oil

Ivanhoé Cambridge Inc.

Keyera Corp.

Labatt Brewing Company Limited

NAV CANADA

Norton Rose Fulbright Canada LLP

Royal Bank of Canada

SAP Canada Inc.

TD Bank Group

Government of Yukon

It’s an honor for us to serve the employees who work at these outstanding organizations and their family members. If you’d like to learn how we can help your staff thrive, book a walk-through today.
The Economy According To Trump
By: Liza Donnelly
Tags: Stock Market, Economy, Trump, Politics, Race

Who benefits, really?

In the middle of all the protests for racial justice yesterday, the stock market rose sharply and unemployment numbers were lower than expected. In a speech yesterday afternoon, Trump claimed credit for this rise and said,

“It’s the greatest thing that can happen for race relations, for the African American community, for the Asian American, for the Hispanic American community, for women, for everything, because our country is so strong,” Trump said when asked if he had a plan to address systemic racism. “And that’s what my plan is: We’re going to have the strongest economy in the world.”

Working class and poor people — including black, white, brown — will not benefit from the rise of the stock market.

This is what I tried to depict in this drawing.
Iridescence
By: Shalini C
Tags: Poems On Medium, Romance, Relationships, Love, Poetry

Photo by Christopher Alvarenga on Unsplash

My hand accidentally brushing against yours

Is a stage set for love’s iridescent allure

Mapping you in my veins to your wind-torn, riddled essence

Peeled petals of a rose — its flared fragrance

In sheers of breaths hunger-strewn

Ruffling the quiet’s cool cocoon

I try to trace its plaguing origins

Prying into my core in a quiver of sin

Rousing me into centre stage a poetic mise-en-scene

Crippling me to your fading away in reckless abandon

Outside the din of my racing heart

Is the mockery of an unnameable name

The digits of a coordinate untamed

The lyrical breeze of our unwritten serenade

Then tell me, am I dreaming it all?

Could you brittle away from me in a skyfall?

Your touch and the amalgamation of you

that clings to me like late rain on bruised blooms

Oh, the pleasure and war of serendipity

A woeful smile curled in a calamity

in every primmed facade to hide the perplexity

of a heart whispering, “You belong to me.”
Midas Protocol Signs Private Token Sale Agreement with Chainfund
By: Drew Boswell
Tags: Chainfund, Midas Protocol, Token Sale, ICO, Press Release

Midas Protocol Signs Private Token Sale Agreement with Chainfund

Midas Protocol — Decentralized Portfolio and Asset management Platform for everyone

For Immediate Release: 02 May 2018

Contact: Chainfund Team

Website: https://chainfund.ch/

Chainfund, an investment management company which is developing the first fully decentralized investment platform announces that it has signed a private Token Sale agreement with Midas Protocol.

Chainfund with David Vu, Michael Chu in Vietnam

Singapore — Midas Protocol, an emerging blockchain solutions company announces that it will offer a token sale of 20,000 ETH in MAS tokens to create an intelligent tool for everyone to manage, invest, trade, exchange and spend crypto-assets. As a decentralized platform built on blockchain technology, token sale funds will be used to develop its products and drive the company’s mission to increase wealth through smart crypto investment and portfolio management.

Why Chainfund sees Midas Protocol as a game changer

For full Detail: https://midasprotocol.io/#intro

Yann Quelenn, Chainfund's Co-Founder and managing Director, commented that "Midas Protocol with its unique features will attract many users. Besides the underlying technology, Midas Foundation DAO setup is very interesting. We believe that many new startups will get help from the Foundation, and we hope to be able to invest in them as well."

Dr. David Nguyen, Chairman of Midas Protocol, explained “Midas Protocol, with clear “Go-To-Market” Strategies will boost the number of users exponentially. With that, the funding that flows to the Foundation will increase overtime and will help to kickstart many startups in the future”
And Released
By: Ani Vidrine
Tags: Poetry, Sorrow, Comfort Zone, Grief, Sadness

And Released

Poems From The Porch

photo by Karim MANJRA on Unsplash.com

I used all my coping skills

and still the sadness came in waves,

an apt lesson that

mindfulness and embodied presence

do not dissolve grief

but acknowledge and tend it.

There is a gift in being fully

present to oneself in sorrow.

It is the companionship of Love

not to avert my own eyes

or redirect attention,

not to discount and distract,

not to deny

the sadness, real and unrelenting.

To stay,

stay with it,

stay with the feeling,

to stay with myself;

Love’s tender abiding

seeing me through to the next moment,

the next heart-centered sob,

the sound of a tender heart breaking.

To stay with that sound,

to tend it,

to wipe the brow of grief,

to look grief in the eyes —

my own grief.

To feel the grip,

grief grasping for comfort,

for relief,

for a warm embrace

saying, “Everything will be okay.”

And everything is already okay.

Jesus told Julian that all will be well,

a mantra to hang onto like a lifeline.

All will be well, and all will be well,

and all manner of things shall be well.

Repeating it to myself

like a mother calming baby,

the voice of Love reassuring.

Receiving the gentle cooing,

an innocent child seeking nourishment,

colicky and distressed,

no fault to be assumed or projected.

For babies hurt when a tooth

pushes through.

The baby doesn’t trust the process;

she trusts the mother,

the One Who cares for her dearly.

Mother will provide.

Mother will sustain.

Mother will guide.

Mother is Love.

Mother Love.

Love is Mother.

Grief now subsiding in the

arms of Love.

Comfort received.

A deep breath of Fresh Air in

and released.
Memberships structure update
By: Ø Crypto Union
Tags: Blockchain, O Crypto Union, Memberships, Bitcoin, Ark

Following our partnership with ARK protocol and others to come, we’ve decided to restructure our current membership model. We’re glad to announce that we’ve reduced the amount of GXE needed for membership, without taking away any of the benefits!

We would also like to introduce you to our two new categories of membership; Base and Protocol! Our intention always has and always will be to be consistently evolving and, as such, our range will broaden as we progress.

Base Membership

With a view to overthrowing the traditional banking world, we wish to expand this model over time gradually in order to achieve our long-term objective of being accessible to everyone. During our initial stages, we shall reserve Base Membership for groups and communities, for example; Student groups, Meetup communities etc. The requirement for each member is only 1000 GXE, making it hugely accessible already!

The table below compares the levels of Membership currently available.

Protocol Membership

As part of our continued mission to collaborate and integrate with the best blockchain protocols in the space, we can offer personalized memberships based on your needs. If you wish to discuss integrating your protocol, then please get in touch via Discord, Telegram or email us at; contact@ocryptounion.io !
Latest picks: In case you missed them:
By: Tds Editors
Tags: Machine Learning, Data Science, Editors Pick, The Daily Pick

Get this newsletter By signing up, you will create a Medium account if you don’t already have one. Review our Privacy Policy for more information about our privacy practices.

Check your inbox

Medium sent you an email at to complete your subscription.
1Ramp’s Alpha Web App is Open-Source on GitHub
By: Pratyush Singh
Tags: Blockchain, Product Updates, Press Release, Open Source, Announcements

The Blockchain-based Projects advocate for decentralization. One part of decentralization is to open-source the code and invite the developers to suggest ideas, improve, and build a better platform.

HapRamp’s Alpha Web App is open-source and it can be accessed on our GitHub organization: HapRamp-GitHub.

Link to the GitHub Repository: 1Ramp Alpha Web App.
The Beginning of the End
By: Anna Moriartylev
Tags: Graphic Medicine, Family, Comics, Cancer, Death

Spiralbound

Comics for life, brought to life by Edith Zimmerman.
How to Scrape Youtube Comments with Python
By: François St-Amant
Tags: NLP, Rayshard Brooks, Web Scraping, Selenium, YouTube

How to Scrape Youtube Comments with Python

Building an NLP database from scratch

The first part of any Natural Language Processing project is to get a database. Indeed, having the whole dataset cleaned and labeled only applies on Kaggle, not in real life.

When it comes to sentiment analysis projects, I feel like Youtube comments represent a great and underused source of data. You easily have access to the opinion of all viewers on a very specific subject, i.e. the video.

Knowing all this, here is how to scrape the comments from a Youtube video, step by step.

Here is the video from which I will be scraping the comments: https://www.youtube.com/watch?v=kuhhT_cBtFU&t=2s

It’s a video posted by CNN showing the arrest and shooting of Rayshard Brooks in Atlanta that took place on June 12th.

So first, don’t forget to install a ChromeDriver from right here. You should also have Google Chrome installed. Now that this is done, let’s import the libraries we will need:

import time

from selenium.webdriver import Chrome

from selenium.webdriver.common.by import By

from selenium.webdriver.common.keys import Keys

from selenium.webdriver.support.ui import WebDriverWait

from selenium.webdriver.support import expected_conditions as EC

Selenium is needed here because Youtube is JavaScript rendered, which BeautifulSoup cannot deal with.

All the other modules are needed because Youtube comments are dynamically loaded, which means that they are only visible when you scroll down the page. So we want a loop that will:

Scroll down

Wait for comments to appear

Scrape the comments

Repeat for whatever range we want.

Here is the loop that does just that.

So here is how it works:

Access the URL you want with the driver.get function. Scroll down and wait until everything is visible with wait.until and EC.visibility_of_element_located. Scrape the comments by finding all the #content-text elements (which is what we want, as you can see below) in the current viewed page.

4. Append the comments to the data list.

To scrape comments from another video, all you need to do is change the URL! It’s that easy.

Here, I repeat the loop 200 times, which scrapes about 1,400 comments. Here is what the data looks like:

import pandas as pd

df = pd.DataFrame(data, columns=['comment'])

df.head()

There you have it. Now, you would be able to use that data to start your NLP project.

Thanks for reading, I hope this helped!
DELPHY Internal Test and Prediction Championship Event
By: Ada Gao
Tags: Cryptocurrency, Blockchain, Prediction Markets, Ethereum, Bitcoin

Dear Delphy Community,

You might already be aware that Delphy just started another-round of internal testing for the mandarin version of our platform. The testing Quota for this is 500 participants. If you are interested, scan the QR code in below image and Delphy customer service will invite you to the test. As you expected, you get rewards if you help us test and find bugs or provide valuable advice and suggestions. Furthermore, as Delphy is a prediction markets platform, this time, you will also get rewards when you predict more accurately than others! Yes, you heard it right. Here are the details:

Event period: April 4th- 18th, 2018

Participants can use the 500 test tokens(which are not real DPY tokens) provided by Delphy to participate in the predictions on Delphy platform

For this 2-week event, by end of every day, at 0:00am, Delphy will calculate the outcomes of all predictions and rank the winners every week.

If some predictive markets don’t mature until the end of this event, the outcomes can’t be included.

At 0:00 of April 19th, 2018, Delphy will do a final calculation and rank all the winners and reward:

№1 winner can get 66DPY tokens

№2–10 winners can get 36DPY tokens each

№11–100 winners can get 6DPY tokens each

All rewards will be distributed to winners’ wallet in 1–7 business days after the end of this event.

Thank you for your continued support!
Dark Times ~ Praise Osawaru
By: Chigozie Nelson
Tags: Poetry Writing, Poetry On Medium, Poetry

Photo by Suparerg Suksai from Pexels

For three days it has rained intermittently

The stalks have altered their stance into an eternal bow /

and the roads are now mud-colored.

My neighbor’s house now glugs water through an open roof —

the aftereffect of an ardent rainstorm.

_

My dad says God is attempting

to cleanse the earth from darkness

and the rite demands a sweeping force.

The power company borrows that

as a justification for our deprivation of light.

_

I look up and gawk at dark clouds

encroaching the sunless blue sky /

sculpturing dander from an unruffled sky.

_

Last midnight our fence kissed the ground

after meeting with the ceaseless downpour and wind /

the surrounding waters altered our home into an island.

_

So, I clutch my younger sister & say,

We’re in dark times,

prepare for abundant chill & obscurity.

_______

Praise Osawaru is a writer and poet of Bini descent. His works have appeared or are forthcoming in Blue Marble Review, FERAL, Ghost Heart Literary Journal, Kalahari Review, Serotonin, and elsewhere. He was longlisted for Babishai 2020 Haiku Award and Nigerian Students Poetry Prize 2020. He’s on Instagram/Twitter: @wordsmithpraise
Offline Networking for Business Growth
By: Kahli Bree Adams
Tags: Freelancers, Communication, Networking, Business, Small Business

Work the room

So you’ve identified a suitable event, packed your business cards and arrived at the venue — now what?

It is important to make a great first impression, as people decide whether or not they like you within a matter of seconds. Although you may prefer to work in your pyjamas all day, make sure you have some proper business attire ready for professional networking events. As a general rule, dress at least ten percent better than the people you want to attract. The last thing you want to do is come across as some haphazard freelancer — you are a business owner and want to be treated as such, so dress and act accordingly!

Being nervous is completely normal, but don’t use it as an excuse to keep getting refills from the buffet or (pretend to) send text messages on your phone all night. That would defeat the entire point of being there, so relax, get in there and work the room. After all, everyone shares the same goal and is there to network.

Try to talk to as many people as possible rather than clinging to those you already know. To do this effectively, smile and make eye contact for a great first impression. Make sure you’ve prepared an effective elevator speech to raise the other person’s interest. When you’re asked ‘what do you do?’, you need to be able to respond with short phrases that will get you noticed and remembered in less than ten seconds. What you say should make the listener want to find out more about you and your business and lead to further questions.

If you’ve identified someone important you really want to speak to, don’t be afraid to ask the host to introduce you to them. Connecting with the right people is your main objective after all.

When engaging with someone, try to listen carefully in order to demonstrate genuine interest and at the same time finding out more about their business. Everyone likes to talk about themselves, so people will remember you for being a good listener and feel flattered that someone is interested in them and their business. And flattery goes a long way as they say.
Which Post Will Land You on the Iron Throne?
Tags: Game of Thrones, Social Media, Social Media Marketing, Influencer Marketing, Content Marketing

Winter came. Season 7 ended. Game of Thrones fans everywhere are now left to wait another year for the final season.

As we look ahead to a long winter without Drogon and Rhaegal (or a blue-eyed Viserion) on our TV screens, who of the Game of Thrones cast is worth a follow?

The ladies of Westeros didn’t only rule season 7 (Lbr, Sansa and Arya owned that finale), they also rule the digital landscape.

Our fave: Kristofer Hivju, who plays the wildling Tormund Giantsbane. He may not have the largest social fan base, but brought fans this classic behind the scenes video with “the Hound.”

Besides the cast, we used the Julius filter “Game of Thrones Fan” to find some other entertaining celebrities that can fill the void. Over 150 are tagged as fans!

Ed Sheeran is amongst the top celebrity influencers, based on reach and engagement, who enjoys Thrones. He was also the topic of a controversial cameo at the start of this season.

Don’t forget about Saturday Night Live’s Leslie Jones, who’s “Game of Jones” segment on Late Night with Seth Meyers will have you saying “Theron!!!!” She also live tweets every episode with spot-on commentary.

Other notable fans who were definitely freaking out last night: Sofia Vergara, Lily Singh, John Krasinski, and obviously Kristen Bell and Dax Shepard.

What was your fave tweet from last night’s finale? Sound off in the comments below!
Updated List of SBP Who Pay Vite Voters
By: Allen Liu
Tags: Vite, Resources, Crypto Investment, Blockchain

At Vite, voting for SBP is one of the most important methods to earn VITE. Unlike the other means, voting does not lock your assets and is easy to operate. By September 8, 2020, there are a total of 114,172,380 VITE coins voted for the 37 SBPs in the Vite MainNet, taking more than 10% of the total supply, approximately 20% of the circulating supply.

However, not all the SBPs pay voting rewards to their supporters, and not every SBP pays the same. Since the list will be updated from time to time, it’s necessary to watch the latest list of SBP with rewards to achieve the best ROI for your investment.

As of September 8, the following SBPs pay voting rewards (in alphabetical order). Please be kindly noted we don’t provide ROI details. You should reach out to the SBP (they usually have representatives in our Telegram groups) or ask the group admin to get the latest payback rate.

Thanks to the above SBPs and all Vite voters. You do contribute to the notable decentralization of Vite!
Simplifying Yarn Start Commands
By: Anton Ball
Tags: Yarn, NPM

Photo by Tara Evans on Unsplash

We wanted our projects to be quick to install and begin development. The goal was to need nothing more than running yarn and yarn start. This was tricky with our mono repo though. There were a lot of commands to choose from. Here’s how we simplified starting our mono repo using a couple of open-source tools.

The possible commands covered starting The West, PerthNow, 7NEWS, tests, visual regression, delete everything command (we have all been there) and a bunch more. Some of those (delete everything) are rarely needed but starting mastheads are frequently used.

The idea was to show an interactive terminal command when we use yarn start. Similar to what I have seen using tools like create react app, gatsby and the like.

A bit of research brought us to Inquirer.js. A package built for making interactive command-line commands. In our case we wanted a list of options which you can define like so:

inquirer

.prompt([

{

type: 'list',

name: 'what',

message: 'What do you want to start?',

choices: [

'Mono',

'The West',

'PerthNow',

'SevenNews',

'...’

],

},

])

Inquirer.js returns a promise with the choice. At this point we decided on the command we needed to run.

inquirer

.prompt([{...}])

.then(({ what }) => {

let opts = 'start:mono' switch (what) {

case 'The West':

opts = 'start:thewest'

Break

case 'PerthNow':

opts = 'start:perthnow'

Break

case 'SevenNews':

opts = 'start:sevennews'

Break

default:

Break

}

})

Next problem, how do we start a command? Well a little more searching and we discovered the execa npm package. With the command stored in the opts variable we can execute it with this method:

execa('yarn', [opts]).stdout.pipe(process.stdout)

Stdout.pipe is to see the output from running that command. So that was important too. It depends if that’s important to what you’re doing but we see a lot of important messaging from stdout.

Heading back to package.json we assign the script to run when start is used.

start": "node start.js",

We now have a nice script for starting our frequently used mono repo commands. It saves a bit of time and mental energy and that’s a nice outcome for just a little bit of work. Hopefully this gives you some ideas for how you can create your interactive CLI commands.

Here’s an abridged version of the script:
Looks like a fun book: “Cockpit Confidential”
By: Pito Salas
Tags: Flying, Travel, Cockpit, Book

The Many Mysteries of Air Travel — NYTimes.com:

If you’d like the answers, I highly recommend Patrick Smith’s new book, “Cockpit Confidential.” Mr. Smith is a pilot and blogger; much of the book’s format and contents are on display at his Web site, AskThePilot.com, or in the archives of the “Ask the Pilot” column he wrote for Salon.com for years.
Welcome to phantastic
Tags: Data Science, Sports, Technology, Triathlon, Data Visualization

phantastic starts as a a collection of essential articles on the topic of performance. We’ve designed these articles for athletes of all levels sharing a common drive: athletes who want to become their best performing self, are looking for an edge, want to shake things up, or are trying to achieve their breakthrough performance.

Our articles synthesize our learnings as athletes, experimenters, tinkerers, and endurance sports passionates. They are longer in nature, as each article is an inquisitive study of a select topic, bringing in experts to first dissect the topic and finally to extract the essence for you. As a result, each article is meant to be the only article you will need to read on the topic.

Given the intricate and in-depth nature of our articles, we plan to cover one topic per month. This collection will engage you like no other. It will surprise you, teach you something new, and delight you. This is our commitment and promise to raising the bar!
Callbacks in JavaScript
By: Ashutosh K Singh
Tags: Programming, JavaScript, Asynchronous, Nodejs, Callback

Photo by Christopher Gower on Unsplash

In the previous post, Synchronous vs Asynchronous Programming, we discussed the difference between Synchronous and Asynchronous programming in JavaScript. In this article, we will discuss what are Callbacks in JavaScript.

Callbacks

Callback is a function that is passed as an argument to another function and its execution is delayed until that function in which it is passed is executed.

Meaning, if I pass a function, let’s say function1 to another function, i.e., function2 ,then function1 will not be executed until function2 is executed.

Callbacks are a fundamental part of Functional Programming, and you may be already using them without knowing; methods like .map() , .filter() , and .reduce() all make use of callback functions. Let see an example:

Callbacks Example

In the above example, we iterate through the array arr , using the .map() method that accepts a callback function to modify the array elements.

In the above example, Function Declaration is used to define the function; you can also use arrow methods to pass a callback function. The above code can be rewritten as

const arr = [1,2, 3,4,5]



const newArr = arr.map(elem =>{

return elem*elem

})



console.log(newArr)

The above example is called Anonymous Callback Function. We can refactor it to become a Named Callback Function just by making a new function with the same logic and referencing it inside .map() .

const arr = [1,2, 3,4,5]



const square = (num) => {return num*num}



const newArr = arr.map(square)



console.log(newArr)

One thing to note here is that function square() is passed as an argument inside .map() , so we are not actually calling it here, so there are no parentheses () .

The last thing to discuss in Callbacks is “Pyramid of Doom” or “Callback Hell”. Imagine there are many nested callbacks inside a callback; it would look something like this.

// All the functions are defined up here



getData((url)=>{

getDifferentData(url, (secondUrl)=>{

getMoreData(secondUrl, (response)=>{

getRes(response, (data)=>{

console.log(data)

})

})

})

})

P.S. We are assuming that these functions have already been defined.

As you can see, it becomes difficult to read and pass callbacks.

Callback functions are useful for short asynchronous operations about two to three nested callbacks but not for more.

Promises and Async/Await solve this problem and make the life of a programmer uncomplicated.

Conclusion

In this article, you learned about Callbacks in JavaScript. In the next article, we will discuss Promises and Async/Await; what are they? How to use them? ,etc.

Happy coding!
Introducing Cred: A New Way to Invest in Cryptocurrency
By: Jamie Boyer
Tags: Millennials, Cryptocurrency, Cryptocurrency Investment, Blockchain

Introducing Cred: A New Way to Invest in Cryptocurrency

Bringing Crypto to the Masses July 31st!

Ok, don’t laugh, but if I had a token for every time I sat down to learn about crypto, read a few articles, glazed over and ended up watching videos about fawns and hedgehogs who end up lifelong friends against all odds, I’d probably be as rich as Bill Gates. Or at least his dog, Oreo. I wanted to get in the game, but found myself overwhelmed with token options, non-intuitive technology, confusing lingo and constantly conflicting opinions.

That’s why I love Cred.

If you’re reading this and nodding, feeling my pain, thanks. If you’re reading this and rolling your eyes, I get it. You’re a more advanced investor, maybe you know a thing or two about the alphabet soup that sounded like Turkish to me. Maybe you already have crypto holdings of your own. But, get Cred is for you, too!

Cred offers round ups and recurring deposits

C red uses two micro investing concepts that have been out there for a while and applies them to crypto: round ups and recurring deposits. The Cred team has also done the footwork for you, by conducting intensive research into over two hundred token companies to select the fifteen that met their rigorous standards for stability, mission, program design, functionality and more.

Here’s how it works:

App users set up their profile and link their bank account, pick their tokens and decide whether they want to round up or set recurring amounts. Round ups mean that for every purchase made using the linked debit or credit card, instead of the change staying in the bank, where it doesn’t earn returns and will likely get spent, it’s used to purchase more tokens. For example, I set my account to round to the nearest dollar and buy Komodo. When I buy my fancy-pants iced-dirty-chai-double-shot-almond-milk-light-ice (I know, I know don’t judge me) and pay my $6.25, the app automatically uses $.75 to buy Komodo. I’ll never miss that $.75 and now it’s working for me. All of those purchases we make every day, on lunch, gas, groceries, bills, all get rounded up and begin working for us. Pretty cool, right?

Another option is reoccurring deposits. Micro investing means you can set the app to buy tokens at whatever time interval and for whatever amount up to $1,000 at a time. Set it to buy $5 or $10, or even $1 if you want to start slow, in whatever token is available on the app and decide if you want that to happen once a week, twice a month, monthly, whatever makes sense to you. Like with rounding up, the small amounts add up and make gaining entrance to the market easy.

It’s the “set it and forget it” of crypto.

And that’s it! Simple, easy, accessible. Ready to begin?
Time
By: Luisito Gavara
Tags: Poetry, Pom, Poem, Poetry On Medium, Love

Photo by Fabian Grohs on Unsplash

It’s all the ticking and tocking

The tick-tocking

The living and walking

Listening and talking

The way time lumbers on

Slowly and methodically

Letting us fall softly

Through late nights

And long fights

Through hand holding

And fingers-crossed-breath-holding

It's all flipping and flopping

Flip-flopping

Back and forth

This way and that

As we decide one way

Then the other

It’s crisscrossing

The world

And our thoughts

Till we come together

In one last jumble

Us and time

You and I

Just falling

Together

Into love
AXNET lists Basic Attention Token with BAT/ETH and BAT/TUSD pairs
Tags: Crypto, Tech, Ether, Blockchain, Bitcoin

AXNET’s Decentralized Exchange has now launched Basic Attention Token’s BAT Token available for immediate trading, deposit & withdrawal. BAT will have the following pairs in our decentralized exchange: BAT/ETH & BAT/TUSD.

The AXNET DEX allows traders to get access to a high-speed trading engine, with a centralized user-experience, while keeping custody of their funds. Users can connect their wallet via Meta-Mask, Trust Wallet, Ledger, Creating a New ETH account, or importing their private key(Not Recommended).

About BAT

BAT (Basic Attention Token) is a blockchain-based digital advertising token based on Ethereum. The mission of the BAT team is to fix the broken state of the current digital advertising space in which users are unknowingly tracked, publishers are having trouble monetizing content, and advertisers are constant victims to fraud.

About AXNET:

Asset Exchange Network OÜ (AXNET) is a licensed virtual currency to fiat exchange with a licensed virtual wallet platform based out of Estonia. We service our traders worldwide by giving them the first hybrid trading platform that offers both a Centralized and Decentralized exchange that allows our traders to toggle between the two. We are listing traditional BTC, ETH, and USDT pairs with also fiat pairs like USD and EUR through our license and banking networks. We are also launching TUSD pairs for our decentralized exchange to give a stable-coin trading experience.
Create Azure AD Users Dynamically With Terraform 0.13 and for_each
By: Nicolas Barrasson
Tags: Terraform Modules, Azure Active Directory, Azure, Terraform

Last week Hashicorp released version 0.13 of Terraform which from my opinion ended a journey started in 0.12 with the availability of the ‘for’ expressions.

Indeed before 0.12 it was arduous to write code that iterates on lists or maps without knowing in advance their depth. ‘for_each’ expression filled a gap in term of code factorization. Actually it was very handy until you write modules which were not supported. Yet if you want your code being reusable writing modules can be of help.

Version 0.13 finally offered to use ‘for_each’ in modules so I wanted to demonstrate how to use it in the context of Azure and more precisely with Azure AD. For that, we’re going to dynamicaly create AAD users with the azuread provider. As an input we will use a list of usernames that can be of one to many elements.

First things first, let’s create a terraform projet with a standardized module structure. Here’s how your project folder should look like :

/add-users

|-- /modules

| |-- /aad-user

| |-- main.tf

| |-- variables.tf

|-- main.tf

|-- variables.tf

Let’s take a look at the aad-user module files:

With those two files we should be able to create one single azuread_user instance but we want to do more than that and instead call this module as many times as we have users to create. So let’s call this module and loop on a list of users.

Let’s create a variables.tf in the project root folder with a list of string containing usernames and a string containing the temporary password (this is for demonstrating purpose as you should rather generate random passwords and export them as output but this won’t be covered in this article):

Then create a main.tf and call the module :

Watch the for_each line and see that a toset() function is needed as for_each only accepts sets or maps.

Watch the username line and the each.value expression that loops on the user list.

For the domain_name the data block automatically pulls the default from your connected AAD tenant.

Now let’s terraform this:

az login

terraform init

terraform plan

terraform apply Apply complete! Resources: 2 added, 0 changed, 0 destroyed.

That’s it! We’ve created two new users in our Azure AD tenant with a module that can be shared across templates to create one to many users.
A Magic Revelation
By: Ani Vidrine
Tags: Personal Growth, Appreciation, Love, Poetry, Kindness

Poems From The Porch

photo by Mert Talay on Unsplash.com

Pink, purple, and lavender sky

Flame dancing within the votive,

yellow and green

A magic revelation of the sun rising red

illuminates coral trees, only briefly

What wonders await the waking of the day?

Hello jay, grey and blue.

Good morning, snuggly kitty.

Just to love

Just to love this

Letting go of the need to be or do anything else

The judging mind likes to compare and find fault,

within and without,

denying the sufficiency

of the ever-immediate now.

The restless mind seeks solace

in stories of villains and victims,

victorious never to be.

For victory would assume that one can win as another loses,

a fallacious fantasy of freedom.

One’s loss is not another’s gain because

we are one living organism

expressing Love’s affection.

Does not the body hurt when a toe is lost?

Villainous toe.

He had it coming.

Look how he crowded out the appendage next to him.

Not to be tolerated.

Lop him off.

And what about the colon

reveling in the heart’s glory,

feeling shitty and loathsome

when admiring the pump of life churning?

Nasty, noxious narratives

notoriously serving no one.

A common error when

appearance is mistaken for Essence.

Have you surmised and supposed the remedy for this folly?

It is right before your eyes,

and yet within your hearing,

felt and tasted here and now.

Appreciation accessed

amends judgment applied.
Role of Food Delivery Management Software amid Covid-19
By: James Smith
Tags: Software, Covid 19, Delivery, Food, Management

The world is hit by a pandemic condition as millions of people are affected due to coronavirus. It has also hit businesses global and economic extension. No matter the circumstances, food continues the essential requirement of every person thus, the food industry has continued its assistance through food delivery applications.

Food Delivery Software comes to the salvation of the consumers and all the people trading in the food industry by engaging them to deliver food things to consumer doorsteps. Along with reducing the hassle Restaurant Delivery Software is running unstoppable amid the constant peril of being poisoned by corona-virus.

In the stressful condition of Covid-19, restaurant management delivery software has witnessed a huge jump in the number of consumers and is expecting a large turnover in near future. Statistics and data possible have exhibited a brisk increase in the number of downloads of Food Delivery APPS during disasters. This can be because there are numerous people who are staying separate, away from their relatives and some are inadequate to prepare food and are employing this assistance.

Thus, numerous entrepreneurs in the food business are using food delivery software for enhanced performance. Food Management Delivery Software acts as an aggregator by attaching a restaurant point of sale system (POS) with third-party online ordering answers.

It streamlines and automates the online order system by connecting the gap between the POS system and third-party delivery management. This assistance can be availed by all the pros of the food business like small and big restaurants, coffee shops, food chain outlets, etc.

Thus, we can terminate that Food Delivery Software has enhanced the lifeline of people throughout the world. With the increasing panic of Covid-19, incoming critical stages of coronavirus extent demand for online food delivery applications will additionally trigger. Hence, it is the best opportunity to apply the specialists and Food Management Delivery Software to raise profits and keep delivery food reliably even in the clutches of Covid-19.

Read Here: How to Improve Software Delivery Quality
비트코인, 이더리움, 리플 프루닝 비교
By: Jingyeong Jeong
Tags: Planet, Ripple, Blockchain, Ethereum, Bitcoin

in In Fitness And In Health
How to create a wallet for your SET tokens
Tags: ICO, Ethereum Wallet, Blockchain, Ethereum, Hsm

How to create a wallet on your desktop

To create a wallet on your desktop we advise you to use Google Chrome with the extension MetaMask. Follow these simple steps:

Go to the MetaMask website: https://metamask.io/

Select the MetaMask extension for Google Chrome (also available Firefox, Opera and Brave) and install it.

A new icon will show up in your browser on the top right with a small fox (MetaMask logo). Click on it and accept the privacy notice.

Create a password. Make this a strong password using letters, numbers, and special characters. If you feel unsafe about remembering it, write it down on a piece of paper and store it safely (DO NOT save it on your computer though).

After that MetaMask creates your wallet and you are presented 12 words that seem very random. These words are a simplified way to remember your private key. Write them down on a piece of paper (DO NOT STORE THEM ON YOUR DEVICE). These words are the key to your assets, handle them like you would handle your most valuable thing. Never lose them or give them to anyone else.

In case you lose your password or use a different computer or wallet service, you can use these 12 words to restore and access your wallet.

Congratulations, you have just created a safe vault for your SET tokens to be stored in.

To participate in the SET token sale you need to provide us with your public address. We will now show you how to obtain that address:

Open MetaMask:

This public address you can share for any purpose (participating in an ITO, receiving funds or tokens), there is no danger to it.
5 Tips for Mobile App Design
By: Design Studio
Tags: Customer Experience, UI Design, Customer Engagement, Mobile App Design, UX Design

With everything going mobile — from reading books to buying groceries to finding a life partner — it is evident that mobile design is part of the big party headed for the future. So, it is necessary for creators and businesses alike that they know the tricks to make their products appealing. And ‘appealing’ here does not simply refer to looks or offers. It is the complete user experience that will determine whether your customer’s relationship with your application is a fling or for the long run.

We have listed down 10 tips to help you make your mobile app worth having a successful relationship with your customers. We will start right from the basics, so that you have everything ready to start your next mobile application project.

However, considering that the list just got quite long and the fact that people tend to get bored while reading long articles (well, I do), we have split the list into two parts with 5 tips each. Here goes the first one!
Data Manipulation With Python Pandas
By: Olufunmilayo Aforijiku
Tags: Pandas, Data Science, Data Analytics, Data Manipulation, Data Analysis

Photo by Sophie Elvis on Unsplash

Data has to be manipulated and cleaned so that it can provide useful insights. Data manipulation is a necessity as there is an increasing amount of data being stored and used.

This article explains some of the data manipulation operations that can help with organizing our data and extracting useful insights.

Pandas, as explained here, is an open-source python library that implements easy, efficient, high-performance data analysis tools. Pandas provide efficient access to data wrangling/munging tasks that occupy almost 80 percent of a data scientist’s time. There are different ways to store data for analysis: rectangular data or tabular data containing rows and columns is the most common form.

Tabular data is represented as a Dataframe object in pandas. Every value within a column of the Dataframe has the same data type, either text or numeric but different columns can contain different data types. Dataframes can be created in various ways, like passing in a dictionary, list of lists, reading from a flat-file such as CSV.

How to Install, import pandas, and explore the data has been shown here.