teleren/devto huggingface dataset:
Typescript ESLint Global Variables
Tags: webdev, javascript, eslint, typescript
Published: 2023-11-24 10:16:53

Eslint let us specify the global variable. This configuration allows eslint to know that a variable exists even if it is not referenced in the code. Here is an example:

```js
{
  "globals": {
    "dataLayer": true
  }
}
```
In addition to specifying it, you can declare the variable as writable or not. Here is an example:

```js
{
  "globals": {
    "dataLayer": "writable"
  }
}
```
Or only declare it as read-only:

```js
{
  "globals": {
    "dataLayer": "readonly"
  }
}
```
The Ultimate Guide to blood pressure in winters
Published: 2023-11-24 10:16:07

During winter, monitor blood pressure diligently as cold weather can constrict blood vessels, impacting cardiovascular health. Engage in indoor exercises like walking or yoga to maintain physical activity levels. Adopt a heart-healthy diet rich in fruits, vegetables, and lean proteins while limiting salt intake . Stay hydrated despite the cold and dress in layers to regulate body temperature . Here are the some key features to understand more about [blood pressure in winters](https://www.whitecoatsclinic.com/blood-pressure-in-winters/) : 

1.Temperature Impact: Cold weather may cause blood vessels to constrict, potentially increasing blood pressure. Monitor it regularly. 

2.Indoor Exercise: Engage in indoor activities like yoga or brisk walking to maintain physical activity levels, combating winter sedentary habits. 

3.Healthy Diet: Opt for a heart-healthy diet rich in fruits, vegetables, and lean proteins. Control salt intake to help manage blood pressure. 

4.Hydration is Key: Despite the cold, stay well-hydrated. Dehydration can influence blood pressure levels negatively. 

5.Layer Clothing: Dress in layers to regulate body temperature, preventing sudden temperature changes that can stress the cardiovascular system. 

6.Avoid Overexertion: Be cautious during strenuous activities in the cold, as overexertion can strain the heart. Take breaks and listen to your body. 

7.Regular Monitoring and Consultation: Measure blood pressure regularly, adhere to medications, and consult healthcare providers for personalized advice and adjustments.

Remember, individual responses to weather variations can vary, so it's essential to personalize your approach to blood pressure management. Always consult with your healthcare provider for personalized advice based on your health status.
Gestures in Jetpack compose — All you need to know – Part-2
Tags: android, jetpackcompose, gestures, programming
Published: 2023-11-24 10:02:55



Jetpack Compose revolutionizes UI development in Android with its intuitive and efficient approach. Among its many features, gestures play a pivotal role in crafting interactive and responsive user experiences. 

In the **[first part](https://blog.canopas.com/gestures-in-jetpack-compose-all-you-need-to-know-part-1-9d26570e56bb)**, we delved into the fundamentals, covering a range of Gesture Modifiers and Detectors.

In this part, we will take our understanding of gestures in Jetpack Compose to the next level. 

We will unravel the complexities of handling multiple gestures concurrently, creating a fling effect, manually tracking interactions, disabling interactions when necessary, and even waiting for specific events.

## Table of Contents

- How to handle multiple gestures together? 
- How to handle a fling effect with gesture? 
- How to collect interaction manually?
- How to disable interaction? 

## How to handle multiple gestures together?

We can handle multi-touch like rotation, panning moving, and zooming on an element using a detector — `detectTransformGesture` or by high-level Modifier — `transformable()`.

As you venture deeper into the world of Jetpack Compose gestures, remember that these powerful tools add finesse and interactivity to your UI. But there's always more to explore! 

Dive into the practical implementation and code examples to elevate your Compose expertise and let your UI come alive with gestures. 

To explore practical examples and detailed code snippets, head over to **[Canopas Blog.](https://blog.canopas.com/gestures-in-jetpack-compose-all-you-need-to-know-part-2-61da0c2bab6f)**

Follow **[Canopas](https://blog.canopas.com/)** for our latest technical blog posts!
Project Serenity - 33% Life-time Commissions
Published: 2023-11-24 10:02:09

Introducing A Simple Strategy To Make Life-Changing Money
From The Fastest And Biggest Wealth Transfer In History.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c50ava00cxv1126qpulq.png)>>https://www.digistore24.com/redir/307348/shanalex/
JDK 21 : Virtual Threads intro
Tags: java, jdk21
Published: 2023-11-24 09:57:41

Java has regarded platform threads as lightweight abstractions built upon operating system (OS) threads (see drawing below). The creation of these platform threads incurred a significant cost due to the allocation of resources at the OS level (kernel). To mitigate this overhead, in Java, we traditionally used thread pools. Furthermore, it’s necessary to place constraints on the number of platform threads since these resource-intensive threads can potentially impact the overall machine performance. In effect Java is not itself managing the state of these threads, it rather relies on the OS in this regard with all the pros and cons. On one side Java doesn’t need to manage scheduling and blocking. On the other side of this, the java process becomes dependent on the OS scheduling, handling of blocking I/O etc and cannot really make any assumption here. Also, the scheduling algorithms would differ from OS to OS.

Those limitations are grounded in the fact that platform threads are directly mapped on a one-to-one basis to OS threads.

Read the whole article
[JDK 21 : Virtual Threads](https://alexander.holbreich.org/jdk21-virtual-threads/)
MILLIONAIRE SECRETS
Published: 2023-11-24 09:55:30

**Whats in MILLIONAIRE SECRETS:

Instagram Wealth Generator 3.0
Dropshipping Masterguide
Amazon FBA
Also contains my Affiliate Marketing Guide for FREE.**
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s1v9t4an4pbprt57lqh5.png)>>https://www.digistore24.com/redir/372576/shanalex/(open link on new tab)









)
Python script that triggers an alarm when a file is pasted or created in a specific directory
Tags: python, programming, coding
Published: 2023-11-24 09:30:11

created by : [YouCode](https://you.com/code)
```python
import time
import winsound
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler

class FileChangeHandler(FileSystemEventHandler):
    def on_created(self, event):
        if not event.is_directory:
            print(f'File {event.src_path} was created')
            play_alarm_sound()

def play_alarm_sound():
    winsound.PlaySound("SystemAsterisk", winsound.SND_ALIAS)

if __name__ == "__main__":
    path = 'path_to_directory'  # replace with the directory path you want to monitor

    event_handler = FileChangeHandler()
    observer = Observer()
    observer.schedule(event_handler, path, recursive=False)
    observer.start()

    try:
        while True:
            time.sleep(1)
    except KeyboardInterrupt:
        observer.stop()

    observer.join()

```


In this script, we define the FileChangeHandler class that inherits from FileSystemEventHandler and overrides the on_created method. When a file is created in the monitored directory, the on_created method is called, and it prints a message and plays the alarm sound by calling the play_alarm_sound function.

To use the script, replace 'path_to_directory' with the actual path to the directory you want to monitor for file creations. The script will continuously run and trigger the alarm whenever a new file is created in the specified directory.

Please note that this script is specifically designed for Windows systems due to the use of the winsound library for playing the alarm sound. If you are using a different operating system, you will need to modify the play_alarm_sound function to use a different method for playing sounds.

Also, make sure you have the necessary permissions to access the monitored directory and that your system has sound capabilities.
Digital Marketing Course Saket | 8810606010
Tags: beginners, webdev, career, cloud
Published: 2023-11-24 09:25:53

We Are Delhi's Most Ranked Institute For Computer And IT Solution. 30k Learner base under extreme latest technology and world class faculty. we Create Immersive Offline and Online Learning Experience from last 7 Years in this Industry. **DizitalAdda** in not Only Creating Best Skilled Manpower for the nation by offering best suitable and most demand courses through its super LMS Module. we Focused on Practical and Live Own and Outsourced Projects for the better real time experience for all the students. Our Excellent student portal designed by the experts for the better excess for the student at their place too. We are Skilling Students Through Our Learning Module System and Our Other Section is act like digital Marketing agency We offered Our services to More then 70 Small and Big Business, Individual and professionals in about 30 cities of India.


**For More Info :**

Mail :**info@dizitaladda.com**
Contact:**8810606010**
Web:[https://dizitaladda.com]
Unique Brand Development Strategies | Hogoco
Tags: brandingagencyinbangalore, brandingservices, brandingagency, branddesignservices
Published: 2023-11-24 09:24:56

Unique brand development strategies refer to innovative approaches employed by businesses to establish and enhance their brand identity in the market. These strategies involve creating a strong and memorable brand image by emphasizing characteristics that set the brand apart from competitors. Hogoco, the best [branding agency in Bangalore](https://hogoco.com/services/branding/) works closely with clients to understand their values, target audience, and market positioning. Successful implementation of brand strategies enhances a company's reputation, builds trust, and ultimately contributes to increased customer loyalty.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0okwlr8gesjk4yi3eiix.png)
📢#BlackFriday23 LIMITED OFFER Only 117 Discounts left❗️
Tags: blackfriday, news, webdev, javascript
Published: 2023-11-24 09:23:56

📢_#BlackFriday23 LIMITED OFFER❗️
Up to: 97% OFF Only 117 Discounts left❗️_ 

**➕ Special Offer - #BlackFriday Codes ➕** 
➕Exclusive $30 discount ON TOP OF already discounted Black Friday offers.➕

**📢MDB up to 97% OFF❗️**
🧱 5000+  COMPONENTS
🖼️ 721+ design BLOCKS
🎨 166+ TEMPLATES
🔌 47+ PLUGINS
⚗️ 19+ lab CONCEPTS
⚙️ 6 backend INTEGRATIONS
✔️ LIFETIME license
✔️ 12m. premium SUPPORT
✔️ 12m. UPDATES

UI Kits for #Bootstrap #Reactjs #Vuejs and #Angular

Up to 97% OFF Only 117 Discounts left!

[So don't waste your time and check it out](https://mdbootstrap.com/sale/november/standard/)
Elegance Redefined: Discovering the Splendor of EMAAR Park Gate in Dubai Hills Estate
Published: 2023-11-24 09:19:50

Dubai Hills Estate, synonymous with luxury and innovation, is set to raise the bar with EMAAR Park Gate. Amidst the opulent landscape of one of Dubai's premier developments, EMAAR Park Gate introduces a new echelon of sophistication. With 1, 2, and 3 BR apartments priced at AED 1.5 million, this residential enclave beckons those in pursuit of a lifestyle that seamlessly blends elegance and convenience.

 Prime Location, Luxurious Lifestyle:

EMAAR Park Gate enjoys a prime location within Dubai Hills Estate, placing residents in the heart of a master-planned community that epitomizes the best of Dubai living. Surrounded by lush greenery and unparalleled amenities, these apartments promise a lifestyle that effortlessly combines urban convenience with natural serenity.

 Architectural Brilliance:

As you enter EMAAR Park Gate, be prepared to be mesmerized by architectural brilliance that reflects EMAAR's commitment to excellence. The 1, 2, and 3 BR apartments are not just residences; they are expressions of contemporary design, with each detail carefully curated to provide a living space that is as aesthetically pleasing as it is functional.

 Luxurious Living Spaces:

Step into the apartments at EMAAR Park Gate, and you're greeted by living spaces that redefine luxury. From the expansive 1 BR layouts to the spacious 3 BR residences, every unit is designed to optimize space and natural light. High-quality finishes, modern fixtures, and panoramic views contribute to an ambiance of opulence.

Unparalleled Amenities:

EMAAR Park Gate isn't just about apartments; it's about a holistic living experience. Residents can indulge in a range of amenities, including a fitness center, swimming pools, and landscaped gardens. The community spaces are meticulously planned to provide opportunities for relaxation, recreation, and socializing.

Investment in Luxury:

Priced at AED 1.5 million, these apartments not only offer a luxurious lifestyle but also represent a prudent investment opportunity. Dubai Hills Estate is a sought-after destination known for its growth potential and resilience in the real estate market, making EMAAR Park Gate an attractive proposition for investors.

Conclusion:

EMAAR Park Gate in Dubai Hills Estate stands as a testament to the confluence of elegance, innovation, and investment potential. Whether you choose a 1, 2, or 3 BR apartment, you're invited to experience a lifestyle where luxury is not just a feature but a way of life. Welcome to EMAAR Park Gate, where every residence is a masterpiece, and every moment is an expression of refined living.

Visit More:- https://www.dubaihousing-ae.com/project/emaar-park-gate/
Oracle Blockchain Development Company | Oracle Blockchain Cloud Development
Tags: oracle, blockchain, company, cloud
Published: 2023-11-24 09:19:37

Unleash the power of the Oracle Blockchain Platform with Codezeros. Our expert team specializes in Oracle-based cryptocurrency services, smart contract development, and blockchain app development. Leveraging the Hyperledger framework, we ensure secure, decentralized, and transparent solutions. Our Oracle blockchain development expertise enables seamless integration with external data sources, APIs, and off-chain processing. With our decentralized Oracle network, we connect smart contracts with reliable off-chain data, ensuring end-to-end security and immutability. Trust us as your Oracle blockchain service provider, offering scalability, reliability, and connectivity across Oracle Cloud Infrastructure and other blockchain ledgers. Revolutionize your business with Codezeros' cutting-edge [Oracle blockchain solutions](https://www.codezeros.com/oracle-blockchain-development-company).
Contributing to Open Source: Adding Prettier Feature to Live-ATC
Tags: prettier, webdev, javascript, beginners
Published: 2023-11-24 09:14:39

During my search for the third repository to contribute to, I stumbled upon [liv-atc](https://github.com/Isaiah-Hamilton/live-atc) repository. In this repository I worked on [Issue #9](https://github.com/Isaiah-Hamilton/live-atc/issues/9), involved adding a Prettier feature to the project. This blog post will detail the process I followed, the solution I implemented, and the impact of my contribution.

## Understanding the Issue
The topic of discussion for issue #9 was how to integrate Prettier into the project. Prettier is a popular code formatter that aids in keeping a codebase's coding styles uniform. Enforcing a set of formatting rules was intended to improve the project's code quality and readability.

## Solution Implementation

To implement the Prettier feature, I followed these key steps:
###1. Install Prettier:
I started by installing prettier using the command given below:
```
npm install --save-dev prettier
```

###2. Prettier Configuration
Next, I created a .prettierrc file at the root of the project. This file defines the formatting rules that Prettier should apply. Here is a snapshot of the configuration:

```
{
  "arrowParens": "always",
  "bracketSpacing": true,
  "embeddedLanguageFormatting": "auto",
  "endOfLine": "lf",
  "insertPragma": false,
  "proseWrap": "preserve",
  "requirePragma": false,
  "singleQuote": true,
  "tabWidth": 2,
  "trailingComma": "es5",
  "useTabs": false,
  "printWidth": 100
}
```
These configurations ensure consistent code styling, including aspects like indentation, line length, and the use of single quotes.

###3. Prettier Ignore
Next, I created a .prettierignore file to specify files and directories that should be excluded from Prettier formatting. This helps in avoiding unnecessary modifications to certain files. The contents of the file were:

```
package.json
package-lock.json
node_modules/
.next
```

###4. Pull Request
After implementing the Prettier feature locally and ensuring that it worked seamlessly with the project, I created a pull request [#11](https://github.com/Isaiah-Hamilton/live-atc/pull/11). Which is later approved by the maintainer of the repository.
Join coding, crypto, and financial challenges! Earn bounties and a chance to join the team!
Tags: challenge, bounty, opensource, ai
Published: 2023-11-24 09:06:12

**🔗 BlockShop Challenges: Building the Future of Crypto Together**

Are you passionate about blockchain and crypto innovation? BlockShop, a leading blockchain/crypto organization, is on the lookout for talented individuals like you to join our mission in shaping the future of the crypto space. We've lined up a diverse array of challenges that cater to different skills and interests, providing you with the opportunity to contribute and shine.

**🏆 Current Challenges Overview:**

**1. Add a Market Manipulations Widget** (Deadline: November 25 - prolonged)
**- Skills:** JavaScript/TypeScript, Web development, Widget design
**- Bounty:** 🥇 $1000 🥈 $500 🥉 $250

**2. Contribute to Market Manipulation Wiki**
**- Skills:** Data analysis, Writing, Market knowledge
**- Bounty:** $500

**3. Twitter Home Timeline Scraper**
**- Skills:** Data scraping, MongoDB, Twitter
**- Bounty:** $1000

**4. Confident Predictions Selection**
**- Skills:** Data science, NLP, Machine learning
**- Bounty:** $500

**5. Improve QA bots with GH Actions**
**- Skills:** Front-end, NLP, API, LLM
**- Bounty:** $1000

**6. Contribute to Crypto Attacks Wiki**
**- Skills:** Markdown, Writing, Research
**- Bounty:** You'll be awarded 3 cents per character

**7. Topic dataset collection**
**- Skills:** NLP
**- Bounty:** $100

**🌐 How to Participate:**
Visit [BlockShop Challenges](https://challenge.dn.institute/challenges?dev-post) and choose the challenge that aligns with your skills and interests. Have questions? Feel free to ask in the comments section of the challenge issue.

**🚀 Bonus Opportunity:**
Perform exceptionally well in one of our challenges, and you might receive an exclusive invitation to join our dynamic team. BlockShop is always on the lookout for talented individuals to collaborate in building a brighter future for crypto.

Ready to make an impact? Join one of our challenges today and be a part of the crypto revolution!
Keychron Linux Function Keys
Tags: linux
Published: 2023-11-24 08:58:00

I have a **Keychron K8** keyboard. I like this keyboard so much! If you have a Keychron keyboard you noticed that in Linux when you press e.g. F2 key in order to change name of some file you adjust brightness (in my case). Default behavior of these keyboards is multimedia keys in function keys.

The second problem I noticed: reconnection takes very long time. I had to try many times to connect after disconnect. It was so frustrating...

So I found a solution in these two articles:

1. [Mike Shade](https://mikeshade.com/posts/keychron-linux-function-keys/)
2. [Andre Brait](https://gist.github.com/andrebrait/961cefe730f4a2c41f57911e6195e444)



Mike resolved problem with **function keys in Keychron keyboard**.

* Set the keyboard to Windows mode via the side switch

* Use `Fn + X + L` (hold for 4 seconds) to set the function key row to "Function" mode. (usually all that's necessary on Windows)

* type `echo 0 | sudo tee /sys/module/hid_apple/parameters/fnmode` in terminal



Andre resolved problem with slow reconnection via Bluetooth:

* Edit the file `/etc/bluetooth/main.conf`
* Uncomment FastConnectable config and set it to true: `FastConnectable = true`
* Uncomment `ReconnectAttempts=7` (set the value to whatever number that you want)
* Uncomment `ReconnectIntervals=1, 2, 3`



 What I did additionally was creating autostart above commands when my system is starting up.

1. Create a file '/opt/my_scripts/keychron.sh'

   ```shell
   #!/bin/sh
   #sleep 20
   echo 0 | tee /sys/module/hid_apple/parameters/fnmode
   exit 0
   ```

   **Notice there is no `sudo` in this file!!!**

2. Make this file executable by typing `sudo chmod a+x /opt/my_scripts/keychron.sh`

3. Create a service file: `sudo touch /etc/systemd/system/keychron.service`

4. Edit this file `sudo xed /etc/systemd/system/keychron.service` and paste it:

   ```shell
   [Unit]
   Description="Keychron service"
   
   [Service]
   ExecStart=/opt/my_scripts/keychron.sh
   Restart=on-failure
   RemainAfterExit=true
   
   [Install]
   WantedBy=multi-user.target
   ```

5. Start this service `sudo systemctl start keychron`

6. Make it lauch automatically upon booting `sudo systemctl enable keychron`



That's it. From now when I boot my system my function keys are working not in "multimedia mode" and Bluetooth reconnection is very, very fast.