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 contractMap = [{ | |
id: 'P001', | |
name: 'Privat - Privathaftpflicht' | |
}, { | |
id: 'P002', | |
name: 'Privat - KFZ' | |
}, { | |
id: 'P003', | |
name: 'Privat - Hausrat' | |
}, { |
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
//all the training plans matching the selected goal and gender | |
//recommended plan will be based on the selected training period | |
const response = { | |
error: false, | |
code: 'xxx', | |
message: 'success, | |
payload: { | |
recommendedPlan: "01230123012301230123" //this plan will be one of the plans below. you can find it through this id | |
plans: { | |
1: trainingPlanModel, |
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
yrics (that I stole from reddit): | |
mhhh! mhhh! eh-huahh~ (shhh) | |
(chikisugi maisomu) | |
hgleh-ughH hgleh-aghH (tss) | |
uhh-guru (hmn~) |
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
https://fxhome.com/hitfilm-express/pwyw?campaign=hitfilm-express-homepage |
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
//note: each day can have multiple plans and each plan can be in multiple days. but there can only be one set of the muscle type | |
//in any given day. so the unique identifier of each set is a combination of both muscle type id and day | |
//example: | |
//plan: [ | |
//. { | |
//. name: '012301230123012301230123' | |
//. day: 1 | |
//. } | |
//. { | |
//. name: '321032103210321032103210' |
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 mediaJSON = { "categories" : [ { "name" : "Movies", | |
"videos" : [ | |
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ], | |
"subtitle" : "By Blender Foundation", | |
"thumb" : "images/BigBuckBunny.jpg", | |
"title" : "Big Buck Bunny" | |
}, | |
{ "description" : "The first Blender Open Movie from 2006", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ], |
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
ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "m3u8 url" -c copy "03 - filename.mp4" |
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
marine token six mouse fashion museum carpet cattle burst wire danger elite toy audit blouse blur lens foot level weapon box open kitten glass |
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 fs = require('fs'); | |
function fileSize(fileName, cb) { | |
if(typeof fileName !== 'string') { | |
return process.nextTick(cb, new TypeError('argument should be string')); | |
} | |
fs.stat(fileName, (err, stats) => { | |
if(err) { | |
return cb(err); |