Skip to content

Instantly share code, notes, and snippets.

View HerbertV's full-sized avatar

Herbert Veitengruber HerbertV

View GitHub Profile
@HerbertV
HerbertV / ResponsiveObject
Created February 10, 2014 20:00
Responsive Object for Starbound Mods
-- ===================================================================
-- RESPONSIVE OBJECT
-- ===================================================================
-- Version 1.0.0
--
-- little module/API for furniture and decorations to respond
-- if a player enters it proximity radius and trigger animations
--
-- Config Parameters:
-- see sample file
@HerbertV
HerbertV / gist:5169966
Last active December 14, 2015 23:59
Sample Hexagon Shape for processing.js
/**
* =========================================================================
* Hexagon
* =========================================================================
* simple hexagon class for processing.js
*/
class Hexagon
{
// center of the hexagon
float centerX;
@HerbertV
HerbertV / ANT_hompage_deploy_snippets.xml
Last active December 28, 2015 05:19
ANT snippets for concat, minfiy css and js and link replacing.
<!--
===========================================================================
Some ANT Snippets combine, minify and JS and CSS files.
===========================================================================
For deploying homepages with ANT.
Properties:
dir.src=your source folder
dir.deploy=your deploy folder
-->
@HerbertV
HerbertV / ANTNewsBot.xml
Last active December 28, 2015 18:58
A prove of concept! Create and manage simple news pages with Ant.
<!--
===========================================================================
ANT News Bot
===========================================================================
Sample files are provided below.
Folder structure:
/
/ant
/ant/ant-contrib (external ant lib)
@HerbertV
HerbertV / include_once.js
Created November 22, 2013 14:16
Simple way to include a css or js on the fly only once.
/**
* to includes script/css files only if there are not loaded yet.
*
* @param url url of the resource
* @param type js or css (empty default is js)
*/
function include_once(url,type)
{
var tagname;
var urlattr;