teleren/devto huggingface dataset:
Connect Four in JavaScript (video)
Tags: javascript, javascriptgames, tutorial
Published: 2021-03-30 16:42:31

A retro grid-based game in vanilla JavaScript, HTML and CSS

Connect Four (also known as Four Up, Plot Four, Find Four, Four in a Row, Four in a Line, Drop Four, and Gravitrips (in Soviet Union)) is a two-player board game in which the players first choose a color and then take turns dropping one colored disc from the top into a seven-column, six-row vertically suspended grid. The pieces fall straight down, occupying the lowest available space within the column. The objective of the game is to be the first to form a horizontal, vertical, or diagonal line of four of one's own discs.

What are we going to focus on?
- for loops
- Array work
- onclick()

Rules of Connect Four
- You will start as player One
- You will take your go as player One
- You will not be allowed to go in squares that are not at the bottom of the grid, or do not have a taken square under it
- Once your go is taken and you did not win, It will be player Two's go
- The gamer will continue until a winning combination of four is reached by player One or player Two, or until the grid is full and no winning combination was found.

{% youtube aroYjgQH8Tw %}

________

Links:
- GitHub Repo: https://github.com/kubowania/connect-four

- In this video I use Tabnine as my A.I autocompletion tool. You can download it for free here: http://bit.ly/tabnine-free

- If you would like to buy me a coffee, well thank you very much that is mega kind! : https://www.buymeacoffee.com/aniakubow

-Sign up for weekly coding tips from my newsletter partnership: https://bit.ly/JS-tips

I would love to see what you made so please tag me :
Twitter: https://twitter.com/ania_kubow
Instagram: https://www.instagram.com/aniakubow

Oh and please do Subscribe and hit that bell button! It would mean a lot to me and motivate me to make more videos for you all!

#javascript
#javscriptGames
FreeBSD on Discord
Tags: freebsd, zfs, dtrace, embedded
Published: 2021-03-30 16:41:35

FreeBSD on discord: https://discord.gg/vDFeUc7EqQ

FreeBSD is an amazing operating system with a lot of great features presented in simple ways compared to other free/open source OSes. 

