teleren/devto huggingface dataset:
PR #1723 Adds The ROSS Index To OpenBB's OSS Menu! Fintech<=>OSS
Tags: opensource, ross, python, github
Published: 2022-04-23 07:20:04

![https://github.com/OpenBB-finance/OpenBBTerminal/pull/1723](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6f1ykgov2ga4qjfkz7ca.png)
https://github.com/OpenBB-finance/OpenBBTerminal/pull/1723


https://runacap.com/ross-index/

> Runa actively invests in OSS startups (like Nginx and MariaDB) and considers an active developer community instrumental for open-source businesses. We look for promising companies with a fast-growing army of fans, track them at Github, and decided to open-source our findings as an index.
> ROSS index highlights top-20 open-source startups by the annualised growth rate (AGR) of Github stars at their repositories. While these stars are not a perfect metric for community evaluation, they allow us to understand which OSS products were on top of developers’ minds last quarter. Our index is transparent, measurable and entirely focused on startups.


OpenBB is on a mission make investment research effective, powerful and accessible to everyone. Support the project by getting it to the top of the ROSS Index!

https://github.com/OpenBB-finance/OpenBBTerminal

https://openbb.co
Python AWS Lambda unit testing
Tags: aws, lambda, unittesting, stubber
Published: 2022-04-23 07:18:59

## Unit testing computational AWS Lambda
Consider a lambda handler retrieving two values from an event and returns the sum. (no interaction with other AWS Services).

#index.py
```
def lambda_handler(event, context):
    result = int(event['first_number']) + int(event['second_number'])  
    return { 
        'sum' : result
    }
```
Below is one option of unit testing using Python "unittest"
#test_index.py

```
import unittest
import index
class TestSumOfTwoNumbers(unittest.TestCase):
    def test_sum(self):
        input = {
            "first_number": "1",
            "second_number": "2"
        }
        output = index.lambda_handler(input,{})
        self.assertEqual(3, output['sum'])
```

## Unit testing AWS Lambda interacting with other AWS Services/APIs
The handler code given below calling AWS Service API (get_function() of boto3 lambda client) fetching a lambda functions metadata.

#index.py

```
import boto3

def lambda_handler(event, context):
    lambda_client = boto3.client('lambda')
    response = lambda_client.get_function(
        FunctionName='for-blog'
    )
    return response
```

#test_index.py
Below code shows how we performed Unit testing boto3 calls using Stubber. (Go through the in-line comments for brief explanation)
```
import boto3
from botocore.stub import Stubber
import index # source file
import unittest
from unittest.mock import patch

class TestLambdaMetadata(unittest.TestCase):
    def tests_Metadata_for_lambda_function(self):
        client = boto3.client('lambda')
        stubber = Stubber(client) # stubbed lambda client
        
        # expected response from boto3 lambda client's get_function call 
        expected_response = {u"Configuration": {"FunctionName": "for-blog", "Runtime": "python3.8"}}
        
        # stubbed lambda client (with specific parameter) call to get_function results in expected_response. 
        stubber.add_response('get_function', expected_response, {'FunctionName': 'for-blog'})

        # patching boto3 attribute of index.py with stubber
        with patch('index.boto3') as mock_boto3:
            with stubber:
                mock_boto3.client.return_value = client
                
                # call to lambda_handler in index.py 
                lambda_response = index.lambda_handler({}, 'context')
                self.assertEqual(lambda_response, expected_response)
```
Image by <a href="https://pixabay.com/users/geralt-9301/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=2450236">Gerd Altmann</a> from <a href="https://pixabay.com//?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=2450236">Pixabay</a>
Terminal komandalar part 2
Published: 2022-04-23 07:00:36


## `cd ~`

birdaniga home papkaga o'tadi.

## `cd ~/ cpp (any file)`

homeda mavjud bo'lgan cpp filega birdaniga o'tadi.

## `_, -, "`

bu belgilar orqali yozilganda, mkdir bn bir nomli papka yasaladi.

## `r.m`

remove FILES

## `r.m -r`

PAPKAlarni o'chiradi

## ` open. `

papkani boshqa brauzerda, boshqa joyda ochadi, terminalda emas

## `date`

sanani chiqazadi

## `date + '%d-%m-%y`

sanani tartibli holda chiqazadi. (23-04-22)

## `code.`

code degan dasturda faylni ochadi

## `mkdir $ (date + '%d-%m-%y')` 

bugungi sana nomi bn papka yaratadi

## `g++`

compiler
Licom – browser plugin for comments on every webpage
Tags: webdev, javascript, react, showdev
Published: 2022-04-23 06:45:05

Hello!

I would like to show you my little project, which I have been working on for the last few days.

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

It is a simple plugin for your browser, which adds the possibility of commenting literally every web page.

The project is created in React and the server is created in Restify + Prisma.

If you find some time, you can test my plugin and write what you think about it :)
Of course the project is open-source :)

