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
@Override | |
public boolean onOptionsItemSelected(MenuItem item) { | |
// Handle action bar item clicks here. The action bar will | |
// automatically handle clicks on the Home/Up button, so long | |
// as you specify a parent activity in AndroidManifest.xml. | |
int id = item.getItemId(); | |
//noinspection SimplifiableIfStatement | |
if (id == R.id.action_settings) { | |
return true; |
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
Button botonExtraer = (Button) findViewById(R.id.boton_extraer); | |
botonExtraer.setOnClickListener(new View.OnClickListener() { | |
public void onClick(View v) { | |
String timeStamp = new SimpleDateFormat("ddMMyyyy_HHmmss").format(new Date()); | |
final String inFileName = "/data/data/com.app.mx.registro/databases/registro"; | |
File dbFile = new File(inFileName); | |
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 | |
/** | |
* Created by PhpStorm. | |
* User: xhendor | |
* Date: 5/26/15 | |
* Time: 17:22 | |
*/ | |
?> |
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 | |
// Muestra toda la información, por defecto INFO_ALL | |
phpinfo(); | |
// Muestra solamente la información de los módulos. | |
// phpinfo(8) hace exactamente lo mismo. | |
phpinfo(INFO_MODULES); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>BlogSource</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | |
</head> | |
<body> | |
<div id="contenido"> | |
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
<property name="hibernate.connection.provider_class">org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider </property> | |
<!-- Configuración del pool de conexiones--> | |
<property name="c3p0.autoCommitOnClose">true</property> | |
<property name="c3p0.acquire_increment">1</property> | |
<property name="c3p0.initialPoolSize">5</property> | |
<property name="c3p0.idle_test_period">100</property><!-- seconds --> | |
<property name="c3p0.max_size">50</property> | |
<property name="c3p0.max_statements">0</property> | |
<property name="c3p0.min_size">5</property> |
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
CREATE TABLE public.sait_mod ( | |
pinsait varchar(100) NOT NULL, | |
sait_mod_id numeric NULL, | |
pin text NULL, | |
CONSTRAINT sait_mod_pk PRIMARY KEY (pinsait), | |
CONSTRAINT fk_person FOREIGN KEY (pin) REFERENCES public.pers_person(pin) | |
) | |
WITH ( | |
OIDS=FALSE | |
); |
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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:orientation="horizontal" | |
android:layout_margin="10dp"> | |
<CheckBox | |
android:id="@+id/cbIsDone" |
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
<oPlainobject> | |
<aActions> | |
<oPlainobject.Actions> | |
<cAction>AddReg</cAction> | |
<oPlainobject.Fields> | |
<cAduana> </cAduana> | |
<cAutorizo>noenv</cAutorizo> | |
<cCadenaori></cCadenaori> | |
<nCantimpr>0</nCantimpr> | |
<lCod>0</lCod> |
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
char val; | |
int ledPin12=12;int ledPin13=13; | |
void setup(){ | |
Serial.begin(9600); // Aqui establecemos la velocidad pinMode(ledPin12, OUTPUT); | |
pinMode(ledPin13,OUTPUT); | |
} | |
void loop(){ | |
if(Serial.available())val=Serial.read(); | |
if(val=='1') | |
{ |
OlderNewer