teleren/devto huggingface dataset:
NVIM
Tags: vim, javascript, devops, react
Published: 2022-03-19 03:18:38

```zsh
brew install --HEAD tree-sitter luajit neovim
```

- [vim-plug](https://github.com/junegunn/vim-plug) - A minimalist Vim plugin manager
- [NeoSolarized](https://github.com/overcache/NeoSolarized/blob/master/colors/NeoSolarized.vim) - this is my choose
- [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig) - A collection of configurations for Neovim's built-in LSP
- [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) - [Treesitter](https://github.com/tree-sitter/tree-sitter) configurations and abstraction layer for Neovim
- [nvim-cmp](https://github.com/hrsh7th/nvim-cmp) - A completion plugin for neovim coded in Lua
- [lspsaga.nvim](https://github.com/tami5/lspsaga.nvim) - A light-weight LSP plugin based on Neovim built-in LSP with highly a performant UI
- [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim) - A highly extendable fuzzy finder over lists
- [defx.nvim](https://github.com/Shougo/defx.nvim) - A file explorer
TechGara Minecraft Baixar grátis
Tags: techgara, minecrfat
Published: 2022-03-19 03:16:52

**TechGara Minecraft** é uma marca de mods do incrível site TechGara.Com. Esta é uma página de visão geral dos jogos e aplicativos apk mod gratuitos mais proeminentes hoje.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jaeulsc0yp95p4ty4aym.jpg)

Minecraft Mod APK última versão mais recente hoje

Veja os detalhes em: [https://techgara.com/minecraft](https://techgara.com/minecraft)

A última atualização do Minecraft adiciona alguns novos recursos interessantes! Adora construir e quer mostrar suas criações para o mundo, agora é o momento perfeito para ser atualizado, pois muitas pessoas verão seu trabalho de uma perspectiva totalmente nova. Agora é possível criar blocos em um jogo de renderização 3D, tornando mais fácil do que é possível criar estruturas sem nenhum treinamento formal em arquitetura.! Construtor, mas semper quis mais opções do que apenas sobrevive ou explora enquanto joga Minecraft Os domínios dos jogadores acessam um servidor privado que eles controlam e podem convidar outros para entrar.
Apa itu Higher Order Function ?
Tags: javascript, webdev, tutorial, productivity
Published: 2022-03-19 02:06:30


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j9kj03q6x16genx13dmn.png)

Bismillah,

Halo teman-teman semua, kembali lagi dengan saya Syafiq. Di sini saya ingin menuliskan apa yang telah saya pelajari tentang EcmaScript 6. Saya ingin mendokumentasikan hasil belajar saya di platform ini

Pada artikel ini saya ingin membicarakan sesuatu lagi di ES6, yaitu sesuatu yang bernama Higher Order Function. Mari kita bahas satu per satu.

Menurut https://eloquentjavascript.net higher order function adalah *function yang beroperasi pada function yang lain. Baik itu digunakan dalam argument maupun sebagai return value*

Di dalam javascript sebuah function di definisikan sebagai sebuah object https://sitepoint.com 

Dibawah adalah sebuah contoh sederhana serta penjelasan tentang higher order function di dalam sebuah codingan javascript.

```javascript

//Function yang berisi sebuah function == Higher order function

function kerjakanTugas(mataKuliah, selesai){
        console.log(`Mulai mengerjakan tugas ${mataKuliah}...`);
        selesai();
    }

// Function sebagai argument pada sebuah function == callback
function selesai(){
        alert(`Selesai mengerjakan tugas !`);
    }

//Dipanggil
kerjakanTugas(`Pemprograman Web`, selesai);

```

## Kenapa kita perlu untuk membuat sebuah higher order function ?
Ada beberapa alasan kenapa kita harus membuat sebuah higher order function di codingan kita, diantaranya :

### Abstraksi 
Yaitu membuat sebuah code menjadi lebih sederhana

_Karena ketika kita membuat sebuah function artinya kita telah menyembunyikan sebuah kerumitan_

_Semakin besar sebuah program, semakin tinggi kompleksitasnya, semakin membingungkan programmernya* 
https://eloquentjavascript.net_

```javascript

 //simple namun tidak dinamis

    for(let i = 0; i < 10; i++){
        console.log(i)
    }

    //Agak rumit namun dinamis
    
    function repeatLog(n){
        for(let i = 0; i < n; i++){
        console.log(i)
        }
    }

    repeatLog(10);

    function repeat(n, action){
        for(let i = 0; i < n; i++){
        action(i)
        }
    }

    repeat(10, console.log);
    repeat(10, alert);

```

<strong>
Ketika kita menggunakan paradigma Functional programming ini dengan benar itu akan membuat program kita lebih efektif, aman serta efisien
</strong>

Mungkin catatan tentang higher order function cukup segitu. 
Terima kasih buat yang sudah baca :)
My absolute worst Linux Experience | Daily Driving Fedora 35 | One Week Review
Tags: linux, fedora, productivity, gaming
Published: 2022-03-19 01:51:28

A Week ago on march 13, I started to daily drive Fedora on my personal laptop. Here are a few of my thoughts.

# Niche Problems

Here are a few problems I encountered that were more or less specific for my machine. 

## Slow Internet

On the Second day, Out of nowhere my fedora machine started to get very low internet speeds in the terminal. It did get fixed with a reboot but was very frustrating to deal with nonetheless.

## straight up doesn't boot when it fells like it

After a few days from my initial post and a system update ( sudo dnf update ). the gnome environment doesn't boot up anymore. it seemed to be a gnome-NVIDIA problem.

# Productivity Problems
## Spotify keeps crashing

I installed the flatpak version of spotify and it did not show in the menu until the next reboot, Even then spotify kept crashing whenever an ad would play.

## No Voice On Discord Streams

The other day me and a few friends were gonna watch a movie via discord , but my screen share did not work. After a bit of googling turns out Discord Stream Audio does not support Linux.

# Gaming

It just did not work.

# Conclusion

I could have probably found workarounds for all these problems but fedora feels like i'm always jumping through hoops. I wouldn't recommend it for production purposes but if u have free time give it a go.

I might move back to windows 11 or if there is another OS you would like me to cheek out, let me know. 

That's it for now, see you guys later

have a nice day.
Android Mirroring Tool : Release ScrcpyHub v1.6.0
Tags: android, mirroring, app, jetpackcompose
Published: 2022-03-19 01:44:14

## Introduction

ScrcpyHub is a GUI application to mirror android screen. ScrcpyHub use [scrcpy](https://github.com/Genymobile/scrcpy). [scrcpy](https://github.com/Genymobile/scrcpy) is a mirroring android command tool.

https://github.com/kaleidot725/ScrcpyHub

## Features

ScrcpyHub assists in multiple device mirroring. ScrcpyHub makes it easy to do multiple device mirroring.

- Support Windows10/11 or macOS or Linux.
- Support light theme and dark theme. 🖼️
- Control mirroing (Start / Stop). 🪞
- Mirror multi android device. 📱
- Save Screenshot. 📸
- Record Movie. 🎥
- Support Tary Menu. 📥
- **v1.6.0 New Feature : Support max fps option.**
- **v1.6.0 New Feature  : Support bitrate option.**

![demo.gif](https://res.craft.do/user/full/3a21bd0e-fe7a-39aa-73ad-b52ef24b655b/doc/6B81409B-F369-40D8-A18F-C3EB0794AE95/0198F212-64C1-4528-9DEC-A72EBEED8992_2/LcAfFELCjRs9vCPv2FArMLyGYoeIT37oGJxeO9yi1LMz/demo.gif)

## v1.6.0 New Feature : Support max fps and bitrate option

Support max fps and birate option. You can change movie quality to modify max fps and bitrate option.

[v1.6.0.mp4](https://res.craft.do/user/full/3a21bd0e-fe7a-39aa-73ad-b52ef24b655b/doc/A9897ACF-0658-42B1-8C21-405BA782502F/AC8A8951-7F95-443F-B8C8-981E51FA8F78_2/h3KnUQcya6g2gkn6x9UfudNkHTLRQ06xMvKt5uKstXwz/v1.6.0.mp4)

## How to Use

### Install

Install adb and scrcpy, ScrcpyHub.

#### 💻 Windows 10 / 11

1. Download [here](https://github.com/Genymobile/scrcpy#windows) and install scrcpy somewhere.
2. Download [here](https://github.com/kaleidot725/scrcpy-hub/releases/tag/v1.6.0) and launch ScrcpyHub.
3. Open ScrcpyHub Preferences.
4. Input adb and scrcpy location, save settings.

#### 💻 Linux(Ubuntu)

1. Download [here](https://github.com/Genymobile/scrcpy#windows) and install scrcpy somewhere.
2. Download [here](https://github.com/kaleidot725/scrcpy-hub/releases/tag/v1.6.0) and install ScrcpHub.

```other
sudo dpkg -i scrcpyhub_1.5.0_amd64.deb
```

3. Launch ScrcpyHub, open Preferences.

```other
/opt/scrcpyhub/bin/ScrcpyHub
```

4. Input adb and scrcpy location, save settings.

#### 💻 Mac OS

1. Install android-platform-tools and scrcpy.
2. Download [here](https://github.com/kaleidot725/scrcpy-hub/releases/tag/v1.6.0) and launch ScrcpyHub.
3. Open ScrcpyHub Preferences.
4. Input adb and scrcpy location, save settings.

```other
brew install android-platform-tools
brew install scrcpy
```

## 🔥Contact

We are working on the development [here](https://github.com/kaleidot725/ScrcpyHub).  If you have any suggestions for improvement, please contact us.
Slow I/O simulation in linux
Published: 2022-03-19 01:22:53

1. Create place to store our data.
```
dd if=/dev/zero of=/tmp/delayed-block bs=1G count=1
``` 
OUTPUT
```
1+0 records in
1+0 records out
1073741824 bytes (1,1 GB, 1,0 GiB) copied, 5,24011 s, 205 MB/s
```

2. Create a loop device
```
losetup --find --show /tmp/delayed-block
```
OUTPUT
```
/dev/loop5
```

3. Create a delayed mapper using [dm-delay](https://www.kernel.org/doc/html/latest/admin-guide/device-mapper/delay.html)
```
echo "0 `blockdev --getsz /dev/loop0` delay /dev/loop5 0 <milliseconds> | dmsetup create delayed-device"
``` 

4. Format and mount the delayed device to folder
```
mkfs.ext4 /dev/mapper/delayed-device
mkdir ~/delayed-folder
mount -o sync /dev/mapper/delayed-device ~/delayed-folder
```
we must select sync option to prevent kernel enhancements.
What is Pancake Swap? DeFi enhanced
Tags: blockchain, cryptocurrency, binance
Published: 2022-03-18 23:45:59

Ever heard of PancakeSwap?
It's the hottest DEX on Binance, and it has more features than your usual exchange.

## What is PancakeSwap?

PancakeSwap is a Binance Smart Chain-based DEX whose creators are anonymous.

It shares a few features with SushiSwap on Ethereum
- Community governance 
- Farm liquidity provider (LP) tokens

However, it also has other rewarding features:
- Lottery
- Prediction Market

## Swap tokens with a DEX

PancakeSwap at its core is a DEX for swapping BEP-20 tokens (think ERC20 on Ethereum)

It uses an 'Automated Maker Model' (AMM).
Instead of trading with someone else through an order book, you trade against a 'liquidity pool', which is a pool of funds.


![Screenshot 2022-03-18 06.23.53.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1647612775936/kqKvaVTlJ.png)

## Liquidity Pool Tokens

The 'liquidity pools' (LP) are filled with funds from other users. In exchange for storing funds in the pool, they receive LP tokens.

You can use LP tokens to:
- Reclaim your share of funds from the pool
- Get a % of trading fees as a reward

LP Tokens come in different varieties depending on the pool you add liquidity to.

Liquidity is added in pairs, so 
- adding BUSD + BNB to the pool =>  BUSD-BNB LP Tokens in return
- BETH + ETH to pool => BETH-ETH LP Tokens

## Farming and Staking

Now to move on to a fun feature of PancakeSwap, Farming and Staking.

You can deposit your LP tokens onto the farm to lock them up and get CAKE tokens in return.

You can now stake your CAKE into different 'SYRUP' pools and earn a variety of tokens


![Screenshot 2022-03-18 06.13.46.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1647612745247/_yh3xNK5-.png)


![Screenshot 2022-03-18 06.14.18.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1647612759253/_gOCj6V5l.png)

## Lottery

PancakeSwap also has a lottery run every day.

First, you have to buy a ticket for 5 USD in CAKE tokens.

The ticket will contain 6 digits that have to match the winning numbers in the same order.

Rewards are distributed among 6 different prize pools.

![Screenshot 2022-03-18 06.13.13.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1647612709162/XOwDNc8Gh.png)

## Prediction Market

The last feature I'll cover is PancakeSwaps simple Prediction Market.

Here, you can place bets on the price of BNB.
Rounds are every 5 minutes. BNB's price is recorded at the start and you bet whether it will go up or down by the end of the round.

![Screenshot 2022-03-18 06.12.32.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1647612674836/qXoTphdAu.png)

## Conclusion

And that covers most of the activities you can do on PancakeSwap!

If you have some ETH, why not start with swapping it for some BNB so you can start using the rest of the platform!

This post is my personal notes summarising this article: https://academy.binance.com/en/articles/a-guide-to-pancakeswa
Day 553 : Travellin Man
Tags: hiphop, code, coding, lifelongdev
Published: 2022-03-18 23:21:10

_liner notes_:
- Professional : Not a bad day. Had an early morning meeting. I wasn't invited to it because it was kind of early, but I was awake anyway working on something and saw the notification in the Slack channel. It was a good talk. Had another meeting that was about the conference happening next week. Can't believe it's happening so soon. Spent the rest of the day refactoring some examples that I will replace older examples in my workshop. This way, the attendees can do everything in the browser and have their own examples they can take with them.

- Personal : Last night, I tested out how I'll be attaching some cameras to my backpack for when I want to film walking around. Had to make some modifications, but I think it will work out. Also made sure that my wireless mics worked with the camera.

![Overhead aerial view of Plougonvelin, France above some clouds with multi-colored patches of land](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/073p6j5lf7ta7toswrhx.jpg)

Going to get my suitcase packed. Then I'm going to finish up prepping for the radio show tomorrow. If I have time, maybe I'll do a test run of my live streaming setup. So, the next time I post to this blog, I'll be a travellin man! haha Instead of writing blog posts, I'm going to see if I can create quick videos talking about what happened during the day with little b-roll clips throughout. Going to see how long I can keep it up. I'll hopefully be doing a lot of updates to https://dwane.in

Have a great night and weekend!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube p2YUDZZV6H8 %}
Create a Swapfile on Your Linux Machine
Tags: linux
Published: 2022-03-18 21:19:22

---
canonical_url: https://waylonwalker.com/til/linux-swap/
published: true
tags:
- linux
title: Create a Swapfile on Your Linux Machine
series: til
---

If you ever end up on a linux machine that just does not have enough ram to suffice what you are doing and you just need to get the job done you can give it some more swap.  You can look up reccomendations for how much swap you should have this is more about just trying to get your job done when you are almost there, but running out of memory on the hardware you have.

## make the /swap file

You can put this where you wish, for this example I am going to pop it into
`/swap`

```bash
sudo fallocate -l 4G /swap sudo chmod 600 /swap sudo mkswap /swap sudo swapon /swap
```

## make sure that your swap is on

You can make sure that your swap is working by using the `free` command, I like using the `-h` flag to get human readable numbers.

```bash
❯ free -h
               total        used        free      shared  buff/cache   available
Mem:            15Gi       5.5Gi       4.9Gi       458Mi       5.2Gi       9.3Gi Swap:          4.0Gi          0B       4.0Gi
```


  <div class="onelinelink-wrapper">
      <a class="onelinelink" href="https://waylonwalker.com/reset-ipython/">
          <img style="float: right;" align='right' src="https://images.waylonwalker.com/reset-ipython-og_250x140.png" alt="article cover for 
 Reclaim memory usage in Jupyter
"/>
          <p><strong>
 Reclaim memory usage in Jupyter
</strong></p>
      </a>
  </div>


> I also used this trick in this article to give my python process a bit more oompf and get it on home.
New(er) to coding and I LOVE IT.
Tags: beginners, career, newbie, discuss
Published: 2022-03-18 23:18:37

Hey y'all! My name is Tyler and my coding journey has just begun. I had taken a Computer Science course in college back in 2018 and I didn't think much of it at first. Years flew by, and it seemed all roads led back to Computer Science. I love the field and truly fall more in love with it every day.

First, Being the Newbie that I am I wanted to put myself out there and say that I am a true beginner. I am more than excited to go on this incredible journey and but more excited to be apart of such a supportive and collaborative community. 

Second, I would love to hear how you got into Computer Science, Why are you pursuing CS? What led you to CS? Did you hate it or love it at first? What do you do now? 

I know I'm not the only Newbie out there. Know you aren't alone and I am right there with you. Thanks for the read :)
Make VS Code better by editing and updating some settings
Tags: vscode, javascript, productivity
Published: 2022-03-18 21:53:24


This article describes five tips on how to make
[VS Code](https://code.visualstudio.com/) development experience a bit better (at least for my kind
of use cases -> Frontend Development) by enabling and editing some settings which are not set by default. You can go to your
settings and enable each one of these by either opening it up via the command palette

1. CMD + ⌘ + P
2. Type in _settings_
3. - 3. Select _Open Workspace Settings (JSON)_

or with the shortcut (CMD + ,) and click on the icon Open Settings (JSON) on the upper right corner.

Here are the five 🔥 things I add to improve my development environment.

## 1. Enable bracket colorization

Using bracket colorization makes it easier to see where code blocks start and end.

 
```jsx
// settings.json

// 1. enables vscode native bracket colorization
 "editor.bracketPairColorization.enabled": true
```

## 2. Enable bracket pair guides

Besides using bracket colorization, I love to add bracket pair guides.
 


```jsx
// settings.json

// 2. enables vscode pair guides
"editor.guides.bracketPairs": true,
```
 
## 3. Highlight modified Tab


I like to make it more clear which file I work on.




```jsx
// settings.json

// 3. highlight active tab
"workbench.editor.highlightModifiedTabs": true,
```

## 4. Using Font Ligatures

It makes it easier to distinguish comparisons between code lines.


```jsx
// settings.json

// use a font with font ligatures
"editor.fontFamily": "Jetbrains Mono, Menlo, Monaco, 'Courier New', monospace",
// 4. enable font ligature
"editor.fontLigatures": true,
```

## 5. Enabling Inlay hints

 
It can help you see what properties need to get passed into functions. without having to hover over the function call.

```jsx
// settings.json

// 5. enable parameter hints
"typescript.inlayHints.parameterNames.enabled": "all",
```
How do you deal with estimates?
Tags: discuss, career
Published: 2022-03-18 21:11:53

One of the scariest things to reply back to another human being as a Software Developer is the dreaded question:

> _"How long is it going to take?"_

We all hope we could answer "Whatever it takes" to our managers or bosses, but we need a stable income in our lives.

Some people come up with arbitrary times, whether it's a few days, a week or two, maybe 3... but we can all agree that overshooting and getting it done sooner than expected makes us look way better than undershooting and responding with the classic:

> _It was more complicated than what I expected..._

Some people prefer using points systems, others might argue that time intervals might be better... But ultimately, we can all agree that we all, as human, are pretty terrible at estimating.

So, how do _you_ do it?
My goals moving forward
Tags: webdev, programming, career, discuss
Published: 2022-03-18 20:45:05

I have been put through the ringer this last week and have been feeling this weird pendulum. Sometimes feeling like I am a proficient programmer and that I understand how to program and even better how to continue expanding on my understanding of programming. Soon fallowed by times where I can't remember if I know how to "really" program, or if I am even skilled enough to be considered a programmer. I often face technical programing problems that when overcome make me feel like the possibility of reaching my goal is a real outcome. My goal was to attend a bootcamp to fill out and refine my skills, gain confidence, and apply to get a job at google in Boulder, Co. However there are times when I wonder if I am even capable enough to be considered a good candidate. I was curious to know what would constitute being a proficient enough, because I often see the job listings for junior front-end devs and think, there is no way I meet all those requirements, to witch you might say "the job listings are written by H.R. and that's not the true measurement of candidacy", which brings me to the point of this long winded post, 

What is enough and what determines what is enough in this field? 


Especially when looking for somewhere to start your professional journey.
Please I need help with my real time chat app in Django and channels
Tags: django, webdev, python, webrtc
Published: 2022-03-18 20:10:11

Any Django developer?
Let's network... You can have my what's app contact.
Let's be friends.
I have 2 years of experience in Django. And 5 years in tech. We can't know everything... That's why we need to network and share information.
I will also help you need others, if you want to.
Digital Root
Tags: algorithms, beginners, codenewbie, python
Published: 2022-03-18 16:54:09

i found this while attempting CP Question and i got curious about it then i thought i should share this topic to everyone so here it is...
> What is Digital root? if you have done little competitive programming or practice for Data Structure or anything else you have got problem where you need to sum all digits of number and doing this process until number became single digit number. so that is Digital Root , let's talk about it.

Example:
123 = 1+2+3 => 6
456 = 4+5+6 => 15 = 1+5 => 6

There are Few solution which can solve this Problem like Brute Force, but that will slow so we'll try mathematical technique to solve it which is digital root.

Before solving this problem ,let me tell you some interesting properties of Number **9**:

- when you multiply any number(>0) with 9 then sum of all digits of that number will always 9 . Example :  345*9 = 3105 => 3+1+0+5 => 9 , you can check yourself this condition (try different numbers)

- When we add 9 to any number(here add means concatenating ) sum of all digits won't get effected, Example : 345 => 3+4+5 => 12 => 1+2 => 3, now add 9 , 3459 => 21 => 2+1=>3

- when we divide any number by 9 , then what remainder we get is same as digital root of that number. Example : 15/9 => 6 and 15=> 1+5=>6

- Any Perfect Square's digital root will be 1,4,7,9 (16=>1+6=>7, 36=>3+6=>9 etc)

First i suggest to check out this [Leetcode Question](https://leetcode.com/problems/add-digits/) 

So for n==0 digital_root = 0
otherwise digital_root = 1 + ((n-1)%9)
Let's code this
C++
```
#include <iostream>
using namespace std;
int digital_root(int n){
    if (n==0)return 0;
    else{
        return 1 + ((n-1)%9);
    }
}
int main() {
    int n;
    cout << "Enter Number: ";
    cin >> n;
    cout <<endl;
    cout << "Digital Root Value :"  << digital_root(n);
    return 0;
} 
```
Python3
```
def digital_root(n):
    if n==0:
        return 0
    else:
        return 1 + ((n-1)%9)

n = int(input("Enter Number: "))
print("Digital Root :",digital_root(n))
```
If you want to Know more about it then check [Digital_Root](https://en.wikipedia.org/wiki/Digital_root)

Open for Suggestion
Thank You