Updated: October 2017
This file contains hidden or 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 | |
if(isset($_POST['email'])) { | |
// EDIT THE 2 LINES BELOW AS REQUIRED | |
$email_to = "CCColemanwriting@gmail.com"; | |
$email_subject = "Website mail"; | |
function died($error) { | |
// your error code can go here | |
echo "We are very sorry, but there were error(s) found with the form you submitted. "; |
Updated: October 2017
go to www.google.com and search anything.
Open your console. activate your artoo.
copy the code and paste it into your console.
2: HLS Player
app.use((req, res, next) => {
res.header("Access-Control-Allow-Origin", "*"); // "*" for public access and www.example.com for specific uses
res.header(
"Access-Control-Allow-Headers",
"Origin, X-Requested-With, Content-Type, Accept, Authorization"
);
if (req.method === 'OPTIONS') {
res.header('Access-Control-Allow-Methods', 'PUT, POST, PATCH, DELETE, GET');
return res.status(200).json({});
// Bubble Sort Algorithm
const bubbleSort = (arr) => {
let changePosition;
do {
changePosition = false;
arr.map((elm, i) => {
if (elm > arr[i+1]) {
arr[i] = arr[i+1];
arr[i+1] = elm;
const rowsToCols = (rows) => {
let array = [], array2 = [];
const makeTowDimentionalArray = (arr) => {
const DecimalToBinary = (numb) => (numb !== Math.floor(numb) && numb < 0) ? null : parseInt(numb, 10).toString(2);
arr.map((el, i) => {
let arrays = DecimalToBinary(el).split('')
let length = 16 - arrays.length;
if (length!==0) {
for(let i = 0; i < length; i++) {
OlderNewer