// my version - inspired by https://michaelnthiessen.com/stealing-prop-types/
// iconDefault.js
export const iconDefaults = {
size: 'medium',
shape: 'circle',
icon: 'default',
animation: 'none'
};
<!-- Icon.vue -->
<script setup>
import { iconDefaults } from './iconDefaults.js';
const props = defineProps({
size: { type: String, default: iconDefaults.size },
shape: { type: String, default: iconDefaults.shape },
icon: { type: String, default: iconDefaults.icon },
animation: { t
DATA: lt_parameter TYPE abap_func_parmbind_tab,
ls_parameter TYPE abap_func_parmbind,
lt_exception TYPE abap_func_excpbind_tab,
ls_exception TYPE abap_func_excpbind,
lt_charg_list TYPE zsd_batch_list_tt,
lt_list_charg TYPE zsd_tt_batch_list_v2,
ls_list_charg TYPE zsd_s_batch_list_v2,
lv_posnr TYPE posnr VALUE '000000',
lv_pstyv TYPE pstyv VALUE '*',
lv_kunnr TYPE kunnr VALUE '*',
lv_vko
/* https://codepen.io/555/pen/pdwvBP */
/*
https://s3-us-west-2.amazonaws.com/s.cdpn.io/8399/grunge.png
*/
stamp {
transform: rotate(12deg);
color: #555;
font-size: 3rem;
font-weight: 700;
border: 0.25rem solid #555;
display: inline-block;
padding: 0.25rem 1rem;
text-transform: uppercase;
border-radius: 1rem;
font-family: 'Courier';
-webkit-mask-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/8399/grunge.png');
-webkit-mask-size: 944px 604px;
mix-blend-mode: multiply;
_
// https://medium.com/@arnoldgunter/how-relative-colors-in-css-just-solved-one-of-the-hardest-styling-problems-24b9f5ad7b8emys
:root {
--btn-blue: hsl(220, 100%, 50%);
--btn-green: hsl(140, 70%, 45%);
--btn-red: hsl(0, 80%, 55%);
--btn-yellow: hsl(45, 100%, 50%);
}
/* Base styles for all buttons */
.button {
color: white;
border: none;
padding: 10px 20px;
cursor: pointer;
}
/* Individual button base colors */
.button.blue { --button-color: var(--btn-blue);
Let's explore Google Cloud Buildpacks in a detailed and pedagogical way.
**1. The Problem: Containerizing Applications Can Be Tedious**
Imagine you've written a web application, perhaps in Node.js, Python, Java, or Go. To run it reliably in modern cloud environments like Google Cloud Run or Kubernetes, you typically need to package it into a **container image**.
The standard way to do this is by writing a `Dockerfile`. This file contains step-by-step instructions: start with a base oper
/**
* @param {number} n
* @return {number}
*/
var countLargestGroup = function(n) {
// Map to store frequency of digit sum groups
const countMap = {};
let maxSize = 0, result = 0;
// Loop through numbers from 1 to n
for (let i = 1; i <= n; i++) {
// Calculate the sum of digits of the number
const sum = [...`${i}`].reduce((acc, digit) => acc + Number(digit), 0);
// Update the frequency count for this sum
countMap[sum] = (countMap[sum] || 0)
/* eslint-disable @typescript-eslint/no-namespace */
/**
* Configuration for type-safe environment variables.
* Imported through src/app/page.tsx
* @see https://x.com/mattpocockuk/status/1760991147793449396
*/
import { z } from 'zod'
const envVariables = z.object({
NEXT_PUBLIC_SHOW_LOGGER: z.enum(['true', 'false']).optional(),
DATABASE_URL: z.string().optional(),
})
envVariables.parse(process.env)
declare global {
namespace NodeJS {
// eslint-disable-next-line
import sys
from PyQt5.QtWidgets import QApplication, QMainWindow, QWidget, QVBoxLayout, QHBoxLayout, QLabel, QPushButton, QLineEdit, QCheckBox, QRadioButton, QComboBox, QTableWidget, QTableWidgetItem, QFileDialog, QMessageBox
from PyQt5.QtGui import QColor, QFont
import pandas as pd
class DatabaseManager(QMainWindow):
def __init__(self):
super().__init__()
self.setWindowTitle("Database Manager")
self.setGeometry(100, 100, 800, 600)
# Central Widget
// https://medium.com/@asierr/javascripts-function-prototype-tostring-just-got-useful-here-s-how-bc617fd7222c
function greet(name) {
return `Hello, ${name}`;
}
console.log(greet.toString());
// result
"function greet(name) {\n return `Hello, ${name}`;\n}"
// any usage
const fn = x => x * 2;
const body = fn.toString();
if (body.includes('x * 2')) {
console.log('Safe to optimize!');
}
/*
Limitations
Doesn’t work on native functions (e.g., Math.max.toString() returns "function max() {
from dataclasses import dataclass
@dataclass
class ModelMetadata:
run_id: str
timestamp: str
script: str
dataset_version: str
features_version: str
model_version:str
parameters: dict
metrics: dict
status: str
notes: str
system_info: dict
**getRemainingTime**
заменить на
```
public function getRemainingTime(): int
{
$maxDurationForPayment = $this->getMaxDuration();
$duration = $this->getPaymentDuration();
$remainingTime = $maxDurationForPayment - $duration;
if ($remainingTime < 0) {
Log::debug("Negative remaining time.Value:$remainingTime. Assume 0");
$remainingTime = 100;
}
return $remainingTime;
}
```
Закомментировать редис
```
public static fu
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Data Viewer\n",
"\n",
"This notebook demonstrates the use of the DataViewer control.\n",
"\n",
"It provides some basic features that let you browse pandas DataFrames more easily:\n",
"- Scrollable data viewer taking fixed amount of output cell space\n",
"- Sorting data by column\n",
"- Column selection\n",
"- Data filtering"
]
},
{
"cell_type": "markd
const COLUMNS = [
{ id: "🔗", value: page => getLink(page.value("url"), "🌐") },
{ id: "Plugin", value: page => page.$link },
{ id: "📄", value: page => getLink(page.value("documentation"),"📄") },
{ id: "Rating", value: page => getRating(page.value("rating")) },
{ id: "Functions", value: page => getFuncIcons(page) },
{ id: "Comments", value: page => page.value("Comments") ? page.value("Comments") : "" }
];
function getLink(url, name = null) {
if (!url) return '';
if (url.endsWith('/')
select * from sin_veh_terc where idesin = 687;
select * from sin_veh;
select * from siniestro where codmotvanul is not null where idesin = 687;
select L.DESCRIP from siniestro s
LEFT JOIN lval l ON l.codlval = s.codmotvsin
where idesin = 267 AND l.TIPOLVAL = 'MOTVANUL' AND ROWNUM =1 ;
select * from lval where codlval = '0096';
select * from lval where codlval = '300';
select * from poliza where idepol = 8020;
select * from cliente where codcli = '0000000000000000284