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
int pinSW = D0; | |
int pinDT = D1; | |
int pinCLK = D2; | |
int valorSW; | |
int valorDT; | |
int valorNuevoCLK; | |
int valorAnteriorCLK; | |
void setup() { | |
Serial.begin(9600); | |
pinMode(pinSW, INPUT); |
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 | |
// core/kumbia/kumbia_view.php | |
/** | |
* Devuelve la respuesta en formato JSON | |
* application/json | |
* | |
* @param type $data | |
*/ | |
public static function json($data) | |
{ |
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
//#include <Servo.h> | |
#include <ArduinoJson.h> | |
#include <ESP8266WiFi.h> | |
#include <ESP8266HTTPClient.h> | |
#include <WiFiClient.h> | |
// #define CLK D0 | |
#define BTN_BLANCO D7 //blanco |
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 Tag::css('jardin') ?> | |
<?= Html::includeCss() ?> | |
<pre> | |
<?php View::content() ?> | |
</pre> | |
<?php foreach($j->getIdiomas() as $i): ?> | |
<?php echo $i->lang ?> | |
<?php endforeach; ?> |
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 | |
class JardinController extends AppController { | |
public function index() { | |
$Idiomas = new Idiomas(); | |
// var_dump($Idiomas->find(["jardin_id" => "5d9ab7c70a21a04f88123d65"])); | |
$Jardin = new Jardin(); |
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 | |
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
/** | |
* Description of codigo_barras_controller |
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 | |
// Todos los dispositovos prestamos a un alumno | |
$Alumnos = new Alumnos(); | |
$alumno = $Alumnos->find(1); | |
$prestamos = $alumno->getPrestamos(); | |
foreach($prestamos as $p): | |
echo $p->fecha_prestamo; | |
$items = $p->getItems(); |
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 | |
class JardinController extends AppController { | |
public function index() { | |
} | |
// retornar X Y para la grafica | |
// 5d896075f2a3a7fc14643def | |
public function get_xy($id = "5d896075f2a3a7fc14643def") { |
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
<div id="app"> | |
<label>nombre</label> | |
<input type='text' v-model="dispositivo.nombre"> | |
<br> | |
<label>modelo</label> | |
<input type='text' v-model="dispositivo.modelo"> | |
<br> | |
<label>marca</label> | |
<input type='text' v-model="dispositivo.marca"> |
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
#encoding: utf-8 | |
require 'nokogiri' | |
name_xml_file = "archivo.xml" | |
f = File.open(name_xml_file) | |
xml = Nokogiri::XML(f) | |
body = xml.xpath("//s0:invoices") | |
body.xpath("//s0:uuid").each do |e| | |
puts e.content | |
end |
NewerOlder