Interesting fact to add here is that I use ED25519 keys to sign every comment, the key is generated at registration and used to login.
So save your generated private key to be able to login again ;)

{% github skorotkiewicz/Licom no-readme %}

Website: https://licom.fly.dev
Remove Admin Bar in Wordpress
Tags: wordpress, webdev, beginners, tutorial
Published: 2022-04-23 06:24:46

Sometimes, we need to remove admin bar in our wordpress website to make some extra security. To remove admin bar for non admin users, paste this code in your **functions.php** file located at **root_directory_path/wp-content/themes/your_theme/functions.php**

```php
add_action('after_setup_theme', 'remove_admin_bar');

function remove_admin_bar() {
	if (!current_user_can('administrator') && !is_admin()) {
		show_admin_bar(false);
	}
}
```
And paste this code in your **functions.php** file located at **root_directory_path/wp-content/themes/your_theme/functions.php**

```php
add_action('after_setup_theme', 'remove_admin_bar');

function remove_admin_bar() {
	show_admin_bar(false);
}
```
If you want to remove admin bar for shop manager in your **woocommerce website**. Then paste this code in your **functions.php** file located at **root_directory_path/wp-content/themes/your_theme/functions.php**

```php
add_action('after_setup_theme', 'remove_admin_bar');

function remove_admin_bar() {
	if ( isset( $user['roles'][0] ) && $user['roles'][0] == 'shop_manager' ) {
		show_admin_bar(false);
	}
}
```
If you want to remove admin bar for other users roles. Then here below is trick which you can use to identify the user roles and if condition in **remove_admin_bar()** function. Here **$user_roles** is an array having all roles values of wordpress users. And in **$user_roles** you can find your desired roles and can apply condition to your desired roles.

```php
$user = wp_get_current_user();
$user_roles = (array) $user->roles;
if ( in_array( 'author', $user_roles ) ) {
    //The user has the "author" role
}
```

---
Please like share subscribe and give positive feedback to motivate me to write more for you.

For more tutorials [please visit my website](https://www.w3courses.org/tutorials/).

Thanks:)
Happy Coding:)
Terminal komandalar part 1
Published: 2022-04-23 06:21:03

#pwd 
###qaysi papka ichida turganligini ko'rsatadi
#ls
##papka ichida nima borligini ko'rsatadi
#clear
###tozalaydi
#ls -a
###yashirin fayllarni ko'rsatadi
#mkdir
###papka yaratadi

#cd
- boshqa papkaga o'tkazadi

#cd..
- 1ta orqaga o'tkazadi

#cat
- undan keyingi papkani ko'rsatadi
Stop buying Notion templates, create your own instead.
Published: 2023-07-04 17:03:33

---
title: Stop buying Notion templates, create your own instead.
published: true
date: 2022-04-23 06:18:25 UTC
tags: 
canonical_url: https://blog.afrieirham.com/stop-buying-notion-templates-create-your-own-instead
---

I used to look for templates on Notion for hours, trying to replicate them for days, setting up the perfect dashboard that's aesthetically pleasing but never got to use them even once sounds familiar? 😜

Why? Because I was using someone else's system.

A system that

- they come up with

- only works for them

- not mine

Now what I did instead is, I use Notion however I feel I like it. And yes it is messy, but it's my mess.

What's important is it works for me whether it's an expense tracker or a to-do list.

And I keep using it until eventually, after using it multiple times, I saw a pattern. From there, I start to systematize it and came up with my own template.

