Skip to content

Instantly share code, notes, and snippets.

View luanlmd's full-sized avatar

Luan Almeida luanlmd

View GitHub Profile
@luanlmd
luanlmd / varnimate.js
Created May 28, 2010 02:11
Varnimate
function varnimate(obj,props,duration,start)
{
var now = new Date().getTime();
var atual = new Date().getTime();
//console.log(atual);
if (start+duration <= atual)
{
for (p in props)
{
obj[p] = props[p]
@luanlmd
luanlmd / email.php
Created April 16, 2010 18:27
Sending email with PEAR Mail class
<?php
include("Mail.php");
//$headers['Reply-to'] = "$name <$email>";
$headers['From'] = '[email protected]';
$headers['Subject'] = "Test";
$headers['Content-Type'] = "text/plain; charset=utf-8";
$recipients = '[email protected]';
$body = 'Something';
<?php
class ArrayMixer
{
function __construct($options)
{
$this->options = $options;
$this->result = array();
}
function go($arr, $x)