Skip to content

Instantly share code, notes, and snippets.

View Isxida's full-sized avatar
🏠
Working from home

Israel Romero Isxida

🏠
Working from home
View GitHub Profile
chart.getTooltip().setPointFormat("<span style=\"color:{series.color}\">{series.name}</span>" +
": <b>{point.y}</b> ({point.percentage:.0f}%)<br/>");
chart.getTooltip().setShared(true);
[11/22/13 17:20:32:259 COT] 00000106 SystemOut O (InmuebleParticipanteSPEController.java:380) TRACE [InmuebleParticipanteSPEController] - data en las 3 validaciones :truetruetrue
[11/22/13 17:20:34:462 COT] 00000106 SystemOut O (InmuebleParticipanteSPEController.java:912) TRACE [InmuebleParticipanteSPEController] - WS Codigo de Error2
[11/22/13 17:20:34:462 COT] 00000106 SystemOut O (InmuebleParticipanteSPEController.java:913) TRACE [InmuebleParticipanteSPEController] - WS Descripcion FATAL : d:\CONSTITUCION_LINEA3\dataZip\03358ef9-0c22-4ae6-8255-c7eb6383963b (El sistema no puede encontrar la ruta especificada.)
[11/22/13 17:20:34:463 COT] 00000106 SystemOut O (InmuebleParticipanteSPEController.java:914) TRACE [InmuebleParticipanteSPEController] - WS Servicio0
[11/22/13 17:20:34:463 COT] 00000106 SystemOut O (InmuebleParticipanteSPEController.java:394) TRACE [InmuebleParticipanteSPEController] - El codigo numero de hoja es: Error
@Isxida
Isxida / print.js
Created November 12, 2013 17:23
Jquery print() :DDDDDDD
/* jQuery.print, version 1.0.3
* (c) Sathvik Ponangi, Doers' Guild
* Licence: CC-By (http://creativecommons.org/licenses/by/3.0/)
*--------------------------------------------------------------------------*/
(function($) {"use strict";
// A nice closure for our definitions
function getjQueryObject(string) {
// Make string a vaild jQuery thing
private String getMimeFromByte(byte[] src) {
if (src[0] == 0x25 && src[1] == 0x50 && src[2] == 0x44 && src[3] == 0x46) {
return "application/pdf";
}
if (src[0] == 0x50 && src[1] == 0x4b) {
return "application/zip";
}
if (src[0] == 0xd0 && src[1] == 0xcf && src[2] == 0x11 && src[3] == 0xe0 && src[4] == 0xa1 && src[5] == 0xb1 && src[6] == 0x1a && src[7] == 0xe1) {
return "application/vnd.ms-powerpoint";
@Isxida
Isxida / VOTOS.cpp
Last active December 17, 2015 08:19 — forked from anonymous/VOTOS
NI idea :v
#include <iostream>
#include <stdlib.h>
#include <string.h>
#include <fstream>
#include <cstdlib>
#include <cstring>
using namespace std;
//Suponiendo por predefinición
// 4 candidatos
@Isxida
Isxida / BeanManagerRegisPub.java
Created April 29, 2013 17:55
Persiste el error, aun asi se haya implementado el metodo getAsString de Converter y el getAsObject
package org.sunarp.copiasimple.bean;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.SessionScoped;
import javax.faces.component.UIComponent;
@Isxida
Isxida / BeanRegisPublico.java
Created April 24, 2013 00:14
Bean con el problema del pick list (cambiado en el metodo getRtitNum())
package org.sunarp.copiasimple.bean;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.SessionScoped;
import javax.faces.component.UIComponent;
@Isxida
Isxida / 19-04-2013.java
Last active December 16, 2015 10:38
No logra conseguir los datos de selectedzonas.
@ManagedBean(name = "cTitulo")
@SessionScoped
public class BeanManegerRegisPublico implements Serializable {
private List<RegisPublico> sourceZN = new ArrayList<RegisPublico>();
private List<RegisPublico> targetZN = new ArrayList<RegisPublico>();
private DualListModel<RegisPublico> zonaRegistral;
private String selectedzonas;
@Isxida
Isxida / Error.log.java
Created April 18, 2013 15:43
El log del Websphere al querer levantar el aplicativo. Porque .log.java? el .java lo ordena automáticamente el gist. :V duh.
[18/04/13 10:37:20:744 COT] 00000063 AdminHelper Z ADMN1009I: An attempt is made to start the Sunarp_Base application.
[18/04/13 10:37:20:774 COT] 00000063 CompositionUn Z WSVR0190I: Starting composition unit WebSphere:cuname=Sunarp_Base in BLA WebSphere:blaname=Sunarp_Base.
[18/04/13 10:37:22:401 COT] 00000063 visitor W com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation [ com.ibm.ws.amm.scan.util.InfoVisitor@209734758 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@-1881690379 ( org.hibernate.annotations.JoinColumnOrFormula.formula ) ] Name [ null ] Description [ Lorg/hibernate/annotations/JoinFormula; ] Call in violation of protocol
[18/04/13 10:37:22:401 COT] 00000063 visitor W com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation [ com.ibm.ws.amm.scan.util.InfoVisitor@209734758 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@703615062 ( org.hibernate.annotations.JoinColumnOrFormula.column ) ] Name [ null ] Description [
@Isxida
Isxida / ruby-example-using-saaspose-sdk-for-ruby.rb
Last active December 15, 2015 18:09
editado para no subirlo a la nube.
require 'rubygems'
require 'rest_client'
require 'json'
require 'openssl'
require 'base64'
require 'uri'
require 'rexml/document'
require_relative 'lib/Common/product'
require_relative 'lib/Common/saaspose_app'