Native support for the most advanced file system ever created, [**OpenZFS**](https://en.wikipedia.org/wiki/OpenZFS) right out of the box! Plus [**Dtrace**](https://en.wikipedia.org/wiki/DTrace), one of the best debugging tools out there. And it also has [**Jails**](https://en.wikipedia.org/wiki/FreeBSD_jail), the gold standard in secure containerization. All of this AND MORE™! with an interface familiar to Linux/Unix users as they share many of the same userland utilities!

FreeBSD has these and more in a tiny footprint that runs on a Raspberry Pi Zero, yet performant and scalable enough to run one of the largest content delivery networks in the world.

Curious about FreeBSD? Then please join the discussion over on Discord! We'll happily answer any questions you may have :)

https://discord.gg/vDFeUc7EqQ
iRead | Where Dynamic Ideas Find You
Tags: django, blog, webdev
Published: 2021-03-30 16:33:33

iRead is an open platform where readers find dynamic thinking, and where expert and undiscovered voices can share their writing on any topic.

Currently we support the following features :

* Authentication and Authorization with OTP Verification
* Social Login with Google OAuth2
* CRUD on User's Profile
* CRUD on Blog Posts
* Rich Text Editor(using CKEditor) with Media Files Storage(using Cloudinary)
* Search Blogs
* Categories and Tags Filters
* Like/Dislike/Comment/Reply/Share on Blog Posts
* Follow/Unfollow Users
* Notifications on new followers/likes/comments
* Twitter Bot to tweet about posts published on website as well as retweet and like user's post (if they share it on Twitter)
* Bulletins(Newsletter) Subscription/Unsubscription
* Payment Integration using Paytm and Razorpay

Tech Stack : HTML, CSS, Javascript, Django

The blog is not only for technical blogs only, it can feature posts from any categories.

Website Link : https://iread.ga
Github Link : https://github.com/ashutoshkrris/iRead
Demo Video : https://youtu.be/jLdJnVgpV8U
Facebook : https://facebook.com/ireadblog
Twitter : https://twitter.com/iReadBot

Support my new blog, please.
The quality that I admire
Tags: stevejobs, leekuanyew, codequality, leadership
Published: 2021-03-31 15:45:01

---
title: The quality that I admire
published: true
date: 2021-03-30 16:29:58 UTC
tags: stevejobs,leekuanyew,quality,leadership
canonical_url: https://victorleungtw.medium.com/the-quality-that-i-admire-db5793cd4523
---

The quality I admire is leadership. Steve Job is one of the most successful entrepreneurs. His story is inspiring, not just because he founded the company Apple, but also the way he overcame all the obstacles and disrupted industries with iPhone.

He is a charismatic leader with millions of followers around the world to buy Apple products. He has great presentation skills to demo the products. He dared to drop out of college and made decisions that he thought it’s right. He was able to follow his curiosity and intuition to study calligraphy which affects the design of the first Macintosh computer.

He had a vision of the future and figured out what to do with his career and did what he loves. Pixar is one of the most successful animation studios that he founded and his great work came from his ability to do what he loved. He had the philosophy to make big life decisions and be an independent thinker.

Lee Kwan Yew is another person that I most admire. His leadership made Singapore a better place for the people. It was a difficult time in the beginning, but he took the responsibilities for his people. He overcame all the struggles and time has proved that his vision was right.

He contributed to generations of people in Singapore with a better standard of living. He was inspiring and gave great speeches. He dedicated his life to the country and people are proud of him. He led the change in uncertainty and he was a capable man with the charisma to do so. He is a legendary figure and he is influential. He was determined and sincere.

His leadership brought the independence of Singapore and fought with the dark forces and crises. He faced an alive or dead situation and he had the courage and instincts to overcame these. He stood up and fought against the communist party at that time with his political skill. He built trust and credibility during the crises. I wish to have the qualities of these two great men to build a better world for other people.

_Originally published at_ [_https://victorleungtw.com_](https://victorleungtw.com/the-quality-that-I-admire)_._
HUGO (also I move away from dev.to to github pages)
Tags: webdev
Published: 2021-03-30 16:14:01

Welp, I finally took my time to look into [HUGO](https://gohugo.io/) - a static website generator. This thing is amazing!

Just out of the box it already has the capability to turn markdown files into html, with syntax highlighting included; but it can do a whole bunch more. Custom themes, custom templates, custom everything.

Hence I plan to move away from dev.to to self-hosting - first on github pages, then maybe somewhere else if I feel the need. Right now I already got [a website](https://mike239x.github.io/) with github pages, but it is not using hugo - I am yet to set up CI and move my posts from different places into one - so far I got [the repo](https://github.com/mike239x/mike239x.github.io-source) for that with posts cloned from dev.to.

Two main reasons to move to self hosting: first - I can do more stuff, for example I can integrate any javascript I want, such as [p5.js](https://p5js.org/) sketches; second - I can post different content together - dev.to is kinda limited to IT-related things, so I can't post here something on how much I enjoyed some anime, or record some weird dream of mine.

One thing I would lose would be human interaction - no more comments / likes / content from other people - however, I feel like nothing of value is lost, I was using this site to express myself more than anything else.

What else to say... Nothing really. So long, and thanks for all the fish.
How To Find Your PASSION With One Simple Step
Tags: passion, hobbies, career, goals
Published: 2021-03-30 16:07:18

If you are struggling to know what your passions, never really into hobbies or you find each day kinda becoming the same then this video is going to be great for you.

I explore a very simple step to address the issue of not knowing what your passion or goals are and how to break free so you can be the best version of yourself.

{% youtube NufS0qtbJPw %}

Please subscribe on YouTube if you like this sort of content:
[How To Find Your PASSION With One Simple Step ](https://youtu.be/NufS0qtbJPw?sub_confirmation=1)
stack in python using LinkedList or List
Tags: python, stack
Published: 2021-03-30 15:56:43

![stack image] (http://bluegalaxy.info/codewalk/wp-content/uploads/2018/08/stack.jpg)

1. Stack is a **type of data structure**. They are preferred over arrays or lists due to their fast insert and delete operations. 
2. Stack works on the **last in first out** (LIFO) principle i.e insertion and deletion happens at only one end.
3. stack has an **O(1) time complexity for pop or push operation**.

look at the code below to understand how to implement stack on our own and how to use it.

**Note:** We can implement a stack using LinkedList or lists in python. Both implementations work fine and have the same time complexities for all the operations but I prefer implementing them using a list because it's much easier.

# stack using list

```python
class stack:
    def __init__(self):
        self.data = []

    def push(self,elem):
        self.data.append(elem)

    def pop(self):
     try:
        popped_item = self.data.pop()
        return popped_item
     except IndexError:
        print('Stack Underflow')

    def peek(self):
     try:
        print(self.data[len(self.data)-1])
     except IndexError:
        print('No elements in stack')

    def size(self):
      return len(self.data)

my_stack = stack()
my_stack.push('1')
my_stack.push('2')
my_stack.push('3')
print("data:", my_stack.data, "size:", my_stack.size())

```
## Output
```python
data: ['1','2','3'] size: 3

```

# stack using LinkedList

```python
class node:
  def __init__(self,val):
    self.val = val
    self.next = None

class linkedListStack:

  def __init__(self):
    self.head = None

  def push(self,val):
    if (self.head == None):
      self.head = node(val)
    else:
      new_node = node(val)
      new_node.next = self.head
      self.head = new_node

  def pop(self):
    if (self.head == None):
      print('Stack underflow')
    else:
      popped_val = self.head.val
      self.head = self.head.next
      return popped_val

  def peek(self):
    if (self.head==None):
      print(None)
    else:
      print(self.head.val)
  
  def display_stack(self):
    dummy = self.head
    while(dummy):
      print(dummy.val,end=" <- ")
      dummy = dummy.next

lls = linkedListStack() 
lls.push(1)
lls.push(2)
lls.push(3)
lls.push(4)
lls.pop()
lls.peek()
lls.display_stack()
```
## Output
```python
3
3 <- 2 <- 1 <-

```
Day 91 Of 100DaysOfCode: Word Tokenization with NLTK
Tags: womenintech, codenewbie, 100daysofcode, womenwhocode
Published: 2021-03-30 15:39:04

This is my 91st day of #100daysofcode and #python learning journey. Talking about today's progress I did write one blog and push the blog on GitHub. Did some code on random topic.

Like usual today also keep learning from Datacamp chapter Natural Language Processing regarding to the topic Word Tokenization with NLTK.
#code
```python
# Import necessary modules
from nltk.tokenize import sent_tokenize
from nltk.tokenize import word_tokenize

# Split scene_one into sentences: sentences
sentences = sent_tokenize(scene_one)

# Use word_tokenize to tokenize the fourth sentence: tokenized_sent
tokenized_sent = word_tokenize(sentences[3])

# Make a set of unique tokens in the entire scene: unique_tokens
unique_tokens = set(word_tokenize(scene_one))

# Print the unique tokens result
print(unique_tokens)

```
<blockquote class="twitter-tweet"><p lang="en" dir="ltr">Day 91 Of <a href="https://twitter.com/hashtag/100daysofcode?src=hash&amp;ref_src=twsrc%5Etfw">#100daysofcode</a> and <a href="https://twitter.com/hashtag/Python?src=hash&amp;ref_src=twsrc%5Etfw">#Python</a> <br>Word Tokenization with NLTK From [DataCamp](<a href="https://t.co/b2X089pkqc">https://t.co/b2X089pkqc</a>)<a href="https://twitter.com/hashtag/WomenWhoCode?src=hash&amp;ref_src=twsrc%5Etfw">#WomenWhoCode</a> <a href="https://twitter.com/hashtag/CodeNewbie?src=hash&amp;ref_src=twsrc%5Etfw">#CodeNewbie</a> <a href="https://twitter.com/hashtag/100DaysOfCode?src=hash&amp;ref_src=twsrc%5Etfw">#100DaysOfCode</a> <a href="https://twitter.com/hashtag/DEVCommunity?src=hash&amp;ref_src=twsrc%5Etfw">#DEVCommunity</a> <a href="https://t.co/xBLjPrnUT6">pic.twitter.com/xBLjPrnUT6</a></p>&mdash; Durga Pokharel (@durgacodes) <a href="https://twitter.com/durgacodes/status/1376919163210407938?ref_src=twsrc%5Etfw">March 30, 2021</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
.NET for Beginners #1 - What is ASP.NET?
Tags: dotnet, aspnet, beginners, csharp
Published: 2021-03-30 15:39:02

# Introduction

This is my first article and I hope it will be the first of many.
In this article I will start a series on ASP.NET for beginners, what I have noticed lately is that there is a lot of content available on technologies involving Javascript and its infinite frameworks, however when it comes to the .NET platform maybe what there are only mentions about it, you just have to search on your favorite programming channels and blogs.

Thinking about it, I decided to create this series to help spread the knowledge about this solid and updated technology that has behind it none other than Microsoft, the owner of Windows.

So without further ado, let's get straight to the subject of the post, which is an introduction to the content that I will be producing in this series.

# What is ASP.NET?

It's an open source web framework for building fast and secure web apps and services within .NET platform.

ASP.NET is also cross platform which is one the your biggest draws, which means you can run it on Windows, Linux, Mac OS, basically anywhere.

So this will allow you to build your ASP.NET web apps on any operating system, make websites with HTML, CSS or Javascript an build these web services to be used by your site or in mobile apps.

You can also turn your site sign into popular third-party apps for authentication like Microsoft, Google, Twitter and more.
ASP.NET lets you make your web pages with a language called Razor. Razor cool because it's just HTML and C#.
So you can type HTML and then type an at-sign and start writing C#.
We'll see some cool examples of this in this article series.

Best of all, ASP.NET is absolutelly free and if you're a student or doing open-source, Visual Studio is also free.
In fact, everithing we're going to show you is free and all of .NET, C#, and ASP.NET is open source and the code is avaliable on GitHub for you to read or learn from.
So if you're just finding this post and you're not familiar with C# or .NET, no worries because its merely first post of the a articles series.
In the next post we will build our first ASP.NET site.
   
All the covers of the post will bring the photo of an animal in danger of extinction from the Americas, in that first, you can see the Jaguar.

Before being in danger of extinction the jaguar was seen from the South of the United States of America to Argentina, now that its territory has been reduced, we can still find some in Brazil and Mexico although they are very rare, this animal is officially extinct in the rest of the United States.

Cover author: [Uriel Soberanes](https://unsplash.com/@soberanes)

Thanks for reading!🙋🏻‍♂️ Follow me on [Github](https://github.com/zangassis)
Gitting students started!
Tags: github, git, education, classrooms
Published: 2021-03-30 15:35:09

>We love programming, we love trying out new stuff. GitHub frees us from having to manage lots of different systems so we can focus on teaching and sharing that joy with our students.

As [Associate Degree of Computer Programming](https://www.howest.be/nl/opleidingen/graduaat/programmeren) at [Howest University of Applied Sciences](https://www.howest.be/en) we've had the privilege of being
featured in the [GitHub Customer Succes Stories](https://github.com/customer-stories/howest).

The last couple of years our team has been focussing on updating and tweaking our program. Aligning with the current needs of the industry and pimping our course materials throughout the program.

*Git*, in combination with *GitHub*, has become essential in our hands-on approach to teaching. We cover the **_Git basics_** at the very beginning of a student's journey in becoming full-fledged programmers.

At the same time their, very first typical, "Hello Universe" introduction repositories are handed out via private repositories powered via [GitHub Classrooms](https://classroom.github.com/).

From that point forward nearly all course work is submitted through GitHub. GitHub has become the center for everything students and teachers do at the Associate Degree of Computer Programming.

A huge benefit of using GitHub *(via GitHub Classrooms)* to distribute and manage examples, exercises and assignments is that instructors can more easily provide feedback on students’ code.
And this while using the same tools that professionals use on a day-to-day basis.

Not only does this make troubleshooting a whole lot easier, students that have a question or require some help with a particular piece of code can open up a pull request for review from a teacher or fellow student.

## Some statistics:
* We make use of 19 GitHub Organizations *(1 for each of the course modules)*
* 260 students actively participating and loving the experience
* 15 lecturers in support *(huge fans!)*
* Each semester we total over 9k repositories
* All individual and group assignments and exams were distributed via GitHub Classroom without any issues.
* Git push, pull but also intensive use of branching, project boards & GitHub Actions *(builds, unit tests)* for our workplace related modules – all streamlined!

#### Looked into GitHub Classrooms but didn't find your way round? Or just want to check the possibilities? 

Feel free to contact us, we'll gladly share our way of working!
And who knows, maybe some wicked interdimensional open source projects might be possible as well.

Greetings,
Proud GitHub Champions!
Miniature IoT plant-care project step 1: procure components
Published: 2021-03-30 15:13:02

At the moment, I am taking a course on internet of things. One assignment is to set up an automated system for home use. I want to do something with plants and I have been curious about Adafruit for a long time, they have lots of cool hardware. A while ago I saw that they have a guide and components to make an automated system for a self-watering plant, so that is what I will be doing.

You are welcome to join in, I list the guide and the components below. I would like to be finished in late May. You could also just tag along for the ride, I will post some updates about the project. 

##Ingredients - the components you will need
1 x Adafruit Bonsai Buckaroo
2 x Small Alligator Clip Test Lead
2 x Nail to measure resistance
1 x Adafruit CLUE - nRF52840 Express with Bluetooth LE 
1 x Battery pack or USB cable to plug into another power source, unclear yet
1 x Submersible 3V DC Water Pump
1 x Tube for the water, 6 mm diameter, length unsure
1 x Water container with some kind of lid
1 x Plant 

It is cheaper to use a BBC micro:bit instead of the CLUE, I chose Clue because it has a screen as well. This is a test project, there are problems with having nails in soil like this overtime when they corrode and might damage the plant. I have no plan for that but I intend to look into it more.

##The guide
First, there are some components via the link below and what they do and then there is a guide below that. You can buy most of the stuff on that page as well, but you could of course use some components from somewhere else. [Adafruit Bonsai Buckaroo Plant-Care guide](https://learn.adafruit.com/adafruit-bonsai-buckaroo?view=all)
Andorra ya no es solo el país de los Pirineos, por Xavier Mitjavila
Published: 2021-03-30 15:31:39

---
title: Andorra ya no es solo el país de los Pirineos, por Xavier Mitjavila
published: True
description: Willyrex vive en Andorra, The Grefg se trasladó en 2018 y El Rubius acaba de anunciar que también se instala. No son los únicos y la razón es muy simple.
cover_image: https://static1.ara.cat/clip/7d016172-f0dd-43e0-85fe-e1c0f8994a31_16-9-aspect-ratio_800w_0.png
---

Hace unos días hablaba del gran éxito de audiencia que tenía The Grefg, un joven creador de contenidos digitales dirigidos a los adolescentes. No es el único. Otros de su generación como Rubén Doblas, más conocido como El Rubius, o bien Guillermo Díaz, que se hace llamar Willyrex en las redes, también han conseguido grandes audiencias. El Rubius, por ejemplo, cuenta con 39,5 millones de seguidores.

Pues bien, esta semana ha sido agitada para todos estos chicos. ¿La razón? Willyrex vive en Andorra, The Grefg se trasladó en 2018 y El Rubius acaba de anunciar que también se instala. No son los únicos y la razón es muy simple. En Andorra, aparte de encontrar pistas de esquí que no se pueden terminar, sólo tienen que pagar el 10% de impuestos por sus rentas. La diferencia entre este 10% y el casi 50% que aproximadamente pagaban en España es, pues, enorme. Andorra está convirtiendo en "El país de los YouTubers" en lugar de "El país de los Pirineos".

Las críticas no han tardado en llegar y muchos de sus seguidores consideran que ética y moralmente estos traslados fiscales son reprobables. No seré yo el que diga que está bien lo que hacen estos chicos, pero la diferencia para el presupuesto anual de un estado entre varios YouTubers aquí o allá es realmente mínima.

Lo que hace de verdad la diferencia es la fiscalidad de las grandes empresas. Compañías que tienen sus oficinas, fábricas y equipos aquí. Empresas que venden y que ganan dinero en España, pero que instalan una oficina en otros países europeos para comprar y vender sus materias primas y así trasladar de un país a otro los beneficios generados. Y, claro, los otros países pagan menos impuestos que en España.

De eso algunos lo llaman estrategia fiscal corporativa. Yo lo llamo dumping fiscal aceptado entre socios europeos y es mucho más grave que cuatro Youtubers más o menos egoístas.