Skip to content

Instantly share code, notes, and snippets.

Herbert Veitengruber HerbertV

Block or report user

Report or block HerbertV

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@HerbertV
HerbertV / include_once.js
Created Nov 22, 2013
Simple way to include a css or js on the fly only once.
View include_once.js
/**
* 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;
@HerbertV
HerbertV / ANTNewsBot.xml
Last active Dec 28, 2015
A prove of concept! Create and manage simple news pages with Ant.
View ANTNewsBot.xml
<!--
===========================================================================
ANT News Bot
===========================================================================
Sample files are provided below.
Folder structure:
/
/ant
/ant/ant-contrib (external ant lib)
@HerbertV
HerbertV / ANT_hompage_deploy_snippets.xml
Last active Dec 28, 2015
ANT snippets for concat, minfiy css and js and link replacing.
View ANT_hompage_deploy_snippets.xml
<!--
===========================================================================
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 / gist:5169966
Last active Dec 14, 2015
Sample Hexagon Shape for processing.js
View gist:5169966
/**
* =========================================================================
* Hexagon
* =========================================================================
* simple hexagon class for processing.js
*/
class Hexagon
{
// center of the hexagon
float centerX;
@HerbertV
HerbertV / ResponsiveObject
Created Feb 10, 2014
Responsive Object for Starbound Mods
View ResponsiveObject
-- ===================================================================
-- 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
You can’t perform that action at this time.