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 [state, setState] = useState() | |
handleFile(event) { | |
let file = event.target.files[0] | |
this.setState({file : file}) | |
} | |
handleUpload(event) { | |
let file = this.state.file | |
let formData = new FormData() |
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
//#define Hall_Sensor A0 | |
#define Hall_Sensor_D 2 | |
int Val2 = 0; | |
void setup() { | |
// put your setup code here, to run once: | |
Serial.begin(9600); | |
pinMode(Hall_Sensor_D, 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
bubbleSort PROC | |
xor bx, bx | |
xor cx, cx | |
mov cl, countStats | |
dec cx | |
iloop_quickSort: | |
push cx | |
push bx | |
xor ax, ax |
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
<h1>App Component</h1> | |
<!-- [atributo] -> Atributo modo solo atributo: Toma valor de variable --> | |
<!-- (atributo) -> Atributo modo solo evento: Asigna valor a variable --> | |
<!-- [(atributo)] -> Atributo modo atributo y evento: Toma y Asigna valor a variable --> | |
<input type="text" [(ngModel)]="name" /> | |
<p>{{ name }}</p> | |
<ng-container *ngIf="flag; else empty"> | |
<div class="container"> |
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
# INSTALAR CORDOVA | |
sudo npm install -g cordova | |
# CREAR UNA APP | |
cordova create MyApp | |
# DEFINIR UNA PLATAFORMA | |
cordova platform add ( browser | android ) | |
# COPIAR COMPILADOS DE LA APP WEB |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
void readFile (char * filename) | |
{ | |
FILE * file; | |
/* | |
ABRIR FILE * EN MODO LECTURA [r] | |
NULL SI NO EXISTE EL FICHERO |
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
package com.macochave.filechooser; | |
import android.content.Context; | |
import android.net.Uri; | |
import android.util.Log; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.BaseAdapter; | |
import android.widget.ImageView; |
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
#ifndef ANALIZER_H | |
#define ANALIZER_H | |
#include <stdio.h> | |
#include "structs/mlist.h" | |
#include "structs/comando.h" | |
#include "structs/parametro.h" | |
#include "commands/cmd_mkdisk.h" | |
#include "commands/cmd_rmdisk.h" | |
#include "commands/cmd_fdisk.h" |
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
#BACKGROUND |
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 <iostream> | |
#include <math.h> | |
using namespace std; | |
/* | |
* CONVERT BINARY '11011' TO DECIMAL | |
* |__c__|__r__|__i__|_2^i_|_dec_| | |
* | 1101| 1 | 0 |__1__|__1__| | |
* | 110| 1 | 1 |__2__|__2__| |