Skip to content

Instantly share code, notes, and snippets.

const contractMap = [{
id: 'P001',
name: 'Privat - Privathaftpflicht'
}, {
id: 'P002',
name: 'Privat - KFZ'
}, {
id: 'P003',
name: 'Privat - Hausrat'
}, {
//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,
@sysyrin
sysyrin / tet.txt
Created June 15, 2020 11:49
Kumiko Orpheus Lyrics
yrics (that I stole from reddit):
mhhh! mhhh! eh-huahh~ (shhh)
(chikisugi maisomu)
hgleh-ughH hgleh-aghH (tss)
uhh-guru (hmn~)
https://fxhome.com/hitfilm-express/pwyw?campaign=hitfilm-express-homepage
@sysyrin
sysyrin / trainingPlan.js
Last active June 20, 2020 15:15
trainingPlan model
//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'
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" ],
ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "m3u8 url" -c copy "03 - filename.mp4"
marine token six mouse fashion museum carpet cattle burst wire danger elite toy audit blouse blur lens foot level weapon box open kitten glass
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);