Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| { | |
| "cells": [ | |
| { | |
| "cell_type": "markdown", | |
| "metadata": {}, | |
| "source": [ | |
| "# Metodos de resolucion de matrices" | |
| ] | |
| }, | |
| { |
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
| int filas [] = {2, 3}; | |
| int columnas [] = {8, 9}; | |
| void setup() { | |
| //Entradas | |
| for(int i = 0; i < sizeof(columnas); i++) | |
| { | |
| pinMode(columnas[i], INPUT); | |
| } |
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
| # Reference: https://twitter.com/barubaruc/status/1033774083660570628 | |
| # | |
| from ortools.constraint_solver import pywrapcp | |
| # constraints | |
| solver = pywrapcp.Solver('Bill') | |
| mixed_fruit = solver.IntVar(0, 7, 'mixed fruit') | |
| french_fries = solver.IntVar(0, 5, 'french fries') | |
| side_salad = solver.IntVar(0, 5, 'side salad') | |
| hot_wings = solver.IntVar(0, 4, 'hot wings') | |
| cheese_sticks = solver.IntVar(0, 3, 'cheese sticks') |
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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
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
| const CoilScheduleMachine = Machine({ | |
| id: 'CoilSchedule', | |
| initial: 'idle', // ! DEFAULT, others for debugging purposes | |
| context: { | |
| job: null, | |
| presignedUrl: null, | |
| fileContent: null, | |
| // coilPlan: MockPlanData.data.coilPlan // ! Debugging offline purposes | |
| }, | |
| states: { |
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
| const usersMachine = Machine({ | |
| id: 'usersMachine', | |
| type: 'parallel', | |
| context: { | |
| users: [], | |
| selectedUser: null, | |
| permissionTypes: null | |
| }, | |
| initial: 'viewing_users', | |
| states: { |
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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
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
| const CoilScheduleMachine = Machine({ | |
| id: 'CoilSchedule', | |
| context: { | |
| job: {}, | |
| csv: [], | |
| balances: [], | |
| startAt: null, | |
| coilsPath: null, | |
| railsPath: null, | |
| errors: [], |
OlderNewer