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 backend\models\charts; | |
use common\models\ChecklistLineInstance; | |
use Yii; | |
use yii\db\Query; | |
function queryLines(): Query | |
{ |
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
app.post("/login", (req, res) => { | |
let body = req.body | |
Usuario.findOne({user: body.user}, (error, userDB) =>{ | |
if(error){ | |
res.status(400); | |
res.render('error.hbs', { error: error }) | |
} |
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://github.com/hardcoreplayers/dotfiles/blob/master/tmux/.tmux.conf | |
# battery colors | |
set -g @batt_color_charge_secondary_tier8 'colour0' | |
set -g @batt_color_charge_secondary_tier7 'colour0' | |
set -g @batt_color_charge_secondary_tier6 'colour0' | |
set -g @batt_color_charge_secondary_tier5 'colour0' | |
set -g @batt_color_charge_secondary_tier4 'colour15' | |
set -g @batt_color_charge_secondary_tier3 'colour15' | |
set -g @batt_color_charge_secondary_tier2 'colour15' |
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
{ | |
"description": "description-test", | |
"photo": "iVBORw0KGgoAAAANSUhEUgAAAxQAAAKDCAYAAACDl0zeAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAPHXSURBVHhe7P0HfBx5fh54P51zo7vRyBkEwJyGcfLszIbZnLS72tUqWDq9r2zJtny2pdNZd5Z9/tgnvZbPWp9tfRRs5V1tTpMzOUMOOcwBBBGInLrROef39y80OBiGWU4vh0Ngnu9uDYHqylWN/j1d9a/SheKZCoiIiIiIiGqgr/5LRERERET0jjFQEBERERFRzRgoiIiIiIioZgwURERERERUMwYKIiIiIiKqGQMFERERERHVjIGCiIiIiIhqxkBBREREREQ1Y6AgIiIiIqKaMVAQEREREVHNGCiIiIiIiKhmDBRERERERFQzBgoiIiIiIqoZAwUREREREdWMgYKIiIiIiGrGQEFERERERDXTheKZSvXnd6RSeXO01T8TEREREdH7xy0HipXQcKN/VzoiIiIiIlr/dDpd9adbCBQ3Cg5qdJ1ep01I+1kbQoaR/xERERER0fq1nACWqfr/lgJFuVy++rNilDBhMBigl3+1rhosqtFD+y8REREREa0/K4FChYmylP43DRQr4WF1oFBnNox6PcxmI4wGvQQJ6fRYDhSrTnsQEREREdH6puUE6W4YKK4NE5VKWQKEASajAVazSfuX+YGIiIiIiK67bexKmFBBYiVMmAxGLUjYLCpM6BkmiIiIiIhIc8PnUKhQsdIZ1CVOJoPWGQwqTDBNEBERERHRsrcNFDpUtMubVsKEaitBRERERES04i2BYiVIaI2wVaCQAGHVLnMyMEwQEREREdF1rjtDsXJHJ3U7WJPJCLPRyMuciIiIiIjohm56yZNetZ3g3ZyIiIiIiOhtXBcoVJiQ/2pBQt0qloiIiIiI6GauBoqV9hPLnXoCngoUPD1BR |
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 DIAS_CRITICIDAD_MEDIA = 30; | |
const DIAS_CRITICIDAD_ALTA = 15; | |
const DIAS_VENCIDO = 0; | |
const isProximoAVencer = (context) => context.dias ? context.dias <= DIAS_CRITICIDAD_ALTA : false; | |
const isVencido = (context) => (context.dias !== undefined) ? context.dias <= 0 : false; | |
const isCriticidadMedia = (context) => context.dias ? context.dias <= DIAS_CRITICIDAD_MEDIA : false; | |
const checklistMachine = { | |
id: "checklist", |
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
No overload matches this call. | |
Overload 1 of 2, '(config: MachineConfig<any, any, AnyEventObject>, options?: Partial<MachineOptions<any, AnyEventObject>> | undefined, initialContext?: any): StateMachine<...>', gave the following error. | |
Type '{ id: string; states: StateNodesConfig<any, any, AnyEventObject>; config: StateNodeConfig<any, any, AnyEventObject>; ... 20 more ...; __xstatenode: true; }' is not assignable to type 'StateNodeConfig<any, any, AnyEventObject>'. | |
Types of property 'states' are incompatible. | |
Type 'StateNodesConfig<any, any, AnyEventObject>' is not assignable to type 'StatesConfig<any, any, AnyEventObject>'. | |
Index signatures are incompatible. | |
Type 'StateNode<any, any, AnyEventObject, any>' is not assignable to type 'StateNodeConfig<any, any, AnyEventObject>'. | |
Types of property 'after' are incompatible. | |
Type 'DelayedTransitionDefinition<any, AnyEventObject>[]' is not assignable to type 'Record<string | number, string | Tra |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions | |
// - XState (all XState exports) |
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
% Ejercicio 1a | |
% Comprobar si una lista de elementos constituye un conjunto válido | |
% Un conjunto es una lista de elementos que no contiene elementos repetidos | |
% pertenece(Lista, Elemento): true si Elemento esta en Lista | |
pertenece([], _) :- fail. | |
pertenece([E|_], E) :- !. | |
pertenece([_|L], E) :- pertenece(L, E). | |
% esConjunto(Lista): true si Lista es un conjunto |
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 view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", | |
"profiles": [ | |
{ | |
// Make changes here to the powershell.exe profile | |
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", | |
"name": "Windows PowerShell", |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |