Skip to content

Instantly share code, notes, and snippets.

public class Foo
{
public Foo()
{
}
string moderatorEmail
{
get
{
::input[type=date] {
border: 1px solid red;
}
::input[type=date]:day {
font: bold 30px "Comic Sans";
background: pink;
}
@fakedarren
fakedarren / Survey
Created October 17, 2010 13:23
Braindump for contents of a survey of our users
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+)
/*
---
name: Simple Example
description: A really simple example of a demo
authors:
- Darren Waddell
<%@ 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%;
//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
/*
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:
/*
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:
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;
@fakedarren
fakedarren / gist:126522
Created June 9, 2009 14:02
MooTools Doc Format Idea.xml
<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>