.container {
display: grid;
grid-template-columns: minmax(0, max-content) 200px;
gap: 16px;
}
.first-col {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}#include <bits/stdc++.h>
using namespace std;
using i64 = int64_t;
#ifndef DEBUG
struct __X {
__X& operator<<(const auto& str) { return *this; }
void sp(const string& str = "") {}
} dout;
#define debug(x)
#endif
int main(){
cin.tie(0)->sync_with_stdio(0);
return 0;
}
#include <iostream>
int main(){
cout << "hello world" << endl;
return 0;
}@ini_set('log_errors', '1');
@ini_set('error_log', __DIR__ . '/php-errors.log');# convierte archivos de video mov a mp4
ffmpeg -i {in-video}.mov -vcodec h264 -acodec aac {out-video}.mp4/**
* 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 {number}
*/
var sumRootToLeaf = function(root) {
// DFS helper: carries the current binary value down the tree
function dfs(node, currentValue) {
if (!node) {
// Null nodes contribute nimport hou
def cycle_viewport_bg():
"""
Toggles the viewport bg between "Dark" and "Light"
Works best as a shelf button with a hotkey such as CTRL+ALT+B bound to it
TO DO:
- Make this work with all open scene viewers (currently only change one when split views are used)
- Have alternate funcions to cycle through other bg settings such as "Dark Grey"
"""
# Get scene viewer pane and current bg setting
pane = hou.ui.paneTabOfType(hou.paneTimport hou
def detach_parm_window():
"""Open a floating parameter pane for the selected node."""
node = hou.selectedNodes()[0]
pane_tab = hou.ui.curDesktop().createFloatingPaneTab(hou.paneTabType.Parm)
pane_tab.setCurrentNode(node)
pane_tab.setPin(True)
return pane_tabpublic class InputChecks {
public boolean checkAlphaSpace(String s) {
return s.matches("[a-zA-Z ]+") == true;
}
public boolean containsNumbers(String s) {
boolean hasNumbers = false;
for (char ch : s.toCharArray()) {
if (Character.isDigit(ch)) {
hasNumbers = true;
}
}
return hasNumbers;
}
public boolean containsSymbols(String s) {
boolean hasSymbols = false;
// TW 3
@layer components {
.x {
color: red;
border: 1px solid red;
}
}
// TW 4
@utility x {
color: red;
border: 1px solid red;
}
<div class="[&_ul]:x">
<ul>
<li>Test</li>
</ul>
</div>export const ROUTES = {
// トップページ
HOME: '/',
// 静的ページ
ABOUT: '/about',
CONTACT: '/contact',
PRIVACY_POLICY: '/privacy-policy',
// ニュース(一覧 + 動的詳細ページ)
NEWS: {
INDEX: '/news',
DETAIL: (id: string) => `/news/${id}` as const,
CATEGORY: (category: string) => `/news/category/${category}` as const,
},
// ブログ(一覧 + 動的詳細ページ)
BLOG: {
INDEX: '/blog',
DETAIL: (slug: string) => `/blog/${slug}` as const,
},
// 認証
AUTH: {
LOGIN: '/login',
REGISTER: '/reconst messages = document.querySelectorAll(".header_nav_list");
let currentIndex = 1;
const interval = 6000;
let lastTime = performance.now();
function messageAppear() {
if (currentIndex >= messages.length) {
currentIndex = 0;
}
messages.forEach((message) => {
message.classList.remove("appear");
message.classList.remove("appear_first");
});
messages[currentIndex].classList.add("appear");
currentIndex++;
}
function loop(now)code block below
```python
this is a tab indented
```
``
test
``
````
be hi
````
`
this is a code
`Dear Hiring Team at Meesho,
I am interested in the Data Scientist role at Meesho. With 4+ years of experience in Machine Learning,AI/ML, statistics, and product analytics, I am confident that my skills align well with your requirements and business goals.
I would welcome the opportunity to contribute to your team.
Best regards,
Susant Kumar Sahooimport { useState, useMemo } from "react"
import { checkEmail, checkPassword } from "./validators"
export function StateForm() {
const [email, setEmail] = useState("")
const [password, setPassword] = useState("")
const [isAfterFirstSubmit, setIsAfterFirstSubmit] = useState(false)
const emailErrors = useMemo(() => {
return isAfterFirstSubmit ? checkEmail(email) : []
}, [isAfterFirstSubmit, email])
const passwordErrors = useMemo(() => {
return isAfterFirstSubmit/**
* @param {string} s
* @param {number} k
* @return {boolean}
*/
var hasAllCodes = function(s, k) {
// Total number of binary codes of length k
const needed = 1 << k; // same as Math.pow(2, k)
// Quick fail: if s is too short to contain all codes
// There are (s.length - k + 1) substrings of length k
if (s.length < k || (s.length - k + 1) < needed) {
return false;
}
// A set to store all unique substrings of length k
const seen = new Set();
/