Skip to content

Instantly share code, notes, and snippets.

View tmorgner's full-sized avatar

Liron Morgner tmorgner

  • 02:43 (UTC +01:00)
View GitHub Profile
@tmorgner
tmorgner / Note
Last active December 18, 2019 11:51
your-storageshare.de/s/P72drdS7oHgBb3n
your-storageshare.de/s/bk8qq83mBwPM5w4
@tmorgner
tmorgner / pack-splatmap.bat
Created May 16, 2019 14:43
Substance Painter and Designer Helper Files
@echo off
set BASE=%1
REM Packs a Substance Painter splat map into a
REM combined texture image that is usable in a Splatmap shader in Unity.
REM
REM requires ImageMagick to be installed and on the path.
REM
REM https://imagemagick.org/script/download.php
@tmorgner
tmorgner / InputManager.asset
Last active March 15, 2019 10:37
A Unity InputManager definition for full VR input
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!13 &1
InputManager:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Axes:
- serializedVersion: 3
m_Name: Horizontal
descriptiveName:
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using NaughtyAttributes;
using UnityEditor;
using UnityEngine;
namespace UnityTools
{
/*
* This program is free software; you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License, version 2.1 as published by the Free Software
* Foundation.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* program; if not, you can obtain a copy at http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
* or from the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
@tmorgner
tmorgner / Prd2943.java
Last active February 1, 2018 15:37
A sample test case for case PRD-2943 with documentation
package org.pentaho.reporting.designer;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.pentaho.reporting.designer.core.auth.GlobalAuthenticationStore;
import org.pentaho.reporting.designer.core.editor.ReportDocumentContext;
import org.pentaho.reporting.designer.core.editor.ReportRenderContext;
import org.pentaho.reporting.engine.classic.core.MasterReport;
import org.pentaho.reporting.engine.classic.core.SubReport;
/*
* This program is free software; you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License, version 2.1 as published by the Free Software
* Foundation.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* program; if not, you can obtain a copy at http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
* or from the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
@tmorgner
tmorgner / ParameterLineageTest
Created June 24, 2015 14:34
Sample to show lineage on a pentaho reporting parameter. This is meant to be run from within the reporting-engine-core tests, as then you'll have all the environment set up correctly.
/*
* This program is free software; you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License, version 2.1 as published by the Free Software
* Foundation.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* program; if not, you can obtain a copy at http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
* or from the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
@tmorgner
tmorgner / .pentaho-reporting-build-settings.properties
Created July 9, 2014 12:45
pentaho-reporting-build-settings.properties
# Build override for Pentaho Reporting
# Fail the build if a test fails
# Fail the build if a error occurs
junit.haltonfailure=true
junit.haltonerror=true
ivy.settingsurl=file:///${user.home}/ivysettings.xml
ivy.repository.resolve=http://localhost:8081/artifactory/libs-snapshot
# Used later during publish to a maven server
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<config xmlns="http://artifactory.jfrog.org/xsd/1.5.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.jfrog.org/xsd/artifactory-v1_5_4.xsd">
<offlineMode>false</offlineMode>
<fileUploadMaxSizeMb>100</fileUploadMaxSizeMb>
<dateFormat>dd-MM-yy HH:mm:ss z</dateFormat>
<addons>
<showAddonsInfo>false</showAddonsInfo>
<showAddonsInfoCookie>1404389080582</showAddonsInfoCookie>
</addons>
<security>