Snippets Collections
# 2-> 1 subs 1 baseline
import json

file_path = "referOneSub"

with open(file_path, 'r') as file:
    data = json.load(file)

data_array = data['data']
insert_object_ids = [ObjectId(_id) for _id in data_array]
print(len(insert_object_ids))
# print(insert_object_ids)

from bson.objectid import ObjectId

for _id in insert_object_ids:
#     print("one")
    record = db["participantBaselineAndFollowupData"].find_one({"_id": _id})
    
    if record:
        user_id = record["participantId"]
        
        subscription = db["subscription"].find_one({"userId": user_id})
        
        if subscription:
            program_start_date = subscription.get("startDate", "")
            program_code = subscription["subscriptionPlan"].get("programCode", "")
            
            db["participantBaselineAndFollowupData"].update_one(
                {"_id": _id},
                {"$set": {"programCode": program_code, "programStartDate": program_start_date}}
            )
print("completed")
    
# 1- > Deleting based on _id in baselineTable

from bson import ObjectId
import json

file_path = 'delete_ids'

with open(file_path, 'r') as file:
    data = json.load(file)

data_array = data['data']

delete_object_ids = [ObjectId(item) for item in data_array]
db["participantBaselineAndFollowupData"].delete_many({"_id": {"$in": delete_object_ids}})
#to check
# records = db["participantBaselineAndFollowupData"].find({"_id": {"$in": delete_object_ids}})
# count=0
# for record in records:
#     count=count+1
#     print(record["_id"])
# print(count)
import 'package:flutter/material.dart';

#set( $CamelCaseName = "" )
#set( $part = "" )
#foreach($part in $NAME.split("_"))
    #set( $CamelCaseName = "${CamelCaseName}$part.substring(0,1).toUpperCase()$part.substring(1).toLowerCase()" )
#end
#parse("File Header.java")
class ${CamelCaseName} extends StatelessWidget {
  const ${CamelCaseName}({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
     return Container();
  }
}
import 'package:flutter/material.dart';

#set( $CamelCaseName = "" )
#set( $part = "" )
#foreach($part in $NAME.split("_"))
    #set( $CamelCaseName = "${CamelCaseName}$part.substring(0,1).toUpperCase()$part.substring(1).toLowerCase()" )
#end
#parse("File Header.java")
class ${CamelCaseName} extends StatelessWidget {
  static route() =>
      MaterialPageRoute(builder: (context) => ${CamelCaseName}());
  const ${CamelCaseName}({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
     return Scaffold(
      body:  
       Column(
          children: [],
        ),
     
    );
  }
}
import 'package:flutter/material.dart';

class Application extends StatelessWidget {
  const Application({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: YourScreen(),
    );
  }
}
concurrent = 1
check_interval = 0
shutdown_timeout = 0

[session_server]
  session_timeout = 3600
[[runners]]
  name = "Runner Name - Docker"
  url = "https://gitlab.?.com/"
  token = "<Gitlab-Runner-Token"
  executor = "docker"
  # Path to the custom CA certificate
  tls-ca-file = "path to certs"
  [runners.docker]
    gpus = "all"
    privileged = false
    tls_verify = false
    image = "docker:stable"  # Specify the default Docker image for running jobs
    disable_cache = false
    volumes = ["/cache"]
    shm_size = 0  # Disable Docker build sharing
    [runners.docker.auth]
      username = "<gitlab-Token>"
      password = "<Token-Password>"

[[runners]]
  name = "Runner Name - Shell"
  url = "https://gitlab.?.com/"
  token = "<Gitlab-Runner-Token>"
  executor = "shell"
  # Path to the custom CA certificate
  tls-ca-file = "path to certs"
import 'dart:convert';
import 'dart:io';

import 'package:dio/dio.dart';
import 'package:dio_cache_interceptor/dio_cache_interceptor.dart';
import 'package:path_provider/path_provider.dart';

import '../../features/auth/core/datasources/auth_local_data_source.dart';
import 'api_constants.dart';
import 'api_exceptions.dart';

abstract class ApiClient {
  Future<dynamic> get(String path,
      {bool withParse = true,
      Map<String, dynamic>? params,
      Map<dynamic, dynamic>? filter});
  Future<dynamic> post(String path,
      {required Map<String, dynamic> params, bool withToken = false});
  Future<dynamic> patch(String path, {required Map<String, dynamic> params});
  Future<dynamic> put(String path, {required Map<String, dynamic> params});
  Future<dynamic> download({required String fileUrl});
  Future<dynamic> deleteWithBody(String path,
      {Map<String, dynamic>? params, bool withParse = false});
}

class ApiClientImpl extends ApiClient {
  final AuthLocalDataSource _authenticationLocalDataSource;
  final Dio clientDio;