I am a huge believer that in order for you to do things systematically, you need to do it **messily** first, then after you have done it enough, you can **tidy it up**.

This not only applies to Notion templates, it applies to everything.

I saw the same thing in my work when I'm coding. We don't start coding by trying to write the most efficient code first, we start by making it work then we refactor.

Anyway, I digress.

* * *

Look, I'm not saying you should never look for inspiration in other people's work. What I'm saying is, you should not just blindly copy it.

In fact, I encourage people to look for inspiration and try experimenting with it and don't be afraid to customize it according to your needs.

So go do stuff first, and then you can worry about making it systematic/beautiful.
How to remove extra css in wordpress?
Tags: wordpress, webdev, beginners, tutorial
Published: 2022-04-23 06:17:18

Some times we need to remove some css from our wordpress website or blog to speed up our website. Here below is a trick which you can use to remove unused css from your wordpress website.
 
First of all you have to find the stylesheet file which you want to remove and to find this open your webpage in google chrome and press **ctrl+u** to view the **source code of the webpage**, then find the **link tag of css file** and there you will see the id in the link tag and this is what you need to remove the css. Now paste the code given below in your **functions.php** file located at **root_directory_path/wp-content/themes/your_theme/functions.php**


 
And we have used here two wordpress core functions **wp_dequeue_style** and **wp_deregister_style**.

Here **‘wc-block-style’** is the id of the link tag which you have found in source code of webpage. You can also see the image below to find id of css.

![remove extra css in wordpress](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1cp7ppop92v2z7qbbfdd.jpg)

```php
function dequeue_my_css() {

	if (is_home() == true || is_single() == true) {
		
		wp_dequeue_style('wc-block-style');
		wp_deregister_style('wc-block-style');
		
	}

}
add_action('wp_enqueue_scripts','dequeue_my_css', 9999);
add_action( 'wp_head', 'dequeue_my_css', 9999 );
```

---

Please like share subscribe and give positive feedback to motivate me to write more for you.

For more tutorials [please visit my website](https://www.w3courses.org/tutorials/).

Thanks:)
Happy Coding:)
React Native Warsaw
Tags: reactnative, poland, application
Published: 2022-04-23 06:08:15

Hello Guys, 

I hope you’re doing all well !
I need to create a small team for one of my project put impossible to find developers on the market.

We have a office in Warsaw but even when we propose a great salary impossible To find anyone.

Do you know what can I do ?

I’m looking for People in React Native.

Please help me 🙏🙏🙏🙏
Programming with Python:print statement
Tags: python, programming, tutorial, beginners
Published: 2022-04-23 05:54:53


**_PRINT_**
First off, download an application that runs python commands, either on your Personal Computer (preferably), by logging in to www.python.org and downloading the IDE( integrated development environment) or by downloading visual studio code and the python extension file, or on your android device(I recommend the pydroid3 application for this.)

We start by printing a simple Hello world statement which we do by typing print("Hello, world"),the hello world would have to be kept in-between double quotes or single quotes because it’s a string, otherwise it’ll generate an error.

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

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

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

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



Also variables with datatype int or floats can easily be printed out just by placing them in the print keyword while strings are placed in double quotes.

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

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

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

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

To explain more 
Datatypes are used to specify and identify the type of variables utilized in the program, there are several data types in python including :

- Strings-these are letters or characters that are represented in-between single quotes, ('') or double quotes, ("").
Examples: "Apple", 'john'
- Integers-these are numeric values
Examples:1,3,25
- Float-these are floating-point numbers which can also be known as decimal numbers.
Example:2.0,2.35
- Boolean-These are values with only two outputs, true or false.

We'll learn more about them and make use of them in further lessons

Hope you enjoyed today's lesson, like, comment, share, and see you next time.
Problem facing by my android phone Help me by advise
Tags: android
Published: 2022-04-23 05:41:12

For about a week now, dev.to Android app always crashes when accessed from push message, i.e. Notification Area, on Vivo.

Actually, the first ever notification message is Wisdom engine "DEV Community" runtime exception. After I slided to hide that message, this error consistently happen.

To Reproduce

A notification message is received.
Click on the notification message
App opens and dies without any visible UI or message
However, app can still be accessed via clicking the icon. (And the notification count is still there.)
Expected behavior

