Skip to content

Instantly share code, notes, and snippets.

View anutron's full-sized avatar

Aaron Newton anutron

View GitHub Profile
@anutron
anutron / react.html
Created May 9, 2014 22:05
react.html
<!DOCTYPE html>
<html>
<head>
<title> - Thanx - What Dashboards Should Be</title>
<link href="http://app.thanx-web.dev/assets/dashboard/dashboard.css?body=1" media="screen" rel="stylesheet" type="text/css" />
<link href="http://app.thanx-web.dev/assets/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<meta content="authenticity_token" name="csrf-param" />
<meta content="Xac6epF3MRCbxnth8zjwrlcTDRlqNIxywLrMHErc8t0=" name="csrf-token" />
<script type="text/javascript">
@anutron
anutron / edge.md
Created January 10, 2014 08:25
MooTools Edge.md

Introducing MooTools Edge: The Community Edition of MooTools

Ever since its launch way back in 2006 MooTools, like most other open source projects, has been the product of the hard work of the people who use it. We, the users of the framework, shaped it into the stable, compact, highly useful suite of tools that helped change the way the web worked.

Over time, the project managed to solve most of the problems that its creators set out to solve. As the original team moved through various careers, always giving time to MooTools, the project matured and browsers got better.

MooTools 1.5, or How Stable Doesn't Mean Dead

It's been nearly a year since the last release of MooTools Core. Today we're releasing MooTools 1.5 which contains roughly 75 commits, most of which are minor bug fixes.

@anutron
anutron / modal.less
Created September 12, 2013 17:13
Fix for modal-backdrop in Flat-UI Pro
// Background
.modal-backdrop {
z-index: (@zindex-modal-background - 10);
background-color: @modal-backdrop-bg;
// Fade for backdrop
&.in { .opacity(95); }
// previously was:
// &.in { .opacity(.95); }
// which produced a nearly invisible backdrop with opacity set to .0095
['touchstart', 'touchmove', 'touchend'].each(function(type){
Element.NativeEvents[type] = 2;
});
Element.Events.swipe = {
onAdd: function(fn){
var startX, startY, active = false;
var touchStart = function(event){
active = true;
@anutron
anutron / mootools.highchart.adapter.js
Created March 20, 2012 00:31
mootools.highchart.adapter.js
/**
* @license Highcharts JS v2.2.0 (2012-02-16)
* MooTools adapter
*
* (c) 2010-2011 Torstein Hønsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
@anutron
anutron / Events.Relay.js
Created December 22, 2010 19:35
PassEvents.js
/*
---
description: Allows you to pass through events in Class instances.
provides: [Events.Relay]
requires:
- Core/Events
script: Events.Relay.js
...
/*
---
name: Behavior
description: Auto-instantiates widgets/classes based on parsed, declarative HTML.
requires: [Core/Class.Extras, Core/Element, /ART.Window]
provides: [Behavior]
...
*/
(function(){
(function(){
var supported;
if (document.body.setAttribute) {
var el = document.createElement('div');
el.setAttribute('onhashchange','return;');
supported = typeof el.onhashchange == 'function';
} else {
supported = 'onhashchange' in document.documentElement;
}
if (!supported) {
Depender.require({
scripts: [Fx.Reveal, Fx.Accordion, FormValidator],
sources: [core],
ready: fn1
});
Depender.require({
scripts: [Fx.Reveal],
sources: [core],
ready: fn2,
Request.JSON = new Class({
Extends: Request,
options: {
secure: true
},
initialize: function(options){
this.parent(options);