//JSON Search for record
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.File;
import java.io.IOException;
import java.util.List;
public class JsonUtils {
static class Person {
private String name;
private int age;
private String notes;
// Constructor, getters, and setters
// (omitted for brevity)
// Example constructor
public Person(String name, int age, String notes) {
this.name = n
/**
* Проскроллить к элементу (верху или низу элемента)
*
* @author https://t.me/artemsites
*/
export default function scrollTo(elOrSelector, position) {
let el = (typeof elOrSelector === 'string') ? document.querySelector(selector) : elOrSelector
if (position === "bottom") {
const viewportHeight = window.innerHeight || document.documentElement.clientHeight
const elRect = el.getBoundingClientRect()
const scrollPosition = elRect.top + window.scrollY - viewportHeight +
/**
* @author https://t.me/artemsites
*/
export default function isElementInViewportByAxisY(target) {
let el = (typeof target === 'string') ? document.querySelector(target) : target
const rect = el.getBoundingClientRect()
return (
rect.top <= 0
|| rect.bottom >= (window.innerHeight || document.documentElement.clientHeight)
);
}
// JSON access using Jackson library
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
public class JsonUtils {
static class Person {
private String name;
private int age;
private String notes;
// Constructor, getters, and setters
public Person() {}
public Perso
# CUDA Full Setup on Linux
# Check Your Ubuntu Version
On the shell, you can use one of the two following commmands to get system details:
- `lsb_release -a`
- `cat /etc/os-release` (more information will be displayed)
# Traditional Commands
Of course, before all install workflow, it's good practise to perform
```bash
sudo apt update
sudo apt upgrade
```
to be as up to date as possible.
# 0. Check What's Maybe Already Installed
## Check if `CUDA` is installed
`nvcc --version`
## Check CUDA ve
/*
function in javascript is object and we can store what ever inside
*/
function x()
{
console.log('im x')
}
x.$version = '1.3.21'
x.callback = () => { console.log('what ever')}
console.log(x.$version);
x.callback();
display: inline;
background-color: rgba(255, 255, 255, 70%);
background-repeat: repeat-x;
background-size: 30px 40px;
background-position: center center;
<!-- https://2dispari.com/come-rendere-video-youtube-responsive/ -->
<style>
.videoWrapper {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
padding-top: 25px;
height: 0;
}
.videoWrapper iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
</style>
<div class="videoWrapper">
<iframe src="https://www.youtube.com/embed/XXX" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe>
</div>
const hoge = document.querySelector(".hoge");
// hogeが存在しなければエラーをthowする(エラーがthrowされた時点でreturnする)
if (!hoge) {
// TypeScriptで hoge? を使用時も同様にエラーを投げる(TypeScriptの場合も、要素がなければ次の処理に移行してしまうため)
throw new Error("hogeが存在しません");
}
font-size: clamp(1.8rem, 2.3vw, 5rem);
const { printValues } = require("./helpers");
const myArray = [5, 4, 3, 2, 1];
const readArrayHandler = (arr) => {
arr.map((element, index) => {
printValues(index);
printValues(element);
});
};
readArrayHandler(myArray);
exports.printValues = (value) => {
console.log(value);
};
exports.validateValue = (value) => {
if (value > 0) {
return true;
}
return false;
};
<div class="above-the-nav-container">
<div class="telephone">
<i class="icon fa-solid fa-phone"><span class="display-none"> </span></i><a href="tel:[company_profile:node:field_company_phone:value]" title="Call Us">[company_profile:node:field_company_phone:value]</a>
</div>
</div>
<style>
/* Above The Nav */
.above-the-nav .above-the-nav-container {
display: flex;
align-items: center;
}
@media screen and (min-width: 64em) {
.aw-header--sticky.aw-header__sticky.st
{% assign e = Module.FieldValues.CalendarSource.Events[0] %}
<div id="pp-watch-live">
<a href="{{Module.FieldValues.VideoLink}}" title="Watch Live Now!">{{Module.FieldValues.Text}}</a>
</div>
<script>
// run if we have an event
{% if e.Subject.Size > 0 %}
// define our consts
const eStartTime = new Date('{{e.StartDateTime}}');
const eEndTime = new Date('{{e.EndDateTime}}');
const liveDIV = document.getElementById('pp-watch-live');
// compare our times
setInt
{% assign e = Module.FieldValues.CalendarSource.Events[0] %}
<div id="pp-watch-live">
<a href="{{Module.FieldValues.VideoLink}}" title="Watch Live Now!">{{Module.FieldValues.Text}}</a>
</div>
<script>
// run if we have an event
{% if e.Subject.Size > 0 %}
// define our consts
const eStartTime = new Date('{{e.StartDateTime}}');
const eEndTime = new Date('{{e.EndDateTime}}');
const liveDIV = document.getElementById('pp-watch-live');
// compare our times
setInt
/**
* Definition for a binary tree node.
* function TreeNode(val, left, right) {
* this.val = (val===undefined ? 0 : val)
* this.left = (left===undefined ? null : left)
* this.right = (right===undefined ? null : right)
* }
*/
/**
* @param {TreeNode} root
* @return {boolean}
*/
var evaluateTree = function(root) {
// If the node is a leaf (i.e., its value is 0 or 1), return its value.
if (root.val === 0 || root.val === 1) {
return root.val;
}
// Evalu
# What is Playwright
- OS - Windows, MacOS, Linux | Supports Cl runs
- Free & open source Framework for web automation testing | Created by Microsoft
- Applications - Web browser apps | Mobile web apps | API
- Languages - JavaScript, TypeScript, Java, Python, NET (C#)
- Browsers - all modern engines Chromium, WebKit, and Firefox
# Features of Playwright
- Free | Open Source
- Auto-wait
- Multi-Browser | Multi-Language | Multi-OS
- Built-in assertions | Less Flaky tests
- Easy Setup and Config