Skip to content

Instantly share code, notes, and snippets.

/*
---
provides: moofx
version: 3.2.0
description: A CSS3-enabled javascript animation library
homepage: http://moofx.it
author: Valerio Proietti <@kamicane> (http://mad4milk.net)
license: MIT (http://mootools.net/license.txt)
includes: cubic-bezier by Arian Stolwijk (https://github.com/arian/cubic-bezier)
...
"use strict"
var $ = require("elements")
var relativeMap = {
right: 'left',
bottom: 'top'
}
$.implement({
@n3o77
n3o77 / evalDecoder.php
Created January 29, 2013 16:52
Decode PHP eval obfuscation
$string = "BASE 64 STRING";
$decode = strrev('edoced_46esab');
$result = eval(str_replace('eval', 'return', $decode($string)));
while (strstr($result, 'eval')) {
$result = eval(str_replace('eval', 'return', $result));
}
echo("<pre>".$result."</pre>");
// Compute the edit distance between the two given strings
exports.getEditDistance = function(a, b){
if(a.length == 0) return b.length;
if(b.length == 0) return a.length;
var matrix = [];
// increment along the first column of each row
var i;
for(i = 0; i <= b.length; i++){