This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.layout-flex { | |
display: flex; | |
flex-wrap: wrap; | |
justify-content: center; | |
align-items: center; | |
} | |
.item { | |
width: 200px; | |
height: 112px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Flexbox layout pattern</title> | |
<link href="https://fonts.googleapis.com/css?family=Dancing+Script&display=swap" rel="stylesheet"> | |
<link rel="stylesheet" type="text/css" href='css/styles.css'/> | |
<link rel="stylesheet" type="text/css" href='css/layout.css'/> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let value = 0; | |
let pad1; | |
let pad2; | |
function setup() { | |
createCanvas(windowWidth, windowHeight); | |
background("black"); | |
pad1 = new Pad(10, 100, 232); | |
pad2 = new Pad(110, 100, 400); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let value = 0; | |
let pad1; | |
let pad2; | |
function setup() { | |
createCanvas(windowWidth, windowHeight); | |
background("black"); | |
pad1 = new Pad(10, 10); | |
pad2 = new Pad(250, 250); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Flexbox layouts</title> | |
<link href="https://fonts.googleapis.com/css?family=Dancing+Script&display=swap" rel="stylesheet"> | |
<link rel="stylesheet" type="text/css" href='css/styles.css'/> | |
</head> | |
<body> | |
<div class="nav"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"products": [ | |
{ | |
"product": { | |
"SKU": "216RB", | |
"title": "<a href=\"/products/216\">Pocket Pal II™</a>", | |
"Body": "<p><strong>An indispensable uniform accessory that combines fashion with function.</strong></p>\n<p><strong>The 216 Series features:</strong></p>\n<ul>\n<li>\n\t\tWashable 420D white nylon pocket organizer sewn with nylon thread</li>\n<li>\n\t\t5 slide-in and one covered pocket in front, one full-width slide-in pocket in rear</li>\n<li>\n\t\tHandy key ring</li>\n<li>\n\t\tHook and Loop snap closures in choice of 6 vibrant colors</li>\n<li>\n\t\tMeasures 6 1/4\" x 4 3/4\" x 1/4\", Weighs 1 oz</li>\n<li>\n\t\tStandard orders ship in polybag. Optional retail packaging (see photos) also available for a slight upcharge; add a “Q” to the item number when ordering.</li>\n</ul>\n", | |
"Product Sku Image ": { | |
"src": "https://www.adctoday.com/sites/default/files/product_images/216RB-web.jpg", | |
"alt": "", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data = null; | |
var xhr = new XMLHttpRequest(); | |
xhr.withCredentials = true; | |
xhr.addEventListener("readystatechange", function () { | |
if (this.readyState === 4) { | |
console.log(this.responseText); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OkHttpClient client = new OkHttpClient(); | |
Request request = new Request.Builder() | |
.url("https://www.adctoday.com/api/v1/product/700-11ABK") | |
.get() | |
.addHeader("User-Agent", "PostmanRuntime/7.15.2") | |
.addHeader("Accept", "*/*") | |
.addHeader("Cache-Control", "no-cache") | |
.addHeader("Host", "www.adctoday.com") | |
.addHeader("Accept-Encoding", "gzip, deflate") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$product = "700-11ABK"; | |
$curl = curl_init(); | |
curl_setopt_array($curl, array( | |
CURLOPT_URL => "https://www.adctoday.com/api/v1/product/{$product}", | |
CURLOPT_RETURNTRANSFER => true, | |
CURLOPT_ENCODING => "", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ship; // the games ship. | |
var enemies = []; | |
function setup() { | |
createCanvas(800, 600); | |
ship = new Ship(100, 100); | |
} | |