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
'----------------------------------------------------------------------------------------------- | |
' Script que configura la red de los equipos. | |
' Creado por Francisco Jose Pérez Jiménez. 11/02/2008 | |
' mail: [email protected] | |
'----------------------------------------------------------------------------------------------- | |
'on Error Resume Next | |
Const cntByteIP = 2 ' Leer el byte de la dirección, los valores deben ser: Byte 1 = 0,Byte 2 = 1,Byte 3 = 2,Byte 4 = 3 |
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
'Script Para Copiar Ficheros y/o Carpetas en los Perfiles de un Equipo | |
'Programador: Fco. J. Perez | |
'Mail: [email protected] | |
'Fecha: 23/02/09 | |
On Error Resume Next |
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
BEGIN SCRIPT | |
========================================== | |
declare @id int | |
declare @type character(2) | |
declare @pages int | |
declare @dbname sysname | |
declare @dbsize dec(15,0) | |
declare @bytesperpage dec(15,0) | |
declare @pagesperMB dec(15,0) | |
create table #spt_space |
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
/* | |
FUNCTION [UTC2Date]: Para convertir la hora UTC en hora local | |
PARAEMTROS: | |
@date: número de segundos desde '1970-01-01' | |
*/ | |
CREATE FUNCTION [UTC2Date] (@date int ) |
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
CREATE function fBusinessDays (@start datetime, @end datetime) | |
returns int | |
as | |
begin | |
/* | |
Descripción: | |
Función diseñada para calcular los días LABORABLES entre 2 fechas | |
*/ | |
DECLARE @wks as int, @LabDays as int — Cálculo de Semanas |
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
import twitter | |
import datetime | |
import os | |
twitter_api=twitter.Twitter(domain="api.twitter.com", api_version='1') | |
WORLD_WOE_ID = 1 | |
world_trends = twitter_api.trends._(WORLD_WOE_ID) | |
trends = [ trend for trend in world_trends()[0]['trends'] ] | |
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
import twitter | |
import os | |
import sys | |
twitter_search = twitter.Twitter(domain="search.twitter.com") | |
#Sarching in Twitter | |
search_results = [] | |
search_key = sys.argv[1] |
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
/** | |
* A collection of utils to help testing | |
*/ | |
class TestUtil { | |
Random random = new Random() | |
/** | |
* Create a Random String with n size y n == 0 theng return a blank string | |
* @param int n, size | |
* @return |
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
TRACE ***************************; | |
TRACE * PROCEDIMIENTOS *; | |
TRACE ***************************; | |
/** | |
* CREA MASTER CALENDARIO | |
* pCampoFecha: Campo Fecha que utilizaremos para calcular el máximo y el mínimo del master calendar | |
* pTablaCampoFecha: Tabla que contiene el campo [pCampoFecha] | |
* Basado en el Script para Master Calendar del libro Qlikview Developer 11 | |
* https://www.packtpub.com/big-data-and-business-intelligence/qlikview-11-developers |
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
/* | |
Listar las tablas de una base de datos y todos los tamaños | |
Más información: http://infoinnova.net/2012/01/tablas-de-una-base-de-datos-con-sus-respectivos-tamanos/ | |
11/08/2015, Francisco Pérez | |
*/ | |
OlderNewer