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
/** | |
* @desc Manufacture KPI Parser /api/situationroom/posters/manufacture/ShipmentByPlan | |
* Author: Benjamin at [email protected] | |
* Version: 0.1.0 | |
*/ | |
'use strict' | |
const debug = require('debug')(`esa:situationroom2:models:transport:v4:KpiParser`) | |
const _ = require('lodash') | |
const type = require('type-detect') |
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
/** | |
* Marlin 3D Printer Firmware | |
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] | |
* | |
* Based on Sprinter and grbl. | |
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or |
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
{ | |
"id": "PLA0CA9B8A2D82264B", | |
"name": "My Playlist", | |
"tracks": [{ | |
"id": "mCnJ2_xN2jU", | |
"title": "Daft Punk - Aerodynamic", | |
"name": "Daft Punk - Aerodynamic", | |
"artists": [{ | |
"id": "sfasdf", | |
"name": "nook" |
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 os = require('os'); | |
var ifaces = os.networkInterfaces(); | |
// from https://stackoverflow.com/questions/3653065/get-local-ip-address-in-node-js | |
Object.keys(ifaces).forEach(function (ifname) { | |
var alias = 0; | |
ifaces[ifname].forEach(function (iface) { | |
if ('IPv4' !== iface.family || iface.internal !== false) { |
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
front: | |
build: . | |
ports: | |
- "80:80" | |
- "443:443" | |
- "9000:9000" | |
links: | |
- mysql:mysql | |
- mongo:mongo | |
- redis:redis |
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
"animal_brand_name".replace(/_/g, ' ').replace(/(?:^|\s)\S/g, function(a) { return a.toUpperCase(); }); |
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 options = RRule.parseString('FREQ=MONTHLY;INTERVAL=1'); | |
options.dtstart = moment.utc('2019-05-16 12:30:00').toDate(); | |
options.count = 2; | |
var rule = new RRule(options) | |
var nextRun = rule.all().slice(-1).pop(); | |
console.log(moment(nextRun).format('YYYY-MM-DD H:mm:ss')); |
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
'hello_my_name_is_ben'.replace(/_/g, ' ').replace(/(?:^|\s)\S/g, function(a) { return a.toUpperCase(); }); | |
// Hello My Name Is Ben |
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
Funcion suma <- totalFacturado ( facturas ) | |
suma <- 0 | |
Para i<-1 Hasta 5 Con Paso 1 Hacer | |
suma <- suma + facturas[i, 4] | |
Fin Para | |
Fin Funcion | |
Funcion suma <- totalKilos ( facturas ) | |
suma <- 0 | |
Para i<-1 Hasta 5 Con Paso 1 Hacer |
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
import * as React from 'react'; | |
import { | |
Icon, | |
MainSectionLayoutTypes, | |
MainSectionLayout, | |
Button | |
} from 'osp-ui-components'; | |
import { FormattedMessage } from 'react-intl'; |