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
WEBVTT | |
1 | |
00:00:01.000 --> 00:00:10.000 | |
Welcome to bitmovin's bitdash! | |
2 | |
00:00:11.000 --> 00:00:15.000 | |
Experience our highly optimized MPEG-DASH clients... |
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
const $el = $0; | |
const nLikes = 1000; | |
const delaySecs = 1; | |
[...new Array(100)].reduce((acc) => { | |
return acc.then( | |
() => | |
new Promise((resolve) => { | |
$el.click(); | |
setTimeout(resolve, delaySecs * 1000); | |
}), |
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
const createPermutation = (arr, selected = new Set(), output = []) => { | |
if (selected.size >= arr.length) { | |
output.push([...selected].map((i) => arr[i])); | |
return output; | |
} | |
for (let i = 0; i < arr.length; i++) { | |
if (selected.has(i)) { | |
continue; | |
} | |
selected.add(i); |
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
function test() { | |
return this.name; | |
} | |
// please implement your bind function here. | |
Function.prototype.bindFunction = function(context) { | |
}; | |
const context = { |
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
export CONTAINER_NAME= | |
docker stats --format "table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}" $(docker ps --filter=name=${CONTAINER_NAME} -q) |
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
pipeline: | |
slack: | |
image: plugins/slack | |
webhook: <your slack webhook url> | |
channel: deployments | |
username: drone | |
template: "<{{build.link}}|Deployment #{{build.number}} started> on <http://github.com/{{repo.owner}}/{{repo.name}}/tree/{{build.branch}}|{{repo.name}}:{{build.branch}}> by {{build.author}}" | |
when: | |
branch: [ master, staging ] | |
build: |
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
import React from 'react'; | |
import compose from 'recompose/compose'; | |
import withState from 'recompose/withState'; | |
import withHandlers from 'recompose/withHandlers'; | |
import flattenProp from 'recompose/flattenProp'; | |
const Comp = ({ images, isOpen, currentImage, next, previous, toggleOpen }) => | |
<Lightbox | |
images={images} | |
isOpen={isOpen} |
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
import 'dotenv/config'; | |
import { CronJob } from 'cron'; | |
const { JOB1_CRON_TIME } = process.env; | |
new CronJob({ | |
cronTime: JOB1_CRON_TIME, | |
onTick: () => { | |
console.log('do your job'); | |
}, |
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
curl -X POST \ | |
-H "Content-Type: application/json" \ | |
-d '{}' \ | |
${BASE_API_URL} |
NewerOlder