  ApiClientImpl(this.clientDio, this._authenticationLocalDataSource);

  @override
  Future<dynamic> download({required String fileUrl}) async {
    String sessionId = await _authenticationLocalDataSource.getToken() ?? "";
    clientDio.interceptors
        .removeWhere((interceptor) => interceptor is DioCacheInterceptor);
    final header = {'Authorization': "Bearer $sessionId"};
    final Directory dir = await getApplicationDocumentsDirectory();

    try {
      await clientDio.download(fileUrl, dir.path,
          options: Options(headers: header));
    } catch (e) {
      throw Exception("Error downloading file: $e");
    }
  }

  @override
  Future<dynamic> get(String path,
      {bool withParse = true,
      Map<dynamic, dynamic>? filter,
      Map<String, dynamic>? params}) async {
    String sessionId = await _authenticationLocalDataSource.getToken() ?? "";
    final Map<String, dynamic> header =
        sessionId.isNotEmpty ? {'Authorization': "Bearer $sessionId"} : {};
    final pth = _buildUrl(path, params);

    final response = await _tryCatch(() => clientDio.get(pth,
        options: Options(contentType: "application/json", headers: header)));
    return _errorHandler(response, withParse: withParse);
  }

  @override
  Future<dynamic> patch(String path,
      {required Map<dynamic, dynamic> params}) async {
    String sessionId = await _authenticationLocalDataSource.getToken() ?? "";
    final header = {
      'Accept': 'application/json',
      if (sessionId.isNotEmpty) 'Authorization': "Bearer $sessionId"
    };

    final response = await _tryCatch(() => clientDio.patch(_buildUrl(path),
        data: jsonEncode(params), options: Options(headers: header)));
    return _errorHandler(response);
  }

  @override
  Future put(String path, {required Map<String, dynamic> params}) async {
    String sessionId = await _authenticationLocalDataSource.getToken() ?? "";
    final header = {
      'Accept': 'application/json',
      if (sessionId.isNotEmpty) 'Authorization': "Bearer $sessionId"
    };

    final response = await _tryCatch(() => clientDio.put(_buildUrl(path),
        data: jsonEncode(params), options: Options(headers: header)));
    return _errorHandler(response);
  }

  @override
  Future<dynamic> deleteWithBody(String path,
      {Map<String, dynamic>? params, bool withParse = true}) async {
    String sessionId = await _authenticationLocalDataSource.getToken() ?? "";
    final header = {'Authorization': "Bearer $sessionId"};

    final response = await _tryCatch(() => clientDio.delete(_buildUrl(path),
        data: jsonEncode(params), options: Options(headers: header)));
    return _errorHandler(response, withParse: withParse);
  }

  @override
  Future<dynamic> post(String path,
      {required Map<String, dynamic> params, bool withToken = false}) async {
    String sessionId = await _authenticationLocalDataSource.getToken() ?? "";
    final header = {
      "Content-type": "application/json",
      "Accept": "*/*",
      if (sessionId.isNotEmpty) 'Authorization': "Bearer $sessionId"
    };

    final response = await _tryCatch(() => clientDio.post(_buildUrl(path),
        data: jsonEncode(params), options: Options(headers: header)));
    return _errorHandler(response);
  }

