Skip to content

Instantly share code, notes, and snippets.

View IsaacGonzalez's full-sized avatar

Isaac González IsaacGonzalez

View GitHub Profile
<Window x:Class="KinectApplication.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:k="http://schemas.microsoft.com/kinect/2013"
xmlns:i="clr-namespace:Inercy.Kinect.Controls;assembly=Inercy.Kinect.Controls"
Title="MainWindow" Height="800" Width="1000" Closing="Window_Closing" Loaded="Window_Loaded">
<Grid>
<k:KinectRegion Name="kinectRegion" Margin="-10,10,10,-10">
<StackPanel Name="stack">
div.cuadroCentro{
-moz-box-shadow: 0px 0px 10px #000000;
-webkit-box-shadow: 0px 0px 10px #000000;
box-shadow: 0px 0px 10px #000000;
background-color: white;
margin:0 auto;
display: block;
width: 300px;
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-latest.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim,x=function(e,t){return new x.fn.init(e,t,r)},w=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=/\S+/g,C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,k=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,E=/^[\],:{}\s]*$/,S=/(?:^|:|,)(?:\s*\[)+/g,A=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,j=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,D=/^-ms-/,L=/-([\da-z])/gi,H=function(e,t){return t.toUpperCase()},q=function(e){(a.addEventListener||"load"===e.type||"complete"===a.readyState)&&(_(),x.ready())},_=function(){a.addEventListener?(a.removeEventListener("DOMContentLoaded",q,!1),e.removeEventListener("load",q,!1)):(a.detachEvent("onreadystatechange",q),e.detachEvent("o
@IsaacGonzalez
IsaacGonzalez / build-common-theme.xml
Created April 11, 2014 18:10
Archivo build-common-theme.xml para Liferay 6.2 que incluye el tema welcome-theme para poder crear temas basados de el.
<?xml version="1.0"?>
<!DOCTYPE project>
<project name="build-common-theme">
<import file="../build-common-plugin.xml" />
<target name="build-css">
<java
classname="com.liferay.portal.tools.SassToCssBuilder"
classpathref="portal.classpath"
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Pagina</title>
<style>
header{
width: 80%;
}
.container{
@IsaacGonzalez
IsaacGonzalez / details.jsp
Created May 26, 2014 23:42
Versión slimmed down del archivo details.jsp para Liferay 6.2 GA2, la cual solo deja visible la funcionalidad para cambiar el retrato del usuario.
<%--
/**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
@IsaacGonzalez
IsaacGonzalez / portal.properties
Last active August 29, 2015 14:04
Propiedades para incluir todos los archivos de javascript en barebone.jsp y everything.jsp
javascript.barebone.files=\
\
#
# YUI core
#
\
aui/aui/aui.js,\
aui/aui-base-html5-shiv/aui-base-html5-shiv.js,\
\
#
if(typeof YUI!="undefined"){YUI._YUI=YUI}var YUI=function(){var c=0,f=this,b=arguments,a=b.length,e=function(h,g){return(h&&h.hasOwnProperty&&(h instanceof g))},d=(typeof YUI_config!=="undefined")&&YUI_config;if(!(e(f,YUI))){f=new YUI()}else{f._init();if(YUI.GlobalConfig){f.applyConfig(YUI.GlobalConfig)}if(d){f.applyConfig(d)}if(!a){f._setup()}}if(a){for(;c<a;c++){f.applyConfig(b[c])}f._setup()}f.instanceOf=e;return f};(function(){var q,b,r="patched-v3.11.0",i=".",o="http://yui.yahooapis.com/",u="yui3-js-enabled",d="yui3-css-stamp",m=function(){},h=Array.prototype.slice,s={"io.xdrReady":1,"io.xdrResponse":1,"SWF.eventHandler":1},g=(typeof window!="undefined"),f=(g)?window:null,w=(g)?f.document:null,e=w&&w.documentElement,a=e&&e.className,c={},j=new Date().getTime(),n=function(A,z,y,x){if(A&&A.addEventListener){A.addEventListener(z,y,x)}else{if(A&&A.attachEvent){A.attachEvent("on"+z,y)}}},v=function(B,A,z,x){if(B&&B.removeEventListener){try{B.removeEventListener(A,z,x)}catch(y){}}else{if(B&&B.detachEvent){B.de
public class Test{
private void Button_Click(object sender, RoutedEventArgs e){
Empleado empleadoABorrar = null;
for(var empleado in lista1){
if(empleado.getNombre().Equals(this.t1.Text))
empleadoABorrar = empleado;
}
<?php
// localhost/multipart_tet
var $response = array();
// Agarramos el archivo
var $foto = $_FILES["file"]
// Vemos cuales headers son los que están llegando