-
YUIConf 2012 videos are rolling out on a regular basis. We had a number of videos out this week: "The Future of YUI CSS" by Jeff Conniff and Tilo Mitra, "Attribute Walkthrough" by Luke Smith, and "When not to use YUI" by Ryan Grove.
-
Jeff's Skinner demo and Tilo's initial version of the Responsive Grid Builder are both available online.
-
Iliyan Peychev, one of our popular community members wrote a great post about YUIConf from a YUI contributor's perspective.
-
The YUI Team hosted it's first Open Hours roundtable discussion this Thursday (November 29th). Anyone can join in and participate in these discussions, and they will take place every Thursday at 2pm PST. We use Google Hangouts for these sessions, so make sure to
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// replace YOUR_INTERCOM_URL_HERE with your app_id | |
var intercomLoader = function() { | |
(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',w.intercomSettings);}else{var d=document;var i=function(){i.c(arguments);};i.q=[];i.c=function(args){i.q.push(args);};w.Intercom=i;var l=function(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/YOUR_INTERCOM_URL_HERE';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s, x);};if(document.readyState==='complete'){l();}else if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})(); | |
window.Intercom('boot', { | |
app_id: 'YOUR_INTERCOM_URL_HERE' | |
}) | |
window.removeEventListener('scroll', intercomLoader); | |
} | |
window.addEventListener('scroll', intercomLoader); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function get(path, obj, fb = `$\{${path}}`) { | |
return path.split('.').reduce((res, key) => res[key] || fb, obj); | |
} | |
function parseTpl(template, map, fallback) { | |
return template.replace(/\$\{.+?}/g, (match) => { | |
const path = match.substr(2, match.length - 3).trim(); | |
return get(path, map, fallback); | |
}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Make the element pulse (grow large and small slowly) */ | |
/* Usage | |
.myElement { | |
animation: pulsate 1s ease-out; | |
animation-iteration-count: infinite; | |
opacity: 1; | |
} | |
*/ | |
@-webkit-keyframes pulsate { | |
0% {-webkit-transform: scale(0.1, 0.1); opacity: 0.0;} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.dotp; | |
import android.app.Activity; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.view.KeyEvent; | |
import com.facebook.react.LifecycleState; | |
import com.facebook.react.ReactInstanceManager; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var util = require('util'); | |
var _ = require('lodash'); | |
var sinon = require('sinon'); | |
/** | |
* Replaces a query method on the given model object with a stub. The query | |
* will still operate on a callback, and allow full access to waterline's | |
* deferred object. However, the query will not cause any I/O and instead | |
* will immediately resolve to the given result. | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$solver_timestamp_sec: 0.01; | |
// Rebound.js-like spring animations in SCSS. | |
// There is a bunch of functions, which helps generating keyframes for you spring | |
// animations, if you (like me) really want to avoid doing that in JavaScript. | |
// | |
// It only generates values for one spring, with given friction, tension and end value | |
// (i.e. it doesn't support spring systems) | |
// Friction and tension are matched to the values used in Origami, so you can use whatever | |
// your designers put in a Quartz Composer file in "Bouncy Animation" blocks :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> var css = rework('').use(pureGrids.units(8)).toString(); | |
undefined | |
> console.log(css); | |
.pure-u-1-8, | |
.pure-u-2-8, | |
.pure-u-1-4, | |
.pure-u-3-8, | |
.pure-u-4-8, | |
.pure-u-1-2, | |
.pure-u-5-8, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd yui3 | |
yui3> selleck | |
yui3> cd build_docs | |
build_docs> cp -R ../build . | |
build_docs> yeti `../src/common/node/selleck_list.js` | |
---- | |
to test one file: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
notifier.handle.evt.fire = function (e) { | |
var subs = this._subscribers.concat(this._afters), | |
args = Y.Array(arguments, 0, true), | |
i, len, halt; | |
for (i = 0, len = subs.length; i < len; ++i) { | |
halt = subs[i].notify(args, this); | |
// stopImmediatePropagation | |
if (halt === false || e.stopped > 1) { |
NewerOlder