No crashes.

Smartphone (please complete the following information):
Modal Name : Vivo 1907
Android: 12
Update version: PD1913F_EX_A_9.72.14
Abstract Method/Property
Tags: csharp, programming, tutorial, advancedcsharp
Published: 2022-04-23 05:37:05

abstract methodlarning tanasi derived klasslarda yozilishi shart va shuning uchun o'sha methodni base klassda `abstract` deb e'lon qilish kerak. Derived klassda esa uni `override` qilib e'lon qilish kerak.

Uning fichalari:

1. Abstrakt methodlar implicitly virtual methodlar ekan (babr chummadim).
2. Abstrakt methodlar faqatgina base classda e'lon qilinishi shart
3. Chunki abstrakt methodning implementatsiyasi derived klassda qilinadi, base klassda methodning tanasi bo'lmaydi
Misol:
`public abstract void NimaGap;`
4. Abstrakt method declarationida ularni static va virtual qilib e'lon qilib bo'lmaydi

Abstrakt propertylarning fichalari
1. static propertyni esa abstract qilib e'lon qilib bo'lmaydi
2. Inherit qilingan property derived klassda override qilib ishlatilinadi

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/77phs4vriz4ujvn561xt.png)
[Rust] Generic Segment Tree
Tags: rust, programming, datastructures, competitiveprogramming
Published: 2022-04-23 05:16:54

