file
vi /etc/environment
add these lines...
LANG=en_US.utf-8
LC_ALL=en_US.utf-8
require('font-awesome/css/font-awesome.css'); | |
document.body.innerHTML = '<i class="fa fa-fw fa-question"></i>'; |
file
vi /etc/environment
add these lines...
LANG=en_US.utf-8
LC_ALL=en_US.utf-8
<?php | |
function getCotizaciones($monedas = true) | |
{ | |
$url = 'http://www.bcu.gub.uy/_layouts/BCU.Cotizaciones/handler/CotizacionesHandler.ashx?op=getcotizaciones'; | |
$data = ""; | |
$last_date_found = false; | |
$diff = 1; | |
$cotizaciones = array(); | |
$codigosAceptados = array("USD", "EURO", "CHF", "GBP", "ARS", "BRL", "JPY", "U.I."); |
// original gist | |
const shuffleArray = arr => arr.sort(() => Math.random() - 0.5); | |
// fully random by @BetonMAN | |
const shuffleArray = arr => arr | |
.map(a => [Math.random(), a]) | |
.sort((a, b) => a[0] - b[0]) | |
.map(a => a[1]); | |
shuffleArray([1, 2, 3]) //[3, 1, 2] |
router.get('/:page', (req, res) => { | |
let page = req.params.page; // page number | |
let limit = 50; // number of records per page | |
let offset = page * limit; | |
db.user.findAndCountAll({ | |
attributes: ['id', 'first_name', 'last_name', 'date_of_birth'], | |
limit: limit, | |
offset: offset, | |
$sort: { id: 1 } |
Command Flags
Flag | Options | Description |
---|---|---|
-codec:a |
libfaac, libfdk_aac, libvorbis | Audio Codec |
-quality |
best, good, realtime | Video Quality |
-b:a |
128k, 192k, 256k, 320k | Audio Bitrate |
-codec:v |
mpeg4, libx264, libvpx-vp9 | Video Codec |
version: '2.1' | |
services: | |
php: | |
tty: true | |
build: | |
context: . | |
dockerfile: tests/Docker/Dockerfile-PHP | |
args: | |
version: cli | |
volumes: |
============ Este post se encuentra publicado en https://pybaq.co/blog/el-zen-de-python-explicado/ ===========
Si alguna vez abren la consola de python y escriben import this
verán que les aparecerán las líneas con el famoso Zen de Python:
/** | |
* This magically uses batchexecute protocol. It's not documented, but it works. | |
* | |
* Licensed under: MIT License | |
* | |
* Copyright (c) 2024 Ruslan Gainutdinov | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights |