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 date_entry = moment(value.fch_ingreso, "YYYY-MM-DD"); | |
const date_cese = moment(liquidation.date_cese, "YYYY-MM-DD"); | |
let years = Math.trunc(date_cese.diff(date_entry, "years", true)); | |
let months = Math.trunc(date_cese.diff(date_entry, "months", true) - years * 12); | |
let days = Math.round( | |
(date_cese.diff(date_entry, "months", true) - years * 12 - months) * 30.4167 | |
); | |
console.log(`${years} año(s) ${months} mes(es) ${days} dia(s)`); |
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
/** | |
* Module dependencies. | |
*/ | |
var io = require('socket.io') | |
, sio, sio_client_on | |
, express = require('express') | |
, MemoryStore = express.session.MemoryStore | |
, routes = require('./routes') | |
, sessionStore = new MemoryStore(); |
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
// C:\\Users\\JRSalasM\\AppData\\Local\\Programs\\Python\\Python37-32\\python.exe | |
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Python: Odoo", | |
"type": "python", |
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
1. Cuenta apple | |
2. Genera un perfil en tu cuenta | |
3. Genera un certificado y asigna los permisos que requiere tu aplicacion movil. | |
4. Descarga el certificado | |
5. Ejecuta el comando flutter build ios | |
6. Abre el proyecto ios workspace con xcode | |
7. Importa el certificado | |
8. Cumple con las normas de apple, icono, capturas, permisos, etc, en tu info.plist | |
9. Genera un Archive desde xcode | |
10. Sube el compilado a tu cuenta de apple. |
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
http://i3.ytimg.com/vi/8nZ3W-GCX3g/maxresdefault.jpg |
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 | |
// Local ip address that we're trying to calculate | |
address | |
// Provides a few basic operating-system related utility functions (built-in) | |
,os = require('os') | |
// Network interfaces | |
,ifaces = os.networkInterfaces(); | |
// Iterate over interfaces ... |
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
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use App\Setting; | |
use App\Proyect; | |
class AppServiceProvider extends ServiceProvider | |
{ |
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
public function store(Request $request) | |
{ | |
//Reglas de los datos | |
$rules=[]; | |
//Mensaje de error | |
$msj=[]; | |
//Validacion de los datos, reglas y mensajes | |
$this->validate($request,$rules,$msj); | |
//Variable de error | |
$error = null; |
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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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://themeforest.net/item/skote-react-admin-dashboard-template/26318700 | |
Skote - React Admin & Dashboard Template |
NewerOlder