Skip to content

Instantly share code, notes, and snippets.

Darren Waddell fakedarren

Block or report user

Report or block fakedarren

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
@fakedarren
fakedarren / gist:126522
Created Jun 9, 2009
MooTools Doc Format Idea.xml
View gist:126522
<function name="$">
<description>The dollar function has a dual purpose: Getting the element by its id, and making an element in Internet Explorer "grab" all the Element methods.</description>
<syntax>
var myElement = $(el);
</syntax>
<args>
<arg name="el">
<desc type="object">If the object has a toElement method, toElement will be called to get the Element.</desc>
<desc type="string">A string containing the id of the DOM element desired.</desc>
<desc type="element">The element will be extended if it is not already.</desc>
View mootools-1.1-upgrade.js
if(!window.console) var console = {};
if(!console.warn) console.warn = function(){};
(function(){
oldA = $A;
window.$A = function(iterable, start, length){
if (start != undefined && length != undefined) {
console.warn('1.1 > 1.2: $A no longer takes start and length arguments.');
if (Browser.Engine.trident && $type(iterable) == 'collection'){
start = start || 0;
View mooquery.attributes.js
/*
Script: mooQuery.Attributes.js
A jQuery 1.3.2 compatability layer for MooTools 1.2 (http://jquery.com, http://mootools.net)
Version: 0.1
License:
MIT-style license.
Copyright:
View mooquery.attributes.js
/*
Script: mooQuery.Attributes.js
A jQuery 1.3.2 compatability layer for MooTools 1.2 (http://jquery.com, http://mootools.net)
Version: 0.1
License:
MIT-style license.
Copyright:
View mootools1.12.js
//MooTools, My Object Oriented Javascript Tools. Copyright (c) 2006 Valerio Proietti, <http://mad4milk.net>, MIT Style License.
var MooTools={version:"1.12"};function $defined(a){return(a!=undefined)}function $type(b){if(!$defined(b)){return false}if(b.htmlElement){return"element"}var a=typeof b;if(a=="object"&&b.nodeName){switch(b.nodeType){case 1:return"element";case 3:return(/\S/).test(b.nodeValue)?"textnode":"whitespace"}}if(a=="object"||a=="function"){switch(b.constructor){case Array:return"array";case RegExp:return"regexp";case Class:return"class"}if(typeof b.length=="number"){if(b.item){return"collection"}if(b.callee){return"arguments"}}}return a}function $merge(){var c={};for(var b=0;b<arguments.length;b++){for(var f in arguments[b]){var a=arguments[b][f];var d=c[f];if(d&&$type(a)=="object"&&$type(d)=="object"){c[f]=$merge(d,a)}else{c[f]=a}}}return c}var $extend=function(){var a=arguments;if(!a[1]){a=[this,a[0]]}for(var b in a[1]){a[0][b]=a[1][b]}return a[0]};var $native=function(){for(var b=0,a=argu
View default.html
<%@ Page Language="c#" AutoEventWireup="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>ArMix</title>
<style type="text/css">
html, body
{
height: 100%;
View demo.txt
/*
---
name: Simple Example
description: A really simple example of a demo
authors:
- Darren Waddell
@fakedarren
fakedarren / Survey
Created Oct 17, 2010
Braindump for contents of a survey of our users
View Survey
MooTools User Survey
====================
1. About you
------------
What is your name? (You need to fill this in if you want to win a prize!)
Email address (as above)
Age (15-21, 21-25, 25-30, 30-35, 35+)
View Date picker styles?
::input[type=date] {
border: 1px solid red;
}
::input[type=date]:day {
font: bold 30px "Comic Sans";
background: pink;
}
View example.cs
public class Foo
{
public Foo()
{
}
string moderatorEmail
{
get
{
You can’t perform that action at this time.