Skip to content

Instantly share code, notes, and snippets.

View IsaacGonzalez's full-sized avatar

Isaac González IsaacGonzalez

View GitHub Profile
@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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Pagina</title>
<style>
header{
width: 80%;
}
.container{
@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"
/*! 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
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;
<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">
using Inercy.Kinect.Handlers;
using Microsoft.Kinect;
using Microsoft.Kinect.Toolkit;
using Microsoft.Kinect.Toolkit.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.logging.Level;
import java.util.logging.Logger;
public class JavaApplication1 {
public static void main(String[] args) {
InputStreamReader isr = new InputStreamReader(System.in);
@IsaacGonzalez
IsaacGonzalez / gist:6830252
Created October 4, 2013 18:17
Configuración de portlets para liferay
<!-- liferay-display.xml -->
<?xml version="1.0"?>
<!DOCTYPE display PUBLIC "-//Liferay//DTD Display 6.1.0//EN" "http://www.liferay.com/dtd/liferay-display_6_1_0.dtd">
<display>
<category name="Inicio2">
<portlet id="16" />
<portlet id="17" />
</category>
</display>
verde: #007839
morado: #734DB6
naranja:  #FF931E
verde marica: #39B54A
amarillo: #D9E021
Ocre: #F9C73D
.boton-morado, boton-morado:hover{
background: #734DB6 !important;