teleren/devto huggingface dataset:
Benefits of Blitzscaling: The Winner-Takes-All Growth Strategy
Published: 2021-12-07 23:19:40

In the wake of his stunning 13-second victory at UFC 194 in December 2015, Conor McGregor was at the top of the mixed martial arts world. His rapid ascent to the throne was all about speed. 
McGregor -- a formidable self-promoter on the mic -- talked his way into a title shot quicker than many felt he deserved—skipping other contenders along the way. In under three years, the former plumber had become a multimillionaire world champion and was now the unstoppable force that everyone wanted to catch.
There is a similar gung-ho strategy in the business world known as blitzscaling. When done successfully, blitzscaling is a catalyst for rapid growth that enables you to capture and dominate a massive global market. 
And, when you understand the benefits of blitzscaling, you can learn what you can gain when you throw the standard business roadmap out the window. Plus, explore why fast-growing startups take the risk and see if your business should risk it, too.

What is Blitzscaling?

Blitzscaling is an accelerated growth strategy that digital businesses in uncertain markets can use to rapidly expand and capture the market. By prioritizing speed over efficiency, blitzscaling gives companies the first-mover advantage, overwhelming all competitors before they can react. 
A perfect example of blitzscaling is the hospitality startup Airbnb. When a German copycat with a $90 million war chest and a 400-strong team sought to corner the European market, Airbnb had only 40 employees and $7 million. Everything was on the line, so Airbnb struck hard and fast. The American company opened 10 offices in Europe, hired hundreds of employees, and won the battle within three months. 

What Are The Origins Of Blitzscaling?

The concept of blitzscaling was created by LinkedIn co-founder Reif Hoffman. In the book he co-authored with Chris Yeh, Hoffman explains that “the objective of blitzscaling is not to go from zero to one, but to go from one to one billion—as quickly as possible.”
The moniker has roots in the German war strategy, blitzkrieg, which literally means "lightning war." Despite the unfortunate connotation, the World War II military tactic was undeniably successful. 
The German army was able to take opponents by surprise because their soldiers only took the bare essentials. They could move quickly and make snap decisions without encumberment from excessive supplies and overplanning.
Hoffman asserts the same mentality in business can help you blow competitors out of the water. When faced with fierce competition, the company that gets an early edge often takes control of the marketplace. As such, he believes that blitzscaling is the secret to building a massively valuable technology company.
Day 492 : Same Folks
Tags: hiphop, code, coding, lifelongdev
Published: 2021-12-07 23:15:29

_liner notes_:
- Professional : Pretty good day today. Got to get a lot done with my demo. It's going a little slower because my application is based on another application that I had no hand in creating. I'm just adding some Web Components to extend the functionality.  So far, I got everything working, but there is one little issue on a page where for whatever reason the page gets longer where the scrollbar shows up and throws things off even though there's nothing there to make it longer. I'll have to figure it out tomorrow and finish up some styling. Also had a couple of meetings. Not a bad day.

- Personal : So I started working on that new side project for the event that if you deploy your project to a host will donate money to organizations helping get underrepresented people into tech. I'm one of these same folks that got opportunities to get involved because of programs like these. Got quite a bit done. I set up the project, added some pages, did a little styling, set up an account with the hosting company, linked up my GitHub account, pushed my code to a repo and it got deployed to a website. Pretty cool and painless! Felt good and then watched the final episode of the first season of "Cowboy Bebop". Looking forward to the next season. They did a good job setting it up.

![A dirt trail in a forest in Garibaldi Lake, BC, Canada with some fallen trees on the ground and sun rays shining through the tree leaves.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gryuaccrfnkk0y17ihid.jpg)

Hoping to be as productive on the side project tonight as I was last night. If I am, I may even finish the project! I'm going to have to remember what I did for the demo I did a year ago. haha Going to eat dinner and get started working.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube NoLzPumZyrY %}
How to change the url of a remote git repo...
Tags: git, beginners
Published: 2021-12-07 22:53:52

Hi all,

