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 | |
//Clase Mysql para la conexion con la base de datos | |
class Mysql { | |
private $conexion; | |
private $consultas_totales; | |
public function Mysql() { | |
if (!isset($this->conexion)) { | |
$this->conexion = (mysql_connect("ServerName","userName","userPass")) or die (mysql_error()); | |
mysql_select_db("databaseName",$this->conexion) or die (mysql_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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# tiempoAtmosferico.py | |
# | |
# Copyright 2016 manrique <https:/github.com/luisFcoOrtiz> | |
# | |
from xml.dom import minidom | |
import urllib |
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
/* | |
* MainArrayBidimensional.java | |
* | |
* Copyright 2017 manrique <https:/github.com/luisFcoOrtiz> | |
* | |
* | |
* | |
*/ | |
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
/* | |
* FocusEvent.java | |
* | |
* Copyright 2017 manrique <https:/github.com/luisFcoOrtiz> | |
* | |
* | |
*/ | |
import java.awt.*; | |
import java.awt.event.*; | |
import javax.swing.*; |
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
/* | |
* EventosRaton.java | |
* | |
* Copyright 2017 manrique <https:/github.com/luisFcoOrtiz> | |
* | |
*/ | |
import java.awt.*; | |
import java.awt.event.*; |
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
#!/bin/bash | |
## make a backup from whole folder entry by argument## | |
## $1 only could be a folder or file ## | |
## For desscompress use tar -xvf file.tar.gz ## | |
actualDate=$(date +"%Y-%m-%d") | |
errorState=$? | |
folderPath="/home/manrique/BACKUPS" | |
tar -zcvf $folderPath/$1-$actualDate.tar.gz $1 | |
##Check errors | |
if [ $errorState -eq 0 ]; then |
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
import java.sql.*; | |
import javax.swing.JOptionPane; | |
/* | |
* 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. | |
*/ |
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
/*METODO RECURSIVO PARA LEER XML*/ | |
/*Method to read XML file recursively*/ | |
private void startReader(Node nodeEntry) { | |
NodeList nodeList = nodeEntry.getChildNodes(); | |
for (int i=0; i<nodeList.getLength(); i++) { | |
//get the item | |
Node node = nodeList.item(i); | |
if (node.getNodeType()== Node.ELEMENT_NODE) { |
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
import java.awt.Color; | |
import java.awt.Component; | |
import java.beans.SimpleBeanInfo; | |
import java.sql.ResultSet; | |
import java.sql.ResultSetMetaData; | |
import java.sql.SQLException; | |
import javax.accessibility.Accessible; | |
import javax.swing.JTable; | |
import javax.swing.Scrollable; |
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 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. | |
*/ | |
package ejercicio8bdoracle; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; |
OlderNewer