  Future<Response> _tryCatch(Future<Response> Function() function) async {
    try {
      try {
        final Response response = await function();

        return response;
      } on DioException catch (error) {
        print("ERROR CATCH $error");

        throw   ExceptionWithMessage('Unknown error occurred ${error.toString()}');
      }
    } on DioException catch (e) {
      final response = e.response;
      if (response == null) {
        throw const ExceptionWithMessage('Unknown error occurred');
      }

      _handleError(response);
      throw const ExceptionWithMessage('Unhandled error occurred');
    } catch (error) {
      throw const ExceptionWithMessage('Unknown error occurred');
    }
  }

  void _handleError(Response response) {
    String msg = "unknown_error";
    if (response.statusCode != null) {
      if (response.statusCode! >= 500) {
        throw const ExceptionWithMessage("Server is down (500)");
      }

      var responseData =
          response.data is String ? jsonDecode(response.data) : response.data;

      if (responseData is Map<String, dynamic>) {
        msg = responseData["error"] ?? responseData["message"] ?? msg;
        if (responseData["message"] is List &&
            responseData["message"].isNotEmpty) {
          msg = responseData["message"][0];
        }
      }
    }

    print("response.statusCode ${response.statusCode}");

    switch (response.statusCode) {
      case 400:
      case 403:
      case 405:
      case 409:
        throw ExceptionWithMessage(msg);
      case 401:
        throw UnauthorisedException();

      default:
        throw Exception(response.statusMessage);
    }
  }

  dynamic _errorHandler(Response response, {bool withParse = true}) {
    if (response.statusCode == 200 ||
        response.statusCode == 201 ||
        response.statusCode == 204) {
      return withParse
          ? Map<String, dynamic>.from(response.data)
          : response.data;
    }
    _handleError(response);
  }

  String _buildUrl(String path, [Map<dynamic, dynamic>? params]) {
    if (params == null || params.isEmpty) {
      return '${ApiConstants.baseApiUrl}$path';
    }
    final paramsString =
        params.entries.map((e) => '${e.key}=${e.value}').join('&');
    return '${ApiConstants.baseApiUrl}$path?$paramsString';
  }
}
let shelf = ["Think and Grow Rich", "Four-Hour Work Week", "The Power of I AM", "Eat That Frog", "Harry Potter"];
let array = [1, 2, 3, 4, 5];


array.forEach((num, index, arr) => {
  arr[index] = num * 2;

  console.log(array);
});

array.forEach(function(currentValue, index, arr))
array.forEach(function(currentValue, index, arr))
let array = [1, 2, 3, 4, 5];


array.forEach((num, index, arr) => {
  arr[index] = num * 2;

  console.log(array);
});
do{
  // loop's body
}
while // (condition)
let arr = [];
let number = 1;
let length = 5;

while (number <= length) {
  arr.push(number);
  number++

  
}
console.log(arr)
<div id="container">
  <div class="item">1</div>
  <div class="item">2</div>
  <div class="item">3</div>
  <div class="item">4</div>
  <div class="item">5</div>
  <div class="item">6</div>
  <div class="item">7</div>
</div>

<div id="container" style="--n:5;--d:5s">
  <div class="item">1</div>
  <div class="item">2</div>
  <div class="item">3</div>
  <div class="item">4</div>
  <div class="item">5</div>
</div>

<div id="container" style="--n:9">
  <div class="item">1</div>
  <div class="item">2</div>
  <div class="item">3</div>
  <div class="item">4</div>
  <div class="item">5</div>
  <div class="item">6</div>
  <div class="item">7</div>
  <div class="item">8</div>
  <div class="item">9</div>
</div>
#container {
  --n:7;   /* number of item */
  --d:12s; /* duration */