I recently got myself into the situation where all my local git repos had the wrong remote addresses.  This was caused by a change up on our git account.  

You can see the url that git is currently using by opening the 'config' file in the .git folder.  You'll see it under the '[remote "origin"]' section.

Luckily this is pretty trivial to fix.  You can either update the url directly in the config file, or run the following command...

```javascript
git remote set-url origin new.git.url/xyz
```
Destroyer
Tags: python, portfolio, beginners
Published: 2021-12-07 22:34:03

Destroyer is a console game I made for my codecademy CSC 101 final project. It is very similar to the game battleship. It uses 2D list to represent the board classes and objects to organize and simplify the code. I know it's sloppy, and I'm sure more experienced devs will look at it like what is this, but it works well and I'm happy that I made it 😀

https://github.com/JamesBirni/PythonPorfolioProjectTerminalGame

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fxs8vgszo2ssojtid0u6.png)
Understanding Asynchronous in javascript
Tags: beginners, javascript
Published: 2021-12-07 22:32:36


Let's me explain with a simple example:

```js
console.log('First log');
console.log('Second log');
console.log('Third log');
```

As we can see, every line of code will waits for previous line to complete execution before execute next line. this is called with synchronous.



Here another example:

```js
console.log('First log');
setTimeout(()=>{
    console.log('Second log');
},2000)
console.log('Third log')
```

> setTimeout function will wait for milisecond time that set in second argument and executes anonymous function in the first arguments

```js
First log
Third log
undefined
Second log
```

As we can see, Third log does not wait for Second log to execute, the method of not waiting for the previous code to complete is called asynchronous.

### When we need asynchronous ?

The best way to use asynchronous is when your website working with server to fetching data or getting response, instead of waiting all data from server fully loaded that maybe takes more than one minutes (depend on speed of your internet and server speed to resolve request) you could use asynchronous to make sure that code ahead will execute and javascript will not waiting server response to complete.
If else return break best practices
Tags: programming, productivity, codequality
Published: 2021-12-07 22:30:31

Do not write:

```
func () {
    if (something)
        return true;
    return false;
}
```
Instead write:
```
func () {
    if (something)
        return true;
    else
        return false;
}
```
Do not write:

```
func () {
    while (somehing)
        if (somethingelse)
            break;

}
```
Instead write:
```
func () {
    while (somehing)
        if (somethingelse)
            return;
}
```

These are my current best practices, what do you think?
Solving day 7 of Advent of Code 2021 in JavaScript
Tags: challenge, adventofcode, javascript, video
Published: 2021-12-07 22:22:33

---
title: Solving day 7 of Advent of Code 2021 in JavaScript
published: true
description: JavaScript walkthrough of Advent of Code 2021 (day 7)
tags: challenge, AdventOfCode, javascript, video
series: Advent of Code 2021 in Javascript
---

{% youtube G_e8wY7GgOY %}
Advent of Code 2021 - Day 7
Published: 2021-12-07 22:09:34

---
title: Advent of Code 2021 - Day 7
published: true
description: In this video series, I try to challenge myself with the Advent of Code trials. Each solution will be published to Github, and I hope you will learn something from my coding mistakes and perhaps send some code my way on how you have done these challenges. I know by reading code, so this is such an exciting thing for me.
tags:
cover_image: https://i.ytimg.com/vi/wEveMffVkkQ/maxresdefault.jpg
---

{% youtube wEveMffVkkQ %}

In this video series, I try to challenge myself with the Advent of Code trials. Each solution will be published to Github, and I hope you will learn something from my coding mistakes and perhaps send some code my way on how you have done these challenges. I know by reading code, so this is such an exciting thing for me.
Tuesday’s Tip – Join the Conversation: Discord for Developers
Tags: tuesdaystip, community, discord
Published: 2022-02-09 23:24:12

---
title: Tuesday’s Tip – Join the Conversation: Discord for Developers
published: true
date: 2021-12-07 21:40:50 UTC
tags: TuesdaysTip,community,discord
canonical_url: https://www.30minuteproject.com/2021/12/07/tuesdays-tip-join-the-conversation-discord-for-developers/?utm_source=rss&utm_medium=rss&utm_campaign=tuesdays-tip-join-the-conversation-discord-for-developers
---

