?

All generations.

Apex Legends "classic" HTML.

<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

generate functionSat, 18 Feb 2023

white background

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)); }

C++
View
generate functionMon, 13 Mar 2023

calculator

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; }

C++
View

Youtube.

<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>

generate functionMon, 20 Feb 2023

spinning cross

#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; } }

C++
View
generate functionMon, 13 Mar 2023

2D

#include <iostream> int main(void){ std::cout << "Hello world!" << std::endl; return 0; }

C++
View
generate functionMon, 13 Mar 2023

show window

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

C++
View

Pressing any one of 10 buttons generates a sentence.

<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>

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 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)); }

generate functionMon, 13 Mar 2023

Ball

#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 (

C++
View

antique button

<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>

generate functionSat, 18 Feb 2023

Generate a button that you can press to get points.

#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); } }

C++
View

Apex Legends "classic" HTML.

<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>

generate functionSun, 19 Feb 2023

spinning cross

const spin = () => { console.log('|') setTimeout(() => { console.log('\\') setTimeout(() => { console.log('-') setTimeout(() => { console.log('/') }, 100) }, 100) }, 100) } spin()

Javascript
View

Questions about programming?Chat with your personal AI assistant