<p class="bg-blue"><a href="https://playapex.com/" target="_blank" rel="noopener noreferrer">PLAY APEX</a></p>
<p class="bg-white"><a href="https://www.ea.com/games/apex-legends" target="_blank" rel="noopener noreferrer">ELECTRONIC ARTS</a></p>
<p class="bg-blue"><a href="https://help.ea.com/en-us/help/faq/apex-legends-faq/" target="_blank" rel="noopener noreferrer">HELP</a></p>
<p class="bg-white"><a href="https://legal.ea.com/terms-of-service" target="_blank" rel="noopener noreferrer">TERMS</a></p>
<p class="bg-blue"><a href="https://www.ea.com/privacy-policy" target="_blank" rel="noopener noreferrer">PR
void set_background(int r, int g, int b) {
r = r % 256;
g = g % 256;
b = b % 256;
if (r < 0) {
r = 0;
}
if (g < 0) {
g = 0;
}
if (b < 0) {
b = 0;
}
std::cout << "r=" << r << " g=" << g << " b=" << b << "\n";
SDL_FillRect(screen, 0, SDL_MapRGB(screen->format,r,g,b));
}
<!DOCTYPE html>
<html>
<head>
<title>Someone</title>
<link rel="stylesheet" href="newstyles.css">
</head>
<body>
<h1>Someone</h1>
</body>
</html>
<iframe width="560" height="315" src="https://www.youtube.com/embed/o06Np6JgU6E" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
bool is_prime(int number) {
if (number < 2) return false;
if (number == 2) return true;
if (number % 2 == 0) return false;
for (int i = 3; (i * i) <= number; i += 2){
if (number % i == 0 ) return false;
}
return true;
}
<html>
<body>
<div class="container" id="main">hello world</div>
</body>
</html>
<iframe width="560" height="315" src="https://www.youtube.com/embed/iV2ViNJFZC8" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
#include <iostream>
using namespace std;
int main() {
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 4; j++) {
if (i == j) {
cout << "x";
} else if (i + j == 3) {
cout << "x";
} else {
cout << "o";
}
}
cout << endl;
}
}
<!DOCTYPE html>
<html>
<head>
<title>Someone</title>
</head>
<body>
<a href="index.html">link in header</a>
</body>
</html>
#include <iostream>
int main(void){
std::cout << "Hello world!" << std::endl;
return 0;
}
void show(int x, int y, int width, int height, char color)
{
for(int i = x; i < x + width; ++i)
{
for(int j = y; j < y + height; ++j)
{
screen.plot(i, j, color);
}
}
}
show(100, 30, 3, 4, 'r'); // show a red window in (100, 30) with width 3 and height 4
<button id="button1">click me</button>
<button id="button2">click me</button>
<button id="button3">click me</button>
<button id="button4">click me</button>
<button id="button5">click me</button>
<button id="button6">click me</button>
<button id="button7">click me</button>
<button id="button8">click me</button>
<button id="button9">click me</button>
<button id="button10">click me</button>
Script
function white(a, b):
return a + b
white(1, 2)
int area = 16 * 9
var points = 0;
function getPoints() {
points++;
console.log(points);
}
let button = document.createElement("button");
button.innerHTML = "Add ten points";
button.onclick = function() {
// add 10 points to the score
score += 10;
// update the score div
score_div.innerHTML = score;
};
<h1><ahref="http://www.baidu.com">Someone</a></h1>
int sum(int a, int b){
return a + b;
}
fix invalid codeSat, 18 Feb 2023 void set_background(int r, int g, int b) {
r = r % 256;
g = g % 256;
b = b % 256;
if (r < 0) {
r = 0;
}
if (g < 0) {
g = 0;
}
if (b < 0) {
b = 0;
}
std::cout << "r=" << r << " g=" << g << " b=" << b << "\n";
SDL_FillRect(screen, 0, SDL_MapRGB(screen->format,r,g,b));
}
void MoveBall(int n, int m)
{
if (n > m)
printf("%d %d", n, m);
else
printf("%d %d", m, n);
}
<html>
<head>
<title>Master of Minecraft</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1>Master of Minecraft</h1>
<h2>Light description</h2>
<script src="app.js"></script>
<script src="tabs.js"></script>
</div>
</body>
</html>
fix invalid codeSat, 18 Feb 2023 fix invalid code:
def add(a, b):
return a - b
def generate_html(name, title, heading):
html = """<html>
<body>
<h1>%s</h1>
<h2>%s</h2>
</body>
</html>""" % (heading, name)
return html
print(generate_html('Kevin Castner', 'Tutorial on Python', 'Programming with Python'))
void setup() {
size(640, 480);
background(255);
}
Script
<button onClick="increase();">Click Me</button>
<script>
var points = 0;
function increase() {
points += 1;
alert("You have " + points + " point(s)");
}
</script>
#include <iostream>
using namespace std;
int main() {
int t;
cin >> t;
for (int i = 0; i < t; i++) {
int p, q, r;
cin >> p >> q >> r;
int a[p], b[q], c[r];
for (int j = 0; j < p; j++)
cin >> a[j];
for (int j = 0; j < q; j++)
cin >> b[j];
for (int j = 0; j < r; j++)
cin >> c[j];
long long int sum = 0;
int x = 0, y = 0, z = 0;
while (x < p && y < q && z < r) {
if (a[x] == b[y] && b[y] == c[z]) {
sum += a[x];
x++;
y++;
z++;
} else if (
<button class="btn btn-primary btn-lg btn-block" type="button">Block level button</button>
<button class="btn btn-default btn-lg btn-block" type="button">Block level button</button>
void generate_3d_game(const char* file_name) {
//...
}
#include "Particle.h"
#include "Adafruit_SSD1306.h"
#include "Adafruit_GFX.h"
int button = D6;
const int buttonPin = D7;
const int ledPin = D4;
int counter = 0;
void setup() {
pinMode(buttonPin, INPUT);
pinMode(ledPin, OUTPUT);
Particle.function("score",score);
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
}
int score(String args){
int buttonState = digitalRead(buttonPin);
int score = 0;
if (buttonState == LOW) {
digitalWrite(ledPin, HIGH);
score = score + 1;
return score;
}
else {
digitalWrite(ledPin, LOW);
}
}
<div class="container">
<header>
<div class="header-title">
<span>Apex Legends</span>
</div>
</header>
<div class="content">
<div class="content-main">
<div class="content-main-intro">
<div class="content-main-intro-text">
<h1>Welcome to Apex Legends, Where Legends are made</h1>
</div>
<div class="content-main-intro-buttons">
<div class="content-main-intro-buttons-button">Play Free Now</div>
<div class="content-main-intro-buttons-button">Learn More</div>
</div>
</div>
</div>
</div>
</div>
void gen_game() {
//generate game
}
gen_game();
var btn = document.createElement("BUTTON");
var t = document.createTextNode("CLICK ME");
btn.appendChild(t);
document.body.appendChild(btn);
const spin = () => {
console.log('|')
setTimeout(() => {
console.log('\\')
setTimeout(() => {
console.log('-')
setTimeout(() => {
console.log('/')
}, 100)
}, 100)
}, 100)
}
spin()
<div class="container" id="main">
<h1>Freedom</h1>
<section>
<h3>Section 1</h3>
<p>Description 1</p>
</section>
<section>
<h3>Section 2</h3>
<p>Description 2</p>
</section>
<section>
<h3>Section 3</h3>
<p>Description 3</p>
</section>
</div>
<ul>
<li>item 1</li>
<li>item 2</li>
<li>item 3</li>
</ul>
<!DOCTYPE html>
<html>
<head>
<title>Master of Minecraft</title>
<meta name="description" content="My first Minecraft website.">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<a href="http://www.w3schools.com">Visit W3Schools</a>
</body>
</html>
.sidebar {
width: 20%;
height: 100%;
background-color: #222;
color: white;
font-size: 1.5rem;
padding: 2rem;
line-height: 1.5;
}