記事概要
Header 1 (見出し1)
Content 1
Hello, world!Header 2(見出し2)
Content 2
Header 3 (見出し3)
Content 3
Header 4 (見出し4)
Content 4
あいうえお(デフォルト)
あいうえお(小)
あいうえお(中)
あいうえお(大)
あいうえお(特大)
A sentence to check article patterns & functions.
Quote function
Quote block - 引用ブロック
| Table (1 cell) |
| 2 rows | jうぇgjをjごじぇg |
| 2 lines |
| wtjwjtjwt |
| 1 | 2 |
| 3 | 4 |
| Table | Row 1 | Row 2 | Row 3 | Row 4 | Row 5 | Row 6 | Row 7 | Row 8 | Row 9 |
|---|---|---|---|---|---|---|---|---|---|
| Line 2 | Merge cells | ||||||||
| Line 3 | |||||||||
| Line 4 | cell properties | ||||||||
| Line 5 | Split cells | ||||||||
| Line 6 | |||||||||
| Line 7 | |||||||||
| Line 8 | |||||||||
| Line 9 | 10x10 | ||||||||
- bulleting & align text left
- align center
- align text right
- Numbering & 行備え
- Increase indent
- Decrease indent
lasvknakvnkvknsnkdv (left)
calmsckascljasljcfaljf (middle)
mlavvljaljflafja (right)
以下の4種類の方法でAPI・SDKを提供しています。以下の4種類の方法でAPI・SDKを提供しています。以下の4種類の方法でAPI・SDKを提供しています。以下の4種類の方法でAPI・SDKを提供しています。以下の4種類の方法でAPI・SDKを提供しています。
| 1dq |
| 1 | 2 | 3 | 4 | 5 | 6 |
| q | srg | bfx | |||
| w | brd | hrdx | dvs | ||
| er | brdz | ||||
| t | bf | ||||
| y | bfd |
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | wq |
| mx | |||||||||
| mhd | m | gd | mzmc | ||||||
| ut | zd | ||||||||
| tftfcu | cm | d,x | |||||||
| cx | x,x, | ||||||||
| hf | ,bgx | bg | |||||||
| fchfch | , | hgf | x | ||||||
| f,h | d,x | hg | c,x | ||||||
| hx, | h |
| ca | cas |
| cc |
| v,rf |
| oppoht | e |
| fe | ge |
contentコンテンツブロックコンテンツブロックコンテンツブロックコンテンツブロックコンテンツブロックコンテンツブロックコンテンツブロックコンテンツブロックコンテンツブロックコンテンツブロックコンテンツブロックコンテンツブロックコンテンツブロックコンテンツブロックコンテンツブロックコンテンツブロックコンテンツブロックコンテンツブロックコンテンツブロックコンテンツブロックコンテンツブロックコンテンツブロックコンテンツブロックコンテンツブロック
Module Program
Sub Main()
' Declare variables
Dim name As String = "Alice"
Dim age As Integer = 25
' Call a function
Dim message As String = Greet(name, age)
' Print the result
Console.WriteLine(message)
' Wait for user input before closing
Console.ReadLine()
End Sub
' Define a function
Function Greet(ByVal person As String, ByVal age As Integer) As String
Return "Hello, " & person & "! You are " & age.ToString() & " years old."
End Function
End Module
// Define a typed variable
let name: string = "Alice";
let age: number = 25;
let isStudent: boolean = false;
// Define a typed function
function greet(person: string): string {
return `Hello, ${person}!`;
}
// Call the function and print result
console.log(greet(name));
// Use a simple array
let skills: string[] = ["TypeScript", "JavaScript", "HTML"];
console.log("Skills:", skills);
name: Alice age: 25 is_student: false skills: - Python - Swift - SQL address: city: New York zip: 10001
import Foundation
// 1. Declare a variable
var name = "Swift"
// 2. Print a message
print("Hello, \(name)!")
// 3. Use a conditional
let age = 18
if age >= 18 {
print("You are an adult.")
} else {
print("You are a minor.")
}
// 4. Loop through numbers
for number in 1...5 {
print("Number: \(number)")
}
// 5. Define and call a function
func add(a: Int, b: Int) -> Int {
return a + b
}
let sum = add(a: 3, b: 5)
print("Sum is \(sum)")
-- Create a table
CREATE TABLE students (
id INT PRIMARY KEY,
name VARCHAR(100),
age INT,
grade INT
);
-- Insert data into the table
INSERT INTO students (id, name, age, grade) VALUES (1, 'Alice', 14, 9);
INSERT INTO students (id, name, age, grade) VALUES (2, 'Bob', 15, 10);
INSERT INTO students (id, name, age, grade) VALUES (3, 'Charlie', 13, 8);
-- Select all data from the table
SELECT * FROM students;
-- Select students who are older than 13
SELECT name, age FROM students WHERE age > 13;
l;camsssssss
scss
Rust
RRRRRRRRRRRRR r
vdsvsdvs
class Dog:
def __init__(self, name, breed):
self.name = name
self.breed = breed
def bark(self):
print("Woof!")
my_dog = Dog("Buddy", "Golden Retriever")
print(my_dog.name)
my_dog.bark()ascascac
asvasvasvasv
savasv
svsvsv
# Variables CC = gcc CFLAGS = -Wall -g TARGET = myprogram SOURCES = main.c helper.c OBJECTS = $(SOURCES:.c=.o) # Default target all: $(TARGET) # Compile object files %.o: %.c $(CC) $(CFLAGS) -c $< -o $@ # Link object files to create the executable $(TARGET): $(OBJECTS) $(CC) $(CFLAGS) $(OBJECTS) -o $@ # Clean target to remove object files and the executable clean: rm -f $(OBJECTS) $(TARGET)
-- Variables and Data Types
local message = "Hello, Lua!"
local number = 10
local is_valid = true
local my_table = { key1 = "value1", key2 = false }
-- Output to console
print(message)
print(number)
print(is_valid)
print(my_table.key1)
-- Functions
local function add(x, y)
return x + y
end
local sum = add(5, 3)
print(sum)
-- Conditional statements
if number > 5 then
print("Number is greater than 5")
elseif number == 5 then
print("Number is equal to 5")
else
print("Number is less than 5")
end
-- Loops
for i = 1, 3 do
print("Iteration:", i)
end
local j = 1
while j <= 3 do
print("While loop iteration:", j)
j = j + 1
end
-- Tables (Lua's primary data structure)
local my_table = {
name = "John",
age = 30,
occupation = "Developer"
}
print(my_table.name)
my_table.age = 31
print(my_table.age)
-- Example using a loop to iterate through a table
for key, value in pairs(my_table) do
print(key .. ": " .. tostring(value))
end
-- Example of a function that returns multiple values
local function multi_return()
return 1, "hello", true
end
local a, b, c = multi_return()
print(a, b, c)
-- Example of a simple game loop (very basic)
local game_running = true
local player_x = 0
while game_running do
-- Game logic updates here
player_x = player_x + 1
print("Player position:", player_x)
-- Check for exit condition (e.g., pressing a key)
if player_x > 10 then
game_running = false
end
end
print("Game Over") @primary-color: #007bff;
body {
background-color: @primary-color;
}fun main() {
// Immutable variable (val)
val name: String = "John Doe"
// Mutable variable (var)
var age: Int = 30
// Type inference
val pi = 3.14
var isAdult = true
println("Name: $name")
println("Age: $age")
println("PI: $pi")
println("Is adult: $isAdult")
age = 31 // Changing age
println("Updated age: $age")
}{
"name": "John Doe",
"age": 30,
"city": "New York"
}let name = "John"; // String
let age = 30; // Number
let isStudent = false; // Boolean
let hobbies = ["reading", "hiking", "coding"]; // Array
let person = { name: "Alice", city: "New York" }; // Object
console.log(name, age, isStudent, hobbies, person);public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}[Database] server=192.168.1.10 port=1433 database_name=myDataBase user=dbUser password=secret [Logging] enabled=true log_level=INFO log_path=/var/log/app.log [API] api_url=https://api.example.com/v1 timeout=30
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
}# Hello World example
puts "Hello, World!"
# Variables and basic arithmetic
x = 10
y = 5
sum = x + y
puts "The sum of #{x} and #{y} is #{sum}"
# String manipulation
message = " Ruby is fun! "
puts message.strip # removes leading/trailing whitespace
puts message.upcase
puts message.length
# Arrays
numbers = [1, 2, 3, 4, 5]
puts "First element: #{numbers[0]}"
numbers.push(6) # adds an element to the end
puts "Array after adding an element: #{numbers}"
# Iteration
numbers.each do |number|
puts "Number: #{number}"
end
# Conditional statement
if sum > 10
puts "Sum is greater than 10"
elsif sum == 10
puts "Sum is exactly 10"
else
puts "Sum is less than 10"
end
# Defining a method
def greet(name)
puts "Hello, #{name}!"
end
greet("Ruby")
# Using a hash (similar to a dictionary in other languages)
person = {name: "Alice", age: 30, city: "New York"}
puts "Name: #{person[:name]}, Age: #{person[:age]}"1c1 < line 1 --- > line 1 2c2 < line 2 --- > line 2 (modified) 3d2 < line 3
## Typographic replacements Enable typographer option to see result. (c) (C) (r) (R) (tm) (TM) (p) (P) +- test.. test... test..... test?..... test!.... !!!!!! ???? ,, -- --- "Smartypants, double quotes" and 'single quotes' ## Emphasis ::: warning *here be dragons* :::
.text1 {
font-size: 16px;
}
@media (min-width: 1200px) {
.text1 {
font-size: 20px;
}
}using System;
public class HelloWorld
{
public static void Main(string[] args)
{
Console.WriteLine("Hello, World!");
}
}// This library allows input and output operations
#include <iostream>
// The main function - every C++ program starts execution from here
int main() {
// Print message to the console
std::cout << "Hello, World!";
// Return 0 means the program ran successfully
return 0;
}#!/usr/bin/env bash echo -n "Enter A Number: " read -r n arm=0 temp=$n while [ "$n" -ne 0 ]; do r=$((n % 10)) arm=$((arm + r * r * r)) n=$((n / 10)) done echo $arm if [ $arm -eq "$temp" ]; then echo "Armstrong" else echo "Not Armstrong" fi
<!DOCTYPE html>
<html>
<head>
<title>My web page</title>
</head>
<body>
<h1>Hello, world!</h1>
<p>This is my first web page.</p>
<p>It contains a
<strong>main heading</strong> and <em> paragraph </em>.
</p>
</body>
</html>Plain text ddddd
コメント
0件のコメント
サインインしてコメントを残してください。