1. [Programmer's Hangout](https://discord.com/invite/programming) - General programming community
2. [The Coding Den](https://discordapp.com/invite/code) - Another general programming community
3. [CodeSupport](https://discord.me/codesupport) - Get support for your coding efforts
4. [Buildspace](https://discord.com/invite/vPmqZqgpsS) - Get started with web3

Here are some more detailed lists that include some language-specific Discord servers (sadly some of the servers in these lists no longer seem active):

[Top 10 Discord Servers (Devsurvival)](https://www.devsurvival.com/top-10-discord-servers-for-developers/)

[Discord Servers for Programmers (HiveIndex)](https://thehiveindex.com/topics/software-development/platform/discord/)

Sign up for my mailing list and get your free ebook

"The 30-Minute Project: How to improve Your Side Project Game to Become a Better Developer"
at [30-Minute Project](https://www.30minuteproject.com/contact/)
Heads up: Stackbit integration removal
Tags: meta, stackbit
Published: 2021-12-07 21:32:40

Hey folks, this is a heads up that the special DEV/Stackbit integration [available in settings](https://dev.to/settings/extensions) has stopped working and the reference to it will be removed shortly.

A couple of years ago [we developed an integration that would allow folks to _automatically_ use DEV as a headless CMS for generating a Stackbit site](https://dev.to/devteam/you-can-now-generate-self-hostable-static-blogs-right-from-your-dev-content-via-stackbit-7a5). Making this possible in the first place was a big effort in data portability and trying to ensure DEV was not an all-consuming platform. We continue on this mission, but this specific very custom integration no longer fit the roadmap on either side. 

The specialized integration is going away, but there are *a lot* of ways you can still hook up DEV to continue to act this way. For example, just a few weeks ago @vjnvisakh posted this:

{% link https://dev.to/vjnvisakh/devto-as-a-headless-cms-efb %}

This was one of the few remaining bits of code that is super specialized for DEV. User-friendly integrations like this will return in a more generalized form in the future, in the meantime there are plenty of ways to use the API and existing tools to interact with DEV.

You've probably noticed several deprecations lately. It's all in a larger effort to put more resources into the core functionality and make room for future extensibility. Of course, [everything we do is open source via Forem](https://github.com/forem/forem) and free to use. We look forward to continued collaboration with the whole community.
Action Paniker - Stimulate your senses physically when your build fails 🚨
Tags: actionshackathon21, opensource, iot, showdev
Published: 2021-12-07 21:22:10

## Action Paniker in Action

{% youtube WbnPjqsQJnQ %}


## Motivation

Sometimes in OpenSource Projects that are huge, the deployment takes a lot of time, and we do not bother to keep waiting for that much amount of time to ensure that the build/release of our project has been successfully deployed. 

Some OpenSource projects are critical, that is, the builds and release are very crucial and makes a great impact, if something goes wrong in these CI, the maintainer must be notified immediately.

Hence Action Paniker, it sits nicely on your desk, and it will light up and make alarm sounds stimulating your physical senses if your release or build fails, physically asking you to _"Something went wrong! Please look into it ASAP!"_. Its the much wanted **CODE-RED** Bell that any maintainer team would want. 



### Flow of the Workflow

The flow of the workflow is simple:

1. GitHub action runs
1. If any step fails, the GitHub Action sends a CURL to the paniker at your desk and its going to light up and buzz simulating your physical senses and indicating your build/release has failed when you are away from your desk.
1. The steps are well defined in the Repository Readme, you need an RaspberryPi, LED and Buzzer and some cardboard as hardware components and ofc some patience! 

- The circuit diagram of how the Hardware is setup

![Circuit Diagram](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/marojexwthdg9ih9nnkb.png)
 

- An enclosed box of all the components

I am aware it doesn't look appealing, and its done intentionally, so that I can pray that my build/release never fails :P

![Paniker](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ej8zje08fq9p85rc8pwr.png)
 

### Submission Category: 

Interesting IoT


### Yaml File

I have added 4 different YAML's to choose from:

- Android Release
- Rust Release across Linux, Windows and MacOS
- Golang Release across Linux, Windows and MacOS
- Publishing Hugo website on GitHub Pages

But it's not limited to these 4 workflows, you can essentially integrate this with anything that follows the following in any workflow file:

- every step has an `id`
- `continue-on-error` is set to `true` for every step
- the `Send Paniker` step is inclusive of all step outcomes in the if condition

```yaml
   - name: Send Paniker
      if: steps.stepID.outcome != 'success' # Replace Step ID with your stepid 
      run: curl http://YOUR_IP:3000/panik 
```
### Source Code

{% github DarthBenro008/gh-release-paniker %}


### Additional Resources / Info

Some of my personal open source projects that are using this workflow are:

- [rChore](https://github.com/DarthBenro008/rchore)
- [gunfollower](https://github.com/DarthBenro008/gunfollower)
Create a DOWNLOAD link in a single line of HTML
Tags: webdev, html, beginners
Published: 2021-12-07 21:17:58

As a website user, one would have come across links or buttons which say "Click to download" or "Download"  on a website. Have you ever wondered how can you add one to your website?.  Keep reading!!!. 


As part of this blog let us see how one can create a download link or button which lets you download an asset (e.g. image, pdf, files, etc.).  Do you know what is even more interesting?. This can be done with just a single line of HTML.

### How to create a download link or button in HTML

The simple way to achieve this is 
- create an anchor tag with the text of your choice e.g "Click to download"
- to the href attribute add the path to the URL of the asset you want to be downloaded. In the below example,  I have added a path to an image.
- next comes the more important part, add the* **download ***attribute to the anchor tag.

Yay!!! You have created your download link now.

#### How do I make this look like a button?. 
Simply add some CSS to make the anchor tag look like a button.

``` HTML
<a href="https://blog.kritikapattalam.com/images/click-me.jpg" download>Click to download</a>
```

### Save the file using a custom name

In the above-given example, when the user clicks on download, it will save the file as "click-me.jpg", since that is the file name specified in the href attribute.

#### What about if you want to give it a different name?.
Simply add the name as a value for the download attribute. For example in the below code, I have added **download = test**, hence when the user clicks on download the file will be saved as test.jpg

``` HTML
<a href="https://blog.kritikapattalam.com/images/click-me.jpg" download="test">Click to download</a>
```

#### Can the asset/href value be of a different domain?

NO, they cannot. Download attribute works only for files from the same Origin URL's (i.e the file should be hosted on the same origin as the site you are trying to implement it in) or blob or data URL files.

In the below example, href value is from twitter.com whereas my site is blog.kritikapattalam.com. In this case, the download button will not work.

``` HTML
<!--- Site origin - https://blog.kritikapattalam.com --->
<a href="https://twitter.com/images/click-me.jpg" download="test">Click to download</a>
```

Well, that is it for this blog, and by now you should know how to create a download on your website.

Follow me on  [Twitter](https://twitter.com/KritikaPattalam)  | [LinkedIn](https://www.linkedin.com/in/kritika-p-296739155/) for more web development related tips and posts. Feedbacks and suggestions are welcome.

#### Are you more of a Twitter person?. Then check out the short version of this blog in the below thread.


{% twitter 1414245816064225280 %}
GitFlow: презентация на русском языке (Russian)
Tags: gitflow, git, github, devops
Published: 2021-12-07 21:16:57

Если начинаете внедрять методологию **Git Flow** - рекомендую **презентацию на русском языке**: [https://medium.com/ruopsdev/git-flow-presentation-b80643390888](https://medium.com/ruopsdev/git-flow-presentation-b80643390888)

В презентации есть ссылки на плагины git-flow для IDE (Visual Studio Code, JetBrains IntelliJ IDEA, Atlassian SourceTree) и сравнение с GitHub Flow и GitLab Flow.

> GitFlow - это проверенная классика и простая концепция. А потом если менять, то уж на GitLab Flow, где применяется усложнение в виде дополнительной стабилизации в pre-prod ветке.

Идея, что в develop ветке лежит самый актуальный код для разработки - очевидная и больше соответствует тем подходам в разработке, которые применяются до какого-либо флоу, что облегчает переход на неё с других CVS (Subversion, TFS), где логика поддержки релизов похожа.
Node.js module system + purge the cache for CJS
Tags: node
Published: 2021-12-07 20:58:33

<u>**Follow comments carefully within code source** . A few important assumptions emphasized tho</u> :
- module `.require(d)` **synchronously**
- module cached the very first time it's required : every subsequent require will point to the same module's reference
- not possible to `require()` files that have the `.mjs` extension : attempting to do so will throw an error as it's reserved for ESM

{% replit @projektorius96/working-with-modules %}

---

<u>References:</u>

- [require() algorithm](https://nodejs.org/api/modules.html#all-together)
- [dev.to embedding guide](https://dev.to/p/editor_guide)
XMind 8 (Klasik) Kurulumu
Tags: ubuntu, zorin, xmind
Published: 2021-12-07 20:49:52

https://dl3.xmind.net/xmind-8-update9-linux.zip adresinden indirilen XMind 8 güncel Zorin ve Ubuntu sürümlerinde yüklenirken "libwebkitgtk-1.0-0" paketi ile ilgili hata veriyor.

XMind 8 Update 9 kurulumu için zip klasörünü açtıktan sonra aşağıda ki adımlar izlenebilir.

`sudo add-apt-repository 'deb http://cz.archive.ubuntu.com/ubuntu bionic main universe'
sudo apt-get update
sudo ./setup.sh `


Kurulumdan sonra çalıştırmak için:
`cd XMind_amd64/
./XMind `

Not: XMind 8 Classic, XMind 8 Pro ve ZEN sürümlerine göre daha düzgün dışarı aktarma özellikleri sunuyor.
The Gatsby Changelog Prototype
Tags: actionshackathon21, github, opensource
Published: 2021-12-07 20:35:28

---
title: The Gatsby Changelog Prototype
published: true
description: My submission to the GitHub Actions x DEV Hackathon 2021!
tags: actionshackathon21, github, opensource
cover_image: https://changelog.gatsbyjs.io/og-image.jpg
---

[Instructions]: # (To submit to the GitHub Actions x DEV Hackathon 2021, please fill out all sections.)


### My Workflow
[build-me.yml](https://github.com/gatsby-inc/changelog/blob/main/.github/workflows/build-me.yml)

A scheduled workflow for Jamstack Static Site Generators.


Demo: [https://changelog.gatsbyjs.io](https://changelog.gatsbyjs.io)
Repo: [https://github.com/gatsby-inc/changelog](https://github.com/gatsby-inc/changelog)

You can read all about how I created this workflow and the demo site on the link below: 👇
[Building The Gatsby Changelog Prototype](https://dev.to/pauliescanlon/building-the-gatsby-changelog-prototype-30bn)

---

### Submission Category: 
DIY Deployments

---

### Yaml File or Link to Code

[build-me.yml](https://github.com/gatsby-inc/changelog/blob/main/.github/workflows/build-me.yml)

```yml
name: Build Site

on:
  schedule:
    - cron: '* */12 * * *'

jobs:
  Trigger-Build:
    runs-on: ubuntu-latest
    steps:
      - run: echo "set env using GATSBY_CLOUD_BUILD_WEBOOK"
        env:
          GATSBY_WEBHOOK: ${{secrets.GATSBY_CLOUD_BUILD_WEBOOK}}
      - name: Post to Gatsby Cloud Webhook
        id: rebuild
        uses: fjogeleit/http-request-action@master
        with:
          url: ${{secrets.GATSBY_CLOUD_BUILD_WEBOOK}}
          method: 'POST'
```

---

### Additional Resources / Info
[fjogeleit/http-request-action@master](https://github.com/fjogeleit/http-request-action)