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
{ | |
"en-us": { | |
"default": { | |
"heading": "Data and Cookie Consent", | |
"details1": { | |
"text1": "We and ", | |
"link1": "our partners", | |
"purpose1": "Store and/or access information on a device" | |
}, | |
"details2": { |
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
class Stack { | |
constructor() { | |
this.items = []; | |
} | |
push(element) { | |
this.items.push(element); | |
} | |
pop() { | |
return this.items.pop(); | |
} |
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
VM_BOX = 'ubuntu/xenial64' | |
Vagrant.configure(2) do |config| | |
config.vm.box = VM_BOX | |
config.vm.network "private_network", type: "dhcp" | |
config.vm.provider "virtualbox" do |vb| | |
vb.memory = 1024 | |
end | |
config.vm.provision 'shell', inline: <<-SHELL | |
echo 'ubuntu:ubuntu' | sudo chpasswd | |
SHELL |
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
function shuffle(array) { | |
const shuffledArray = []; | |
for (let i = 0; shuffledArray.length !== array.length; i++) { | |
const randomIndex = Math.floor(Math.random() * array.length); | |
if (!shuffledArray.includes(array[randomIndex])) { | |
shuffledArray.push(array[randomIndex]); | |
} | |
} | |
return shuffledArray; | |
} |
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
'use strict'; | |
const activeBuilds = []; | |
function socketEmitter(res, type, data) { | |
// emit the event | |
res.app.get('io').sockets.emit(type, data); | |
// store the last event per project for future connections |
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
'use strict'; | |
const browserify = require('browserify'); | |
const bs = require('browser-sync').create(); | |
const buffer = require('vinyl-buffer'); | |
const del = require('del'); | |
const gif = require('imagemin-gifsicle'); | |
const gulp = require('gulp'); | |
const gutil = require('gulp-util'); | |
const imagemin = require('gulp-imagemin'); |
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
# | |
# This is the main Apache HTTP server configuration file. It contains the | |
# configuration directives that give the server its instructions. | |
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information. | |
# In particular, see | |
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html> | |
# for a discussion of each configuration directive. | |
# | |
# Do NOT simply read the instructions in here without understanding | |
# what they do. They're here only as hints or reminders. If you are unsure |
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
function binaryConvert() { | |
var num = x; | |
if (num != Math.floor(num)) { | |
console.log("Please enter a number"); | |
} else if (num < 0) { | |
console.log("Please enter a positive number"); | |
} else { |