Skip to content

Instantly share code, notes, and snippets.

/*
---
description: LazyLoad
authors:
- David Walsh (http://davidwalsh.name)
- Thomas Dullnig (http://thomasdullnig.blogspot.com) added the vertical/horizontal mode
license:
- MIT-style license
@thomasd
thomasd / Function.circulate.js
Created December 8, 2009 02:09
Circulates the given number between the min-, max-boundaries (boundaries included)
/*
Script: Number.circulate.js
Extension for Mootools Number Native
License:
MIT-style license.
Copyright:
Copyright (c) 2009-2010 [Thomas Dullnig](http://thomasdullnig.blogspot.com/).
@thomasd
thomasd / gd_watermark.inc.php
Created December 4, 2009 10:33
Overlays an image with a watermark image (phpThumb-Plugin for GD-lib)
<?php
/**
* GD Watermark Lib Plugin Definition File
*
* This file contains the plugin definition for GD Watermark
* Usage:
* <?php
* require_once 'path/to/ThumbLib.inc.php';
* $pic = PhpThumbFactory::create('path/to/pic/destination');
* $watermark = PhpThumbFactory::create('path/to/watermark/destination');