I wanted to write and keep a segment tree implementation for myself, that I could use more generally (all reasonable data types, and all reasonable operations). I finally decided to write one and add it to [cp-lib](https://github.com/satylogin/cp-lib).

The core struct for now is:

```rust
pub struct SegTree<T, F>
where
    T: Clone + Copy,
    F: Fn(T, T) -> T,
{
    n: i32,
    default: T,
    cell: Vec<T>,
    lazy: Vec<T>,
    op: F,
}
```

And usage: 

```rust
let mut tree = SegTree::new(10, i32::MIN, std::cmp::max);
tree.insert(1, 10);
tree.insert(2, 20);
assert_eq!(tree.query(1, 10), 20);

tree.insert_range(3, 6, 10);
assert_eq!(tree.query(5, 10), 10);
```


Where op is the operation that the segment tree performs (min, max, gcd, or something custom), and default is the value the should be returned as query default and gets stored during initialization.

The major benefit is that it allows for me to write more complicated segtree rather easily,
eg:
for problem: https://codeforces.com/contest/1557/problem/D
my solution (https://codeforces.com/contest/1557/submission/154901530) uses
```rust
let mut seg_tree = SegTree::new(
    points.len(),
    (0, 0),
    |left: (usize, usize), right: (usize, usize)| if left.1 > right.1 { left } else { right },
);
```

Sharing the [full implementation](https://github.com/satylogin/cp-lib/blob/main/src/ds/range/seg_tree.rs) here in case someone needs it.

I will keep on modifying it as needed. In case anyone do decide to use it and find some bugs, or have a feature request, do let me know.
Roofing Contractors in Duluth Ga - Best Duluth Roofing company
Tags: roofing, roofingcompany, roofingcontractors, roofingcontractor
Published: 2022-04-23 05:14:29

Duluth Roofing Service is a quality roofing provider. Roofing contractors in Duluth, GA are committed to providing the finest service possible. When you phone them, they will send a professional to your home within a day. Call today to take advantage of low-cost, high-quality service.

[Duluth Roofing Service](https://duluthroofingservice.com/roofing-contractors-in-duluth-ga/) supplies qualified Duluth roofers. Quality roofers are eager to get started on building a solid roof for your house. The moment has come to choose the absolute best roof work possible.

Duluth Roofing Service employs some of Duluth, Georgia's most skilled roofing contractors. You receive high-quality service at a fair cost. The roof is more robust, and there are budget-friendly choices available. Invest on the best rooftop available to get the most bang for your budget. Right now, click here.
Leanbean Fat Burner - 100% Natural [Safe and Effective!] Benefits and Side Effects?
Published: 2022-04-23 05:08:46

Leanbean Fat Burner This information has a promising future. t's no B.S. I'm feeling tired today. Certainly you have a sense of humor, don't you? bear in mind that they're a critic of dabblers using that. I may need to solve my problems. It is how to stop yourself from worrying as it regards to Leanbean Fat Burner. 

(SPECIAL OFFER) Click Here :- https://ipsnews.net/business/2022/02/09/leanbean-fat-burner-weight-loss-supplement-dark-side-you-must-know-before-order-it-30-days-critical-reports/
https://www.youtube.com/watch?v=ZV5mHh-yzN8
https://sites.google.com/view/leanbean-benefits/
https://groups.google.com/g/leanbean-buy/c/LFw3UP3q-q4
How to call a function in another script, Godot's Visual Script Tutorial
Tags: tutorial, codenewbie, gamedev, beginners
Published: 2022-04-23 05:06:00

> _**Update: Godot's Visual Script will discontinue in Godot 4.0.**_ Therefore, it's useless to continue using Visual Script in Godot now.

A lot of people who use Godot's Visual Script don't know how to call a function in another script. 

Well, that's easy! You can just **drag and drop** a _scene_ node, which is attached to the script, into the canvas as shown in the screen recording below:

![Drag and Drop Operation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h3992xcf3v6ab6ls0fzd.gif)

## A proper way to do it

Imagine if you have to call a function from another script a hundred times, but you need to change the structure of the scene node to which the script is attached later, then you'll definitely have a serious problem of having to edit those hundred nodes. 

Therefore this is how you do to prevent it:

- **Set a scene node** to an `object` variable in the `_ready` function which will be called only once.

![Set a scene node](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1z4m1iroycsqam3b5zbi.jpg)

- **Change call mode** of the node **to Instance**.

![Change call mode](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lyafpy5kx2znu1c7dtlb.jpg)

- **Put the `object`** variable **to the instance** input port.

![Put the object to the input port](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tfab3xolkudvyp51dvoa.jpg)

Now, if you need to change anything to this scene node that you want to call a function from, all you have to do is change just one node in the `_ready` function, instead of a hundred nodes in the canvas!

I hope this helps 👍

---

Cover photo by [NoWah Bartscher](https://unsplash.com/@nowah?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/s/photos/call?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)
2 or 3 Easy steps to install Virtualbox in Ubuntu
Tags: linux, virtualbox, ubuntu, virtualization
Published: 2022-04-23 04:52:58

Virtualization is the process of running a virtual instance of a computer system in a layer abstracted from the actual hardware.It allows for simultaneous running of multiple operating systems on a single computer system.
Oracle VM VirtualBox is a type-2 hypervisor that allows for virtualization and is supported by multiple operating systems including but not limited to Windows based OS's,Linux and Mac OS.
Lets get started, shall we,
**Prerequisites:**
1. Virtualization enabled computer
2. An account with sudo privileges
3. Stable internet
4. Open Terminal (Ctrl+alt+t)

**Step 1: Update package list**
Use the command below to get a list of packages that might need to be updated. Ensure to input the correct password when prompted.
```
sudo apt update
```
![Update](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8j54jr5eob33e253zo7m.png)
**Step 2: Upgrade packages (Optional)**
Use the command below to upgrade any packages that appear from the first step.
```
sudo apt upgrade
```
![Upgrade](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zey75mebqtdllxeeb0nl.png)
**Step 3: Install Virtualbox**
The command below is used to install virtualbox and its accompanying extensions. Ensure that you agree to accept the agreements and terms of license.
```
sudo apt install virtualbox virtualbox-ext-pack
```
![Install](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iv9uitjxzmxfux8tixsp.png)
Below are some of the prompts and windows you will see during the installation.
![genesis](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6289y8tqjrmhoxzu2nvf.png)

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

![terms](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ldofj0jbsn3ybelrzxrf.png)
**Step 4: Confirmation(Optional)**
Finally to confirm that VirtualBox was successfully installed, use the command below
```
virtualbox
```
![start](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y4m10qgg68cwenyw5t7g.png)
_#This is the sign of victory_
![victory](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ane29132vbjg3w3kcznd.png)

**_Congratulations, you have successfully installed VirtualBox_**

**Next Step**
- Installing an OS in VirtualBox