Skip to content

Instantly share code, notes, and snippets.

View csuwildcat's full-sized avatar

Daniel Buchner csuwildcat

View GitHub Profile
@csuwildcat
csuwildcat / gist:285425
Created January 24, 2010 20:17
Fx.Flux
/*
---
script: Fx.Flux.js
description: Defines Fx.Flux, class that allows all available Fx options to be set per-property (duration, transition, events etc.)
license: MIT-style
authors:
- Daniel Buchner
// Element Listener Mixin
(function(){
var setup = function(element){
var listener = new Events, removeEvent = listener.removeEvent;
listener.removeEvent = function(key, value){
removeEvent(key, value);
element.removeEvent(key, value);
};
return listener;
// Element Listener Mixin
(function(){
var setup = function(element){
var listener = new Events,
removeEvent = listener.removeEvent,
listener.guid = makeGuid();
listener.removeEvent = function(key, value){
removeEvent(key, value);
element.removeEvent(key, value);
/*<ltIE9>*/
if (!window.addEventListener) (function(){
var update = function(event){
event.target.store('$change:last', {
type: event.type,
value: event.target.checked
});
};
"Facing financial duress, Bain Capital partner Mitt Romney was asked to rejoin and lead Bain & Co. as interim CEO. Bringing along two lieutenants from Bain Capital, Romney began a traveling campaign to rally employees at all Bain offices globally. Romney also negotiated a complex settlement between the Bain partnership and the firm's lenders, including a $10 million reduction in the $38 million Bain owed the Bank of New England, which by that time had been seized by the FDIC and placed in Chapter 7 liquidation. Romney was able to negotiate this reduction in the debt amount with the FDIC by threatening to use the remaining cash that Bain had on hand as bonuses for Bain executives. Bain & Company paid Bain Capital a fee of $4 million for Romney's services. To avoid the financial crisis that a buyout would have triggered, the group of founding partners agreed to return about $100M cash and forgive outstanding debt."
{
"packaged": false,
"certified": false,
"screen_size": ["small", "medium", "large"],
"input_types": ["pointer", "touch"],
"payments": {
"types": ["free", "subscription"],
"providers": ["bango", "paypal"]
},
"web_apis": {
/*** Method 1 ***/
<element tagname="x-foo">
<template>
<shadowroot>
<div>Baaar me matey!</div>
</shadowroot>
</template>
<script>
/*** Method 1 ***/
<element tagname="x-foo">
<template>
<shadowroot>
<div>Baaar me matey!</div>
</shadowroot>
</template>
<script>
/*** Method 1 ***/
<element tagname="x-foo">
<template>
<shadowroot>
<div>Baaar me matey!</div>
</shadowroot>
</template>
<script>
/*** Template-Bind Delegate Listener ***/
<script>
document.addEventListener('bind', function(e){
switch(e.target.template.id) {
case 'foo-template-1':
// Do some foo 1-ish stuff
break;
case 'foo-template-2':