package main
import "fmt"
func main() {
fruits := [4]string{"Apple", "Banana", "Orange", "Grapes"}
fmt.Println("Fruits array:", fruits)
}// import fmt #format package
// fmt.Println
package main
import "fmt"
func main() {
var numbers [5]int
fmt.Println("Default values in an integer array:", numbers)
}/*
https://jsbin.com/setohiqiwe/edit?html,css,output
*/
:root {
--color: red;
}
.a, .b, .c {
margin: 1rem;
padding: 0.55rem;
}
.a {
background: hsl(from var(--color) h s 90%);
}
.b {
background: hsl(from var(--color) h s calc(l + 40));
}
.c {
background: hsl(from var(--color) h s l / 0.2);
}
/*
Converted to HSL, red is hsl(0 100% 50%), thus:
Setting l to 90%,
Is just hsl(0 100% 90%).
Adding 40 to l,
Add the l components together:
hsl(0 100% (50% + 40%)) → hsl(0 100% 90%)
Chanfunction Get-IniContent ($filePath) {
$ini = @{}
switch -regex -file $FilePath {
"^\[(.+)\]" {
# Section
$section = $matches[1]
$ini[$section] = @{}
$CommentCount = 0
}
"^(;.*)$" {
# Comment
$CommentCount++
$name = "Comment$($CommentCount)"
$value = $matches[1]
$ini[$section][$name] = $value
}
"(.+?)\s*=(.*)" {
# aaaa
all:
const loadingScreen = document.querySelector('.loading-screen');
if (loadingScreen) {
const CONFIG = {
fadeThreshold: 150,
bufferZone: 50,
reactivateAt: 5,
wheelMultiplier: 0.8,
touchMultiplier: 1.5,
extraVirtualCap: 100
};
const UNLOCK_THRESHOLD = CONFIG.fadeThreshold + CONFIG.bufferZone;
const MAX_VIRTUAL = UNLOCK_THRESHOLD + CONFIG.extraVirtualCap;
const state = {
ticking: false,
virtualY: 0,
locked: false,
savedScrollY: 0,
hasLeftTop: realpath file.txt
# realpath is part of GNU coreutils
# Installed by default on most Linux distributions/**
* @param {number[]} nums
* @return {number}
*/
var sumFourDivisors = function(nums) {
// Helper: return the sum of divisors of n if it has exactly 4 divisors.
// Otherwise return 0.
function sumIfFourDivisors(n) {
let count = 0; // how many divisors we've found
let sum = 0; // sum of those divisors
// Check all possible divisors from 1 up to sqrt(n)
for (let d = 1; d * d <= n; d++) {
if (n % d === 0) {
let other = <p class="text">テキスト</p># メール認証技術(SPF・DKIM・DMARC)学習メモ
---
## 1. SPF(Sender Policy Framework)
### 概要
- 「このドメインからのメールは、これらのIPアドレスから送信される」とDNSで宣言する仕組み
- 受信サーバーが送信元IPをSPFレコードと照合し、正当性を検証する
### なぜ必要か
- SMTPプロトコルは送信元アドレスを検証する仕組みを持たない
- 任意のサーバーから任意の送信元アドレスでメール送信が可能
- SPFにより、ドメイン所有者が「正当な送信元IP」を定義できる
### 設定場所
- ドメインのDNS TXTレコード
### レコード例
```
example.com. IN TXT "v=spf1 ip4:203.0.113.1 include:_spf.google.com -all"
```
| 部分 | 意味 |
|------|------|
| `v=spf1` | SPFバージョン1 |
| `ip4:203.0.113.1` | このIPからの送信を許可 |
| `include:.hoge{
/*ここの詳細度は1*/
}
.hoge.hoge{
/*ここの詳細度は2*/
}#!/bin/sh
set -e
dir=/org/gnome/shell/extensions/dash-to-panel/
dconf reset -f "$dir"
dconf load "$dir" < settings.ini
from sqlalchemy import create_engine, Column, Integer, String, DateTime
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
# SQLite Database (local file - no configuration needed)
DATABASE_URL = "sqlite:///./complaints.db"
engine = create_engine(DATABASE_URL, connect_args={"check_same_thread": False})
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
Base = declarative_base()
class Complaint(Base):
__tablen/**
* @param {number} n
* @return {number}
*/
var numOfWays = function(n) {
const MOD = 1_000_000_007;
// a = number of ABC patterns for the current row
// b = number of ABA patterns for the current row
let a = 6; // ABC has 6 permutations
let b = 6; // ABA also 6 valid patterns
// Build row by row using the recurrence
for (let i = 2; i <= n; i++) {
// Compute next row counts based on transitions
let nextA = (2 * a + 2 * b) % MOD; // ABC -> ABCecho $SHELL