teleren/devto huggingface dataset:
100 days of CSS animation code challenges - Reveal
Tags: animation, css, beginners, webdev
Published: 2023-11-19 06:00:00

## 1. Rotation text animation - HTML/CSS
{% embed https://youtube.com/shorts/rxwd6i51qqM?feature=shared %}
## 2. Glowing text animation - HTML/CSS
{% embed https://youtube.com/shorts/udBm843oxHM?feature=shared %}
## 3. Gradiant text animation - HTML/CSS
{% embed https://www.youtube.com/shorts/ONfwf5mQOpE %}

## 4. Shiny text animation - HTML/CSS
{% embed https://www.youtube.com/shorts/NJIObNBjYL0 %}

## 5. Card outer flow animation - HTML/CSS
{% embed https://www.youtube.com/shorts/rg0c54juHNs %}

## 6. Blurry card hover animation - HTML/CSS
{% embed https://www.youtube.com/shorts/XaRxLmqopZw %}

## 7. Content pop-up card hover animation - HTML/CSS
{% embed https://www.youtube.com/shorts/uTXIPW3rS2g %}

## 8. Photo gallery hover animation - HTML/CSS
{% embed https://www.youtube.com/shorts/w9_AakKriJ4 %}

## 9. 3D box model hover animation  - HTML/CSS
{% embed https://www.youtube.com/shorts/GtZVnymD5jo %}

## 10. Scroll driven text animation  - HTML/CSS
{% embed https://www.youtube.com/shorts/mSyP7LuhbKw %}


Thanks for reaching the bottom of our blog post! If you've enjoyed our content, take the next step: [subscribe to our YouTube channel](https://www.youtube.com/@simpledevcode?sub_confirmation=1) for exclusive perks.
S128 - Nha Cai Da Ga S128 Moi Nhat
Published: 2023-11-19 04:43:09

S128 là một trang web cá cược trực tuyến nổi tiếng tại Việt Nam, cung cấp nhiều trò chơi như game slot, đánh bài online, cá độ thể thao, và đá gà trực tuyến. Với quy trình đăng ký tài khoản đơn giản, bạn có thể tham gia chinh chiến tại đây. 
Địa Chỉ: 97 Đông Hưng Thuận 2, Đông Hưng Thuận, Quận 12, Thành phố Hồ Chí Minh, Việt Nam
Email: casinos128vn@gmail.com
Website: https://s128vn.asia/
Điện Thoại: (+63) 949 870 6347
#s128 #s128casino #nhacais128

Social Links:

https://s128vn.asia/chinh-sach-bao-mat-s128/
https://s128vn.asia/lien-he-s128/
https://s128vn.asia/ban-ca/
https://s128vn.asia/casino/
https://s128vn.asia/da-ga/
https://s128vn.asia/slot/
https://s128vn.asia/the-thao/
https://s128vn.asia/xo-so/
https://www.facebook.com/s128vn1/
https://twitter.com/s128vn1
https://www.youtube.com/channel/UCdiPwR0S71LlK4CV7ZI2oHA
https://scholar.google.com/citations?hl=vi&user=1xHU6osAAAAJ
Placeholder Contributor
Tags: hack23contributor
Published: 2023-11-19 05:53:57

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->

### Intro
<!-- Share a bit about yourself as a contributor. Is this your first Hacktoberfest, or have you contributed to others? Feel free to embed your GitHub account by using {% embed LINK %} -->

### Highs and Lows
<!-- What were some of your biggest accomplishments or light-bulb moments this month? Did any problems come up that seemed impossible to fix? How did you adapt in those cases?  -->

### Growth
<!-- What was your skillset before Hacktoberfest 2023 and how did it improve? Have your learning or career goals changed since working on these new projects? -->
Coding strategy for a nutrition-based linear equation system
Published: 2023-11-19 05:48:24

Suppose you'd like to develop a nutrition app that allows users to precisely set the nutritional component amounts in their food to arrive at the "perfect" menu for the day or week. Traditionally, nutrition awareness programs have taught us to eat from a variety of food groups to maximize micronutrient consumption. While this is great advice, you can still go wrong. Suppose you eat too much of one color, such as red, but not enough black, green, or blue. I use colors as an example indicator of different micronutrient compositions. When you eat the perfect combination of macro- and micro- nutrients, your body flourishes and you just "feel" your absolute best! This is why I believe heavily in custom nutritional intervention.

Suppose there are 100 nutritional components, such as Calories, Protein, Carbs, Sodium, Vitamin C, AGEs, etc.

Suppose that a food can have 1 or many nutritional components.

A user can select weights for each nutritional component, and my app should tell them the exact foods by gram they should consume to hit each of those goals.

Yet I was stuck on just how to program such a task.

Luckily, there are libraries like glpk or Simplex that make solving many, large linear systems of equations possible. This is exactly what I needed for this core feature of my app:

```
require 'glpk'  # or another linear programming library

# Define your food items
foods = [
  {:name => 'Turkey Breast', :calories => 135, :sodium => 70, :AGEs => 1000, ...},
  {:name => 'Strawberry', :calories => 50, :sodium => 2, :AGEs => 500, ...},
  # more food items...
]

# Get user's nutritional goals
goals = {:calories => 1700, :sodium => 2300, :AGEs => 9000, ...}

# Get user's food preferences (true = included in diet, false = not included)
preferences = {'Turkey Breast' => true, 'Strawberry' => false}

# Filter out unwanted foods
foods = foods.select { |food| preferences.fetch(food.fetch(:name)) }

# Create an empty matrix
matrix = []

# Transform data into a matrix that can be used by the linear programming library
# For each nutritional component
goals.keys.each do |component|
  # Create a new row
  row = []

  # For each food item
  foods.each do |food|
    # Add the amount of the component in the food to the row
    row << food.fetch(component)
  end

  # Add the row to the matrix
  matrix << row
end

# Solve the linear programming problem to find a combination of food items that satisfies the user's goals
solution = glpk.solve(matrix)

# Print the solution
solution.each do |item|
  puts "#{item[:name]}: #{item[:amount]}g"
end
```

Performing linear algebra in a web app is no longer difficult with libraries like glpk or Simplex!
Weekly Challenge 243
Tags: perl, python, theweeklychallenge
Published: 2023-11-19 05:45:36

Each week Mohammad S. Anwar sends out [The Weekly Challenge](https://theweeklychallenge.org/), a chance for all of us to come up with solutions to two weekly tasks. My solutions are written in Python first, and then converted to Perl. It's a great way for us all to practice some coding.

[Challenge](https://theweeklychallenge.org/blog/perl-weekly-challenge-243/), [My solutions](https://github.com/manwar/perlweeklychallenge-club/tree/master/challenge-243/sgreen)

## Task 1: Reverse Pairs

### Task

You are given an array of integers.

Write a script to return the number of reverse pairs in the given array.

A reverse pair is a pair `(i, j)` where: a) `0 <= i < j < nums.length` and b) `nums[i] > 2 * nums[j]`.

### My solution

This is relatively straight forward. Have a loop for the values of i. Count the number of times `nums[i] > 2 * nums[j]` is true for the remaining values, where `j` starts at the position after `i`.

```python
for i, value in enumerate(ints):
    solutions += sum(1 for j in ints[i+1:] if value > 2 * j)
```

### Examples

```bash
$ ./ch-1.py 1 3 2 3 1
2

$ ./ch-1.py 2 3 4 5 1
3
```

## Task 2: Floor Sum

### Task

You are given an array of positive integers (>=1).

Write a script to return the sum of `floor(nums[i] / nums[j])` where `0 <= i,j < nums.length`. The floor() function returns the integer part of the division.

### My solution

This is also pretty straight forward. Python's [math](https://docs.python.org/3/library/math.html) module provides a `floor()` method, while in Perl the [POSIX](https://metacpan.org/pod/POSIX) module does.

Python supports a double for loop, so it can be completed in a single function.

```python
solution = sum(math.floor(i / j) for i in ints for j in ints)
```

Meanwhile in Perl I have a traditional `foreach` loop for the `i` variable, and a sum + map function for the `j` value.

```perl
foreach my $i (@ints) {
    $solution += sum( map { floor( $i / $_ ) } @ints );
}
```

### Examples

```bash
$ ./ch-2.py 2 5 9
10

$ ./ch-2.py 7 7 7 7 7 7 7
49
```
5 Tips to improve your smartphone's battery life
Published: 2023-11-19 05:23:32

## The importance of proper battery usage

As smartphone usage has skyrocketed in recent years, one of the most frequent complaints from users is quickly draining battery life. However, with proper usage and a few tricks in mind, it's possible to extend your phone's battery life significantly.

## Tip 1: Adjust your phone's brightness

One of the most significant factors in battery usage is screen brightness. By adjusting your phone's brightness settings, you can significantly reduce battery consumption. Turning on the 'auto-brightness' feature is an effective way to control this without constantly tinkering with the settings.

## Tip 2: Close unnecessary apps

It's common for users to leave apps running in the background, even if they're no longer being used. This can cause significant battery drainage over time, especially for more demanding apps. By regularly checking your app usage and closing any unnecessary ones, you can reduce energy consumption and prolong battery life.

## Tip 3: Watch out for battery-intensive activities

Activities such as streaming videos, playing graphics-intensive games, or using location-based services can quickly drain your phone's battery. Avoid these activities if you're trying to preserve battery life. If you must use them, try to limit the time spent or switch to battery-saving mode.

## Tip 4: Use battery-saving modes

The majority of modern phones have a battery-saving or power-saving mode. This mode limits the phone's functions and reduces power usage, prolonging battery life. Turn on this mode if you're not using your phone intensively or if you're running low on battery.

## Tip 5: Keep your phone away from high temperatures

High temperatures can significantly affect your phone's battery life. Heat can cause the battery to wear out faster and reduce its overall capacity. Avoid leaving your phone in direct sunlight, and don't charge your phone in high-temperature environments, such as near a heater. 

## Conclusion

By following these simple steps, you can extend your phone's [battery life](https://www.cinverter.com/blogs/news/extending-escooter-battery-life?utm_source=dev_to&utm_medium=rankking), leading to less frequent charging and a better user experience. Remember to keep in mind how you're using your phone and identify any unnecessary battery drains. With the right mindset, you'll be able to optimize your battery usage and get the most out of it.

## References

  * [battery life](http://www.hccinc.com/?URL=https://www.cinverter.com/blogs/news/extending-escooter-battery-life "battery life")



## Useful resources to learn more about battery life

  * [Battery University](https://batteryuniversity.com/learn/)
  * [Android Authority](https://www.androidauthority.com/how-to-extend-phone-battery-life-882395/)
  * [Tom's Guide](https://www.tomsguide.com/us/battery-life-tips,review-2153.html)
979vnlive
Tags: 979, 979vn
Published: 2023-11-19 05:22:22

979vn ⭐️ đang trở thành điểm đến ưa thích của nhiều người chơi cá cược hàng ngày. Với giao diện trực tuyến tân tiến nhất, họ cung cấp các sản phẩm game độc đáo và nổi bật. Số lượng thành viên tham gia gần đây đã tăng lên, chứng tỏ sức hấp dẫn mạnh mẽ của nền tảng này.
Địa chỉ: 85 Đ. Cách Mạng Tháng 8, Phường Phạm Ngũ Lão, Quận 1,Thành phố Hồ Chí Minh, Việt Nam
Email: 979vn.live@gmail.com
Website: https://979vn.live/
Điện thoại: (+63)9282150738

Social Links:

https://979vn.live/
https://www.facebook.com/979vnlive
https://twitter.com/979vnlive
https://www.youtube.com/channel/UC5SBBoO1Ayof4BuZBQHIQyg
https://www.pinterest.com/979vnlive/
https://social.msdn.microsoft.com/profile/979vnlive
https://social.technet.microsoft.com/profile/khoavantay/
https://bbs.now.qq.com/home.php?mod=space&uid=6081547
https://www.blogger.com/profile/00515858138545893865
https://www.reddit.com/user/979vnlive
https://medium.com/@979vnlive
https://www.flickr.com/people/979vnlive/
https://www.tumblr.com/979vnlive
https://979vnlive.wixsite.com/my-site
https://979vnlive.livejournal.com/profile
https://979vnlive.wordpress.com/
https://sites.google.com/view/979vnlive/trang-ch%E1%BB%A7
https://linktr.ee/979vnlive
https://www.twitch.tv/979vnlive/about
https://tinyurl.com/979vnlive
https://ok.ru/profile/605220830226/statuses/156880225507346
https://profile.hatena.ne.jp/nhacai979vnlive/
https://issuu.com/979vnlive
https://www.liveinternet.ru/users/nhacai979vnlive/
https://dribbble.com/979vnlive/about
https://979vnlive.webflow.io/
https://500px.com/p/979vnlive?view=photos
https://about.me/nhacai979vnlive
https://tawk.to/979vnlive
https://www.deviantart.com/979vnlive
https://ko-fi.com/979vnlive
https://www.provenexpert.com/979vnlive/
https://hub.docker.com/u/979vnlive
https://independent.academia.edu/979vnlive
https://www.diigo.com/profile/nhacai979vnlive
https://glose.com/u/979vnlive
https://favinks.com/profile/979vnlive/
https://linkhay.com/u/979vnlive
https://979vnlive.amebaownd.com/
Understanding increment syntax in Ruby
Published: 2023-11-19 05:18:08

In Javascript, we can concisely increment a variable by 1:

```
x++
```

Fast, easy, and simple! I tried doing the same thing in Ruby! Alas, that did not work. In Ruby, there is no x++ operator like there is in JS. The reason for this is largely due to the design philosophy of the Ruby language.

Ruby emphasizes readability and and prefers explicit operations over shorthand ones. In Ruby, we do:

```
x+=1
```

The x+=1 operation is clear: it increases the value of x by 1. In addition, Ruby has another method to increment a variable:

```
x = 1
x = x.next
```

Of course, the good old fashioned

```
x = x + 1
```

works just fine, too :)

Although I understand Ruby prefers explicit operations, I do prefer the simplicity of JS and Python. Once you've been coding awhile, you come to appreciate the simpler syntax. However, an explicit language like Ruby is great for beginners understanding the basics. Every language has their pros and cons.
Fastest method for multi-line commenting in Ruby
Published: 2023-11-19 05:11:28

In Javascript, I was used to multi-line commenting like this:

```
/* */
```

It was fast, easy, and simple. I tried doing the same thing in Ruby! Alas, that did not work. Although single line commenting is fine:

```
#
```

I did not know how to multi-line comment. Lo and behold, it was more complicated than in Javascript:

```
=begin
This is a 
multi-line comment in Ruby
=end
```

Fortunately, I learned that simply doing ```Cmd + /``` was a much faster way to multi-line comment, which incidentally, is the same shortcut used to multi-line comment in JS!
116 berufliches Vorwärtskommen: Bist du ein Früharbeiter?
Tags: deutsch, career, motivation, survey
Published: 2023-11-19 05:00:00

Moin Moin,

heute würde ich gerne von euch wissen, um wie viel Uhr ihr _für gewöhnlich_ anfangt zu arbeiten. Damit sind sämtliche Maßnahmen zur Förderung und Erhaltung eurer Karriere gemeint, also die alltägliche „Arbeit“, Fortbildung, Verwaltungsarbeit, …

1) Vor 4 Uhr
2) Von 4 bis 5 Uhr
3) Von 5 bis 6 Uhr
4) Von 6 bis 7 Uhr
5) Von 7 bis 8 Uhr
6) Nach 8 Uhr

Zugeteilter Schichtdienst ist hiervon ausgenommen. Gemeint sind die Arbeitszeiten, die man sich selbst setzt.

Zusatzfrage:
Arbeitest du zu der Zeit allein oder bist für gewöhnlich zum Arbeiten verabredet?

Lass uns mittels Kommentaren austauschen.

Beste Grüße,
Mustafa

Oder auch mittels E-Mail: mustafa.kevin.dwenger@posteo.de
Betreff: Austausch
I created a shapes drawing app using React called ShapX.
Published: 2023-11-19 04:32:47

Hello everyone 👋🏼, I'm coming here to present to you an application that I created using **React** that I called **ShapX** which aims to provide you the possibility to draw shapes like in drawing apps.

## What's ShapX ?

well, **ShapX** is a shapes drawing app that you can use to create forms like: squares, rectangles, circles, ellipses, diamonds and hexagons...

After having drew a shape, it directly calculates some geometric properties like perimeter and area of your shape.

## What are the core features ?

You will have the possibility to test it in real live **(only on your computer)**, but globally, **ShapX** comes with the following features: 

- Creating  new drawing file
- Renaming the file
- Adding shapes for any available types
- Changing parameters of the shapes (position, width, height, radius)
- Changing color of the shape
- Removing and duplicating shapes
- Export the file into PNG, JPG and a custom file with **.shapx** extension
- Load a SHAPX file 

These are the fundamentals 🔥

I did the whole app in just 5 days 😅😅

## Let's see it in images

- Welcome screen

![Shapx - Welcome screen](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/39peca0cvn92zv41cp3n.png)

- Empty drawing screen

![Shapx - Empty drawing file](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0wtoatlvlfldfj79jib7.png)

- Adding one shape

![Shapx - Add shapes](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/emaiqmurh8ihjo1gnu9l.png)

- Changing color of the shape

![Shapx - Change color](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7n00pbg0o6hk6uclyeqf.png)

## More

For managing state, I decided to use **GX**, a lightweight and powerful tool that helps a lot in state management.

It's my own tool that I created 😁😁, and I use it in all my React, Nextjs and React Native applications.

Check the documentation of GX: https://gx.dilane3.com

The app is available to public, and you have the possibility to test and leave comments right here, I will really appreciated it.

Link of the app: https://shapx.dilane3.com

You also have to possibility to access the code on GITHUB, please leaves stars ⭐, it helps a lot.

GITHUB: https://github.com/dilane3/shapx-client

## Thanks for reading

Thanks for having read my post 😉
Caching data in Angular using ts-cacheable
Tags: angular, typescript, caching, library
Published: 2023-11-19 03:41:00


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

One of my favorite ways to cache API requests in Angular is using the ts-cachable library
🐳 Easy to use with decorators
🐳 Customizable caching strategy
🐳 Mutatable cache data
🐳 Caching using local storage or memory
🐳 A lot of configurations
🐳 Only 13.4kb bundle size
🐳 Only 4ms download time

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


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


**Here you can find their NPM package:**
[https://www.npmjs.com/package/ts-cacheable](https://www.npmjs.com/package/ts-cacheable)

---

Let's get connected! You can find me on:
- Medium: [https://medium.com/@nhannguyendevjs](https://medium.com/@nhannguyendevjs)
- dev.to: [https://dev.to/nhannguyendevjs](https://dev.to/nhannguyendevjs)
- Linkedin: [https://dev.to/nhannguyendevjs](https://www.linkedin.com/in/nhannguyendevjs/)
- X (formerly Twitter): [https://twitter.com/nhannguyendevjs](https://twitter.com/nhannguyendevjs)
BSC不同节点测速
Published: 2023-11-19 02:42:38

### 测速服务器所在地：日本

---
- 基本集中在**0.06** https://bsc-dataseed.bnbchain.org 0.06 - 0.07 (最优)
- 基本集中在**0.06** https://bsc-dataseed.defibit.io/        0.06 - 0.07
- 基本集中在**0.06** https://bsc-dataseed.nariox.org/    0.06 - 0.08
- 基本集中在**0.06**   https://bsc-dataseed.ninicoin.io/     0.06 - 0.08
- 基本集中在**0.07**    https://bsc-dataseed.binance.org/   0.06 - 0.08
- 基本集中在**0.08**   https://bsc-dataseed3.binance.org/    0.07 - 0.08
- 基本集中在**0.06**   https://bsc.nodereal.io/   0.06 - 0.11
- 基本集中在**0.07**    https://bsc-dataseed-public.bnbchain.org/    0.06 - 1.24
Made a custom scripting language in one day :)
Published: 2023-11-19 01:06:24


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



for practice few days ago i made a simple scripting language in python calling it mii,here's how the syntax is :)
Microfrontend
Tags: microfrontend
Published: 2023-11-19 00:56:26

- Posts from creator Zack Jackson
 - [https://scriptedalchemy.medium.com/](https://scriptedalchemy.medium.com/)
- Implemented repo
 - [https://github.com/aminhp93/home](https://github.com/aminhp93/home)
 - [https://github.com/aminhp93/common](https://github.com/aminhp93/common)
 - asdf
Why React is Faster than other frameworks like Angular and Vue?
Published: 2023-11-19 00:49:40

React is the front end library of Javascript and its not a complete framework. Most of the complex tasks such as routing, form validation, data fecthing are done by some other supporting libraries of React. 

So, here are some of the reasons which makes react much faster- 

- React follows Declarative approach that means you dont need to worry about the DOM updation and rendering as it used to be in Jquery or in plain Javascript. React does everything to update it faster. 

- React uses bundlers such as webpack or parcel that makes lots of things such a minification, bundling, uglification of code and image size reduction to minimize the size of the final bundle. 

- Also, it does the tree-shaking where the unused code is discarded and a compressed build file is created. 

- It does the translation of the ES6 and typescript code to browser-compatible plain javascript.

- Also, it provides the Hot Module replacement and dev server locally and ES linting so that you can check the errors right away on the console. 

- React uses the Virtual DOM so that whenever the variable or state changes in the component, it creates another DOM like Object in the memory and comparison between these two Objects takes place with the diffin algorithm. 

- Basically, the DOM operations are very expensive to perform hence the virtual DOM object comparison takes place in React that makes it faster to compare the JS objects than the HTML elements of the actual DOM. 

- Reconciliation is the process that makes updates to the actual DOM with the difference found in the comparison of virtual dom objects. 

- React follows the unidirectional data flow that makes the tracking of the state updates easier. 

- React also provides the server-side rendering option 

- So, these are some of the advantages that make the React app faster as compared to the Angular or VueJS application.

Also, all the libraries are coming up with enhanced features in every release, so it all depends on the use case for the speed comparison. One can prepare a use case to prove whether React is faster or Vue/Angular. So, I'm just giving my two cents regarding the internals of React. We cant say React would be faster or some other framework for sure. There should not be any argument on it.
Lost Recovery Masters Best Legitimate Hacker Company
Tags: webdev, programming, blockchain, bitcoin
Published: 2023-11-19 00:44:13


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7l0cvkpx8jb3k4xah0j5.jpeg)Hello,
Do you need hacking services or are you faced with delays and unnecessary excuses from fake hackers on your job? Worry no more, Lost Recovery Masters will give you the best result without stress. They are professional hackers, what hacking services do you need? They will render it with a swift response and no delays, your job is 100% guaranteed. Their services also includes:

*School grade hack,
*hack into email accounts,
*all social media accounts,
*school database to clear or change grades,
*Retrieval of lost documents
*Erase criminal records
*Company records and systems,
*Bank accounts,
*Iphone Hack
* Credit card hacking,
*Website crashed hack
* Credit score hack,
* Monitor your partner's phone, etc..
Recommendation by Felix Bikel
Podman/Docker container with a (GUI) remote desktop VNC on Raspberry PI 4
Tags: podman, docker
Published: 2023-11-19 00:43:55

## Kasmweb
```bash
podman run --rm -ti -p 6901:6901 \
   -e VNC_PW=password \
   docker.io/kasmweb/core-ubuntu-jammy:aarch64-1.14.0-rolling
```
With a web browser, login using `kasm_user`. Password is defined by env variable `VNC_PW`.

Resources:
- https://hub.docker.com/r/kasmweb/core-ubuntu-jammy
- https://kasmweb.com/docs/latest/how_to/building_images.html#