  width: 200px;
  height: 200px;
  margin: 40px auto;
  border: 1px solid #000;
  display:grid;
  grid-template-columns:30px;
  grid-template-rows:30px;
  place-content: center;
  border-radius: 50%;
}
.item {
  grid-area:1/1;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  background: #f00;
  animation: spin var(--d) linear infinite; 
  transform:rotate(0) translate(100px) rotate(0);
}
@keyframes spin {
  100% {
    transform:rotate(1turn) translate(100px) rotate(-1turn);
  }
}

.item:nth-child(1) {animation-delay:calc(-0*var(--d)/var(--n))}
.item:nth-child(2) {animation-delay:calc(-1*var(--d)/var(--n))}
.item:nth-child(3) {animation-delay:calc(-2*var(--d)/var(--n))}
.item:nth-child(4) {animation-delay:calc(-3*var(--d)/var(--n))}
.item:nth-child(5) {animation-delay:calc(-4*var(--d)/var(--n))}
.item:nth-child(6) {animation-delay:calc(-5*var(--d)/var(--n))}
.item:nth-child(7) {animation-delay:calc(-6*var(--d)/var(--n))}
.item:nth-child(8) {animation-delay:calc(-7*var(--d)/var(--n))}
.item:nth-child(9) {animation-delay:calc(-8*var(--d)/var(--n))}
/*.item:nth-child(N) {animation-delay:calc(-(N - 1)*var(--d)/var(--n))}*/
<div id="container">
  <div class="item">1</div>
  <div class="item">2</div>
  <div class="item">3</div>
  <div class="item">4</div>
  <div class="item">5</div>
  <div class="item">6</div>
  <div class="item">7</div>
</div>

<div id="container" style="--n:5;--d:5s">
  <div class="item">1</div>
  <div class="item">2</div>
  <div class="item">3</div>
  <div class="item">4</div>
  <div class="item">5</div>
</div>

<div id="container" style="--n:9">
  <div class="item">1</div>
  <div class="item">2</div>
  <div class="item">3</div>
  <div class="item">4</div>
  <div class="item">5</div>
  <div class="item">6</div>
  <div class="item">7</div>
  <div class="item">8</div>
  <div class="item">9</div>
</div>
#container {
  --n:7;   /* number of item */
  --d:12s; /* duration */

  width: 200px;
  height: 200px;
  margin: 40px auto;
  border: 1px solid #000;
  display:grid;
  grid-template-columns:30px;
  grid-template-rows:30px;
  place-content: center;
  border-radius: 50%;
}
.item {
  grid-area:1/1;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  background: #f00;
  animation: spin var(--d) linear infinite; 
  transform:rotate(0) translate(100px) rotate(0);
}
@keyframes spin {
  100% {
    transform:rotate(1turn) translate(100px) rotate(-1turn);
  }
}

.item:nth-child(1) {animation-delay:calc(-0*var(--d)/var(--n))}
.item:nth-child(2) {animation-delay:calc(-1*var(--d)/var(--n))}
.item:nth-child(3) {animation-delay:calc(-2*var(--d)/var(--n))}
.item:nth-child(4) {animation-delay:calc(-3*var(--d)/var(--n))}
.item:nth-child(5) {animation-delay:calc(-4*var(--d)/var(--n))}
.item:nth-child(6) {animation-delay:calc(-5*var(--d)/var(--n))}
.item:nth-child(7) {animation-delay:calc(-6*var(--d)/var(--n))}
.item:nth-child(8) {animation-delay:calc(-7*var(--d)/var(--n))}
.item:nth-child(9) {animation-delay:calc(-8*var(--d)/var(--n))}
/*.item:nth-child(N) {animation-delay:calc(-(N - 1)*var(--d)/var(--n))}*/
        score = score + 10 - time_to_press/100;
        score = score + 1 + time_to_press/100;
    // Challenge Solution Part 5: Add 1 bonus point for every tenth of a second under 1.0 seconds
    // Keep in mind that 1 second is equal to 1,000 milliseconds
    if(time_to_press < 1000){
        score = score + 5;
    }
      //Challenge Solution Part 4: Calculate the difference in time between the row becoming active and the button press.
      time_to_press = millis() - time_start;
interface W {
    void sum();
}

interface S extends W {
    void sub();
}

class K implements S {
    @Override
    public void sum() {
        int a = 10, b = 20, sum;
        sum = a + b;
        System.out.println(sum);
    }

