Skip to content

Instantly share code, notes, and snippets.

View IsmiKin's full-sized avatar
🐺

Ismael Ors IsmiKin

🐺
View GitHub Profile
@IsmiKin
IsmiKin / .gitignore
Created June 7, 2013 18:28
Archivo de para ignorar archivos y directorios en git en un proyecto J2EE con NetBeans
/NombreProyecto/NombreProyecto-ejb/build/
/NombreProyecto/NombreProyecto-ejb/dist/
/NombreProyecto/NombreProyecto-war/build/
/NombreProyecto/NombreProyecto-war/dist/
/NombreProyecto/NombreProyecto-ejb/src/conf/persistence.xml
/NombreProyecto/build/
/NombreProyecto/nbproject/
/NombreProyecto/nbproject/private/
/NombreProyecto/build/
/NombreProyecto/dist/
@IsmiKin
IsmiKin / CustomerBean.java
Last active December 18, 2015 13:59
CRUD de JSF - Resolucion de Examen
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
import dao.CustomerFacadeLocal;
import dao.DiscountCodeFacadeLocal;
import dao.MicroMarketFacadeLocal;
import entidades.Customer;
import entidades.DiscountCode;
@IsmiKin
IsmiKin / PopulationData.xml
Created October 6, 2013 22:48
JPGraph y lectura XML
<?xml version="1.0" encoding="windows-1252"?>
<CubeView lang="eng">
<Data colPos="0" cols="14" colspan="14" d="0" rowPos="0" rows="119" rowspan="119">
<Headers colspan="14" rowspan="1">
<Slicer dimCount="2"/>
<ColHeader coldimcount="1">
<ColDim position="1">
<DimLabel>Year</DimLabel>
<ColLabels>
<ColLabel col="0" id="L0" isChild="false" isParent="false" member="0">1821</ColLabel>
@IsmiKin
IsmiKin / .gitignore
Created November 10, 2013 02:43
JavaEE .gitignore (2013)
build.xml
proyecto-ejb/build/
proyecto-ejb/dist/
proyecto-war/build/
proyecto-war/dist/
build/
nbproject/
nbproject/private/
build/
dist/
@IsmiKin
IsmiKin / customerexample.json
Created November 25, 2013 23:29
Customer Example JSON
{
"customerId": 1,
"name": "Jumbo Eagle Corp23",
"addressline1": "111 E. Las Olivas Blvd",
"addressline2": "Suite 51",
"city": "Fort Lauderdale",
"state": "FL",
"phone": "305-555-0188",
"fax": "305-555-0189",
"email": "jumboeagle@example.com",
@IsmiKin
IsmiKin / tryreadexcel.py
Created March 26, 2014 12:47
Read excel in Django with xldr [intentona]
def testexcell(request):
book = open_workbook('pruebaexcel2.xlsx')
sheet = book.sheet_by_index(0)
#print "Name:",sheet.name
#print "Nrows",sheet.nrows
#print "Ncols",sheet.ncols
camposString = [ "zip", "latitude", "longitude" ]
camposDate = [ "modified_date", "publish_date" ]
@IsmiKin
IsmiKin / Adding-New-Rows.markdown
Created June 11, 2014 21:00
A Pen by Ismael Ors.
@IsmiKin
IsmiKin / importcsv.php
Created July 15, 2014 09:59
Import a CSV file in PHP
<?php
global $success ;
$success = 0;
if(isset($_FILES['uploadedfile'])){
$target_path = "query/import/";
@IsmiKin
IsmiKin / savinglocalstorage.js
Created September 12, 2014 06:44
Saving local data (side client) [draft]
var sample = {cucu:1,cucu2:2, jiji:"lalla", wowo:[{la:"la", cu:"cu"},{la:"la", cu:"cu"}] };
localStorage.setItem("datita", JSON.stringify(sample));
$("#showdata").click(function(){
console.log(localStorage);
var recogiendo = JSON.parse(localStorage.getItem("datita"));
console.log(recogiendo.cucu);
});
@IsmiKin
IsmiKin / simplecompany.json.postman_collection
Created April 6, 2015 18:51
Simplecompany REST collection (Rest Postman Client Chrome
{
"id": "cde7e2d3-614f-a859-c703-839adeec759c",
"name": "simplecompany",
"description": "",
"order": [
"01c19aa8-64ab-2e06-8646-e2bd402632b5",
"b61bb5d0-3179-8a03-2ce6-54cc4402dc30",
"fd3f4acc-3154-3eac-037a-ebaac000c0d5",
"6ce45d85-ab1b-0154-b92b-52d79553f274",
"fb7c2755-69b6-3b06-1da9-04db00437020",