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 a sample build configuration for JavaScript. | |
# Check our guides at https://confluence.atlassian.com/x/14UWN for more examples. | |
# Only use spaces to indent your .yml configuration. | |
# ----- | |
# You can specify a custom docker image from Docker Hub as your build environment. | |
image: node:6.9.4 | |
pipelines: | |
default: | |
- step: |
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
var gulp = require('gulp'); | |
var browserSync = require('browser-sync'); | |
var sass = require('gulp-sass'); | |
var prefix = require('gulp-autoprefixer'); | |
var concat = require('gulp-concat'); | |
var babel = require('gulp-babel'); | |
var cp = require('child_process'); | |
/** | |
* Launch the Server |
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
const test1 = [1, 2, 0] // Output: 3 | |
const test2 = [3, 4, -1, 1] // Output: 2 | |
const test3 = [7,8,9,11,12] // Output: 1 | |
const firstMissingPositive = (inputArray) => { | |
// Re-order array lowest to highest (mutation OK) | |
inputArray.sort((a, b) => a - b) | |
// Remove negative numbers | |
const cleanArray = inputArray.filter((n) => n > 0) |
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 | |
/** | |
* @param $email | |
* @param $fname | |
* @param $apikey | |
* @param $listid | |
* @param $server - Datacenter associated with account e.g. 'us2' | |
*/ | |
function mc_subscribe($email, $firstName, $apiKey, $listId, $server) |