    @Override
    public void sub() {
        int a = 20, b = 10, sub;
        sub = a - b; // Fix: Corrected the subtraction operation
        System.out.println(sub);
    }
}

class D {
    public static void main(String[] args) {
        K r = new K();
        r.sum();
        r.sub(); // Fix: Corrected the method call
    }
}
    //Challenge Solution Part 3: Start the timer for this row being active
    time_start = millis();
// Challenge Solution Part 2: Setup the time variables
unsigned long time_start = 0;
unsigned long time_to_press = 0;
    // Challenge Solution Part 1: Change the game won conditions with the score changes
    if(score > 9999) {
      score = 9999;
      scoreDisplay.showNumberDec(score, false);
      break;
    }
interface A {
    void show();
}

interface S {
    void hide();
}

class W implements A, S {
    public void show() {
        System.out.println("ok boss");
    }

    public void hide() {
        System.out.println("no boss");
    }
}

class L {
    public static void main(String[] args) {
        W r = new W();
        r.show();
        r.hide();
    }
}
interface X
{
    void frontened();
    void backened();
}
abstract class D implements X
{
    @Override
    public void frontened()
    {
        System.out.println("BY JAVA");
    }
}
class W extends D
{
    @Override
    public void backened()
    {
        System.out.println("BY HTml and css ");
    }
}
class V
{
    public static void main(String[] args)
    {
        W r= new W();
        r.frontened();
        r.backened();
    }
    
}
[image]=cast(Replace([image],'data:image/jpeg;base64,','')as xml).value('xs:base64Binary(.)', 'varbinary(max)')
<ul>
<li>
											
<span class="elementor-icon-list-icon">
<svg aria-hidden="true" class="e-font-icon-svg e-fas-map" style="width: 23px;padding: 0px 2px;fill: #fff;" viewBox="0 0 576 512" xmlns="http://www.w3.org/2000/svg"><path d="M0 117.66v346.32c0 11.32 11.43 19.06 21.94 14.86L160 416V32L20.12 87.95A32.006 32.006 0 0 0 0 117.66zM192 416l192 64V96L192 32v384zM554.06 33.16L416 96v384l139.88-55.95A31.996 31.996 0 0 0 576 394.34V48.02c0-11.32-11.43-19.06-21.94-14.86z"></path></svg>						</span>					
										<span>istanbul</span>
</li>
<li >
											
<svg aria-hidden="true" class="e-font-icon-svg e-fas-envelope" style="width: 23px;padding: 0px 2px;fill: #fff;" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"></path></svg>

										<span>adnan@royalcadeau.net</span>
</li>
<li>
											
<svg aria-hidden="true" class="e-font-icon-svg e-fas-phone" style="width: 23px;padding: 0px 2px;fill: #fff;" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z"></path></svg>

										<span>+90501075888</span>
									</li>
						</ul>
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:heading {"level":4,"align":"wide","textColor":"ast-global-color-5"} -->
<h4 class="wp-block-heading alignwide has-ast-global-color-5-color has-text-color">Get in Touch with Us for the Best Quality Custom Prints &amp; Supplies.</h4>
<!-- /wp:heading --></div>
<!-- /wp:group -->
<!-- wp:paragraph {"style":{"elements":{"link":{"color":{"text":"var:preset|color|ast-global-color-5"}}}},"textColor":"ast-global-color-5"} -->
<p class="has-ast-global-color-5-color has-text-color has-link-color">Royal Cadeau store specializes in selling gifts. We help you choose modern gifts suitable for all occasions</p>
<!-- /wp:paragraph -->
<!-- wp:image {"lightbox":{"enabled":false},"id":3361,"width":"203px","height":"auto","sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full is-resized"><img src="https://null-safety.com/royal/wp-content/uploads/2023/12/logoy.png" alt="" class="wp-image-3361" style="width:203px;height:auto"/></figure>
<!-- /wp:image -->
while (condition){
  //  loop's body
}
python -m venv myenv

source myenv/bin/activate

pip install mypackage

deactivate
interface customer
{
    int a=20;
    void purchase();
}
class Owner implements customer
{
    @Override
    public void purchase()
    {
        System.out.println("customer bought "+a + "kg");
    }
    
    
}
class A
{
    public static void main(String[] args)
    {
        
        System.out.println(customer.a+"kg");/* it can be call without making an obj that is why its static*/
    }
}
interface customer
{
    int a= 20; /* that is why its final because one value  is assinged it becomes final*/
    
    void purchase();
}
class Raju implements customer
{
    @Override
    public void purchase()
    {
        System.out.println("raj needs "+a+"kg");
    }
}
class Check
{
    public static void main(String[] args)
    {
        customer r= new Raju();
        r.purchase();
    }
}
extends CharacterBody2D



@export var speed = 1200

@export var jump_speed = -1800

@export var gravity = 4000

@export_range(0.0, 1.0) var friction = 0.1

@export_range(0.0 , 1.0) var acceleration = 0.25





func _physics_process(delta):

    velocity.y += gravity * delta

    var dir = Input.get_axis("walk_left", "walk_right")

    if dir != 0:

        velocity.x = lerp(velocity.x, dir * speed, acceleration)

    else:

        velocity.x = lerp(velocity.x, 0.0, friction)



    move_and_slide()

    if Input.is_action_just_pressed("jump") and is_on_floor():

        velocity.y = jump_speed
extends CharacterBody2D



@export var speed = 1200

@export var jump_speed = -1800

@export var gravity = 4000





func _physics_process(delta):

    # Add gravity every frame

    velocity.y += gravity * delta



    # Input affects x axis only

    velocity.x = Input.get_axis("walk_left", "walk_right") * speed



    move_and_slide()



    # Only allow jumping when on the ground

    if Input.is_action_just_pressed("jump") and is_on_floor():

        velocity.y = jump_speed
extends Area2D



var speed = 750



func _physics_process(delta):

    position += transform.x * speed * delta



func _on_Bullet_body_entered(body):

    if body.is_in_group("mobs"):

        body.queue_free()

    queue_free()
#include <TroykaMQ.h>                    // библиотека для MQ датчиков

#include <Wire.h>                             // библиотека для протокола I2C
#include <LiquidCrystal_I2C.h>       // библиотека для LCD 1602 
LiquidCrystal_I2C LCD(0x27,20,2);  // присваиваем имя дисплею

MQ3 mq3(A1);

void setup() {
   Serial.begin(9600);   // запускаем монитор порта
   LCD.init();                   // инициализация дисплея
   LCD.backlight();         // включение подсветки
   mq3.calibrate();        // калибровка датчика MQ3
 }

void loop() {
   Serial.print("Alcohol: ");
   Serial.print(mq3.readAlcoholMgL());    // выводим значение на монитор
   Serial.println(" mG/L");

   Serial.print("Alcohol: ");
   Serial.print(mq3.readAlcoholPpm());    // выводим значение на монитор
   Serial.println(" ppm");

   LCD.setCursor(0,0);
   LCD.print("Alcohol: ");
   LCD.print(mq3.readAlcoholMgL());        // выводим значение на дисплей
   LCD.print(" mG/L");

   LCD.setCursor(0,1);
   LCD.print("Alcohol: ");
   LCD.print(mq3.readAlcoholPpm());        // выводим значение на дисплей
   LCD.print(" ppm");

   delay(500);
   LCD.clear();  // очищаем экран дисплея
}
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
import java.util.Scanner;
interface client
{
    void input();
    void output();
}
class raju implements client
{
    String name ; double salary;
    public void input()
    {
        Scanner r = new Scanner(System.in);
        System.out.println("eNTER YOUR NAME");
        name = r.nextLine();
        
        System.out.println("eNTER YOUR sal");
        salary = r.nextDouble();
    }
    public void output()
    {
    System.out.println(name +" "+salary);
    
    }
    public static void main(String[] args){
        client c = new raju();
        c.input();
        c.output();
    }
let worstInp = 0;

const observer = new PerformanceObserver((list, obs, options) => {
  for (let entry of list.getEntries()) {
    if (!entry.interactionId) continue;

    entry.renderTime = entry.startTime + entry.duration;
    worstInp = Math.max(entry.duration, worstInp);

    console.log('[Interaction]', entry.duration, `type: ${entry.name} interactionCount: ${performance.interactionCount}, worstInp: ${worstInp}`, entry, options);
  }
});

observer.observe({
  type: 'event',
  durationThreshold: 0, // 16 minimum by spec
  buffered: true
});
star

Fri Jan 12 2024 13:52:19 GMT+0000 (Coordinated Universal Time)

@CodeWithSachin ##jupyter #aggregation

star

Fri Jan 12 2024 13:51:37 GMT+0000 (Coordinated Universal Time)

@CodeWithSachin ##jupyter #aggregation

star

Fri Jan 12 2024 11:46:34 GMT+0000 (Coordinated Universal Time)

@Samuel1347 #flutter #dart

star

Fri Jan 12 2024 11:46:15 GMT+0000 (Coordinated Universal Time)

@Samuel1347 #flutter #dart

star

Fri Jan 12 2024 11:45:42 GMT+0000 (Coordinated Universal Time)

@Samuel1347 #flutter #dart

star

Fri Jan 12 2024 09:52:44 GMT+0000 (Coordinated Universal Time)

@Shuhab #bash

star

Fri Jan 12 2024 09:29:57 GMT+0000 (Coordinated Universal Time)

@Samuel1347 #flutter #dart

star

Fri Jan 12 2024 09:04:13 GMT+0000 (Coordinated Universal Time) https://github.com/ChrisTitusTech/winutil

@krymnlz

star

Fri Jan 12 2024 08:08:23 GMT+0000 (Coordinated Universal Time)

@ceeprel #javascript

star

Fri Jan 12 2024 02:41:59 GMT+0000 (Coordinated Universal Time)

@Sephjoe

star

Fri Jan 12 2024 02:27:08 GMT+0000 (Coordinated Universal Time)

@Sephjoe

star

Fri Jan 12 2024 02:26:27 GMT+0000 (Coordinated Universal Time)

@Sephjoe

star

Fri Jan 12 2024 02:18:05 GMT+0000 (Coordinated Universal Time)

@Sephjoe

star

Fri Jan 12 2024 00:45:08 GMT+0000 (Coordinated Universal Time)

@Sephjoe

star

Fri Jan 12 2024 00:07:02 GMT+0000 (Coordinated Universal Time)

@Sephjoe

star

Thu Jan 11 2024 23:17:03 GMT+0000 (Coordinated Universal Time)

@Sephjoe

star

Thu Jan 11 2024 22:23:48 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/39020670/rotate-objects-around-circle-using-css?newreg

@censored #html

star

Thu Jan 11 2024 22:23:46 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/39020670/rotate-objects-around-circle-using-css?newreg

@censored #css

star

Thu Jan 11 2024 22:20:35 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/39020670/rotate-objects-around-circle-using-css?newreg

@censored #html #p2

star

Thu Jan 11 2024 22:20:24 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/39020670/rotate-objects-around-circle-using-css?newreg

@censored #css #rotate #circle

star

Thu Jan 11 2024 20:11:52 GMT+0000 (Coordinated Universal Time)

@TechBox #c++

star

Thu Jan 11 2024 20:07:49 GMT+0000 (Coordinated Universal Time)

@TechBox #c++

star

Thu Jan 11 2024 19:53:12 GMT+0000 (Coordinated Universal Time)

@TechBox #c++

star

Thu Jan 11 2024 19:42:24 GMT+0000 (Coordinated Universal Time)

@TechBox #c++

star

Thu Jan 11 2024 19:40:33 GMT+0000 (Coordinated Universal Time)

@E23CSEU1151 #java

star

Thu Jan 11 2024 19:36:23 GMT+0000 (Coordinated Universal Time)

@TechBox #c++

star

Thu Jan 11 2024 19:32:31 GMT+0000 (Coordinated Universal Time)

@TechBox

star

Thu Jan 11 2024 19:22:34 GMT+0000 (Coordinated Universal Time)

@TechBox

star

Thu Jan 11 2024 18:15:33 GMT+0000 (Coordinated Universal Time)

@E23CSEU1151 #java

star

Thu Jan 11 2024 17:42:39 GMT+0000 (Coordinated Universal Time)

@E23CSEU1151 #java

star

Thu Jan 11 2024 16:59:31 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/16907518/css-input-with-width-100-goes-outside-parents-bound

@ClairLalune #javascript

star

Thu Jan 11 2024 14:55:30 GMT+0000 (Coordinated Universal Time) https://www.rohittechvlog.com/2019/09/display-database-images-in-ssrs-report.html

@rick_m #sql

star

Thu Jan 11 2024 13:52:20 GMT+0000 (Coordinated Universal Time) https://community.klaviyo.com/developer-group-64/event-extra-checkout-url-doesn-t-work-383

@fahadmansoor

star

Thu Jan 11 2024 10:23:46 GMT+0000 (Coordinated Universal Time) https://technoderivation.com/casino-game-development

@bhupendra03 ##casinogame ##softwaredevelopment ##uk ##us

star

Thu Jan 11 2024 09:43:43 GMT+0000 (Coordinated Universal Time) https://null-safety.com/royal/wp-admin/widgets.php

@mebean

star

Thu Jan 11 2024 09:43:35 GMT+0000 (Coordinated Universal Time) https://null-safety.com/royal/wp-admin/widgets.php

@mebean

star

Thu Jan 11 2024 09:42:40 GMT+0000 (Coordinated Universal Time) https://null-safety.com/royal/wp-admin/widgets.php

@mebean

star

Thu Jan 11 2024 09:42:33 GMT+0000 (Coordinated Universal Time) https://null-safety.com/royal/wp-admin/widgets.php

@mebean

star

Thu Jan 11 2024 08:49:20 GMT+0000 (Coordinated Universal Time)

@Sephjoe

star

Thu Jan 11 2024 05:33:46 GMT+0000 (Coordinated Universal Time)

@acarp3422 ##python ##pip

star

Thu Jan 11 2024 04:36:13 GMT+0000 (Coordinated Universal Time)

@E23CSEU1151 #java

star

Thu Jan 11 2024 04:28:56 GMT+0000 (Coordinated Universal Time)

@E23CSEU1151 #java

star

Wed Jan 10 2024 18:56:41 GMT+0000 (Coordinated Universal Time) https://kidscancode.org/godot_recipes/4.x/2d/platform_character/index.html

@Hammy711

star

Wed Jan 10 2024 18:56:20 GMT+0000 (Coordinated Universal Time) https://kidscancode.org/godot_recipes/4.x/2d/platform_character/index.html

@Hammy711

star

Wed Jan 10 2024 18:55:06 GMT+0000 (Coordinated Universal Time) https://kidscancode.org/godot_recipes/4.x/2d/2d_shooting/index.html

@Hammy711

star

Wed Jan 10 2024 14:59:36 GMT+0000 (Coordinated Universal Time) https://xn--18-6kcdusowgbt1a4b.xn--p1ai/алкотестер-ардуино/

@poliku102

star

Wed Jan 10 2024 13:03:34 GMT+0000 (Coordinated Universal Time) https://forums.macrumors.com/threads/solved-prevent-hidden-files-creation-on-usb-drives.2022099/

@YR3

star

Wed Jan 10 2024 13:03:29 GMT+0000 (Coordinated Universal Time) https://forums.macrumors.com/threads/solved-prevent-hidden-files-creation-on-usb-drives.2022099/

@YR3

star

Wed Jan 10 2024 11:50:24 GMT+0000 (Coordinated Universal Time)

@E23CSEU1151 #java

star

Wed Jan 10 2024 11:37:57 GMT+0000 (Coordinated Universal Time) https://web.dev/articles/manually-diagnose-slow-interactions-in-the-lab?hl=en

@dona__x

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension