Skip to content

Instantly share code, notes, and snippets.

Eric Ferraiuolo ericf

Block or report user

Report or block ericf

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
View gist:9255584
<!DOCTYPE html>
<meta charset="utf-8">
<title>JS Bin</title>
<link rel="stylesheet" href="">
<div class="pure-g">
ericf / CSP + SPDY
Last active Aug 29, 2015

SPDY Push for Externalizing Dynamic Inline Scripts for CSP

This is a rough outline of some thoughts on how to leverage [SPDY Push][SPDY] externalize inline <script>s that contain dynamic, page/user-specific configuration and state data to align with [CSP][].


We are building web apps where the initial rendering (HTML) is built server-side, and in order for the client-side JavaScript app to take over, the app's configuration and initial state are written to an inline <script> element.

View gist:53406
YUI().use("node", "compat", function(Y){
Y.Lang.isValue( YAHOO && YAHOO.util.Dom && YAHOO.util.Event ) // true
View test.html
<head><title>testing gist</title></head>
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
View gist:76385
var lis = Y.all('#test li'), index = 0;
Y.log( index );
Y.log( lis.item(index).compareTo(li) ); // true
index ++;
View gist:153853
* SimpleTabs
* Eric Ferraiuolo —
var SimpleTabs,
SIMPLETABS = 'simpletabs',
BOUNDING_BOX = 'boundingBox',
CONTENT_BOX = 'contentBox',
View gist:199914
* Overlay Modal Extension
* Oddnut Software
* Copyright (c) 2009 Eric Ferraiuolo -
* MIT License -
var Modal,
View gist:209358
YUI.add('overlay-modal', function(Y) {
* Overlay Modal Extension
* Oddnut Software
* Copyright (c) 2009 Eric Ferraiuolo -
* MIT License -
View gist:209363
YUI().use('overlay', 'overlay-modal', function(Y){
var FancyOverlay ='fancyoverlay', Y.Overlay, [Y.OverlayModal]);
var myFancyOverlay = new FancyOverlay({
modal : true,
mask : true,
centered : true,
width : 500
height : 300
View logismo.js
YUI.add('logismo', function(Y) {
* Logismo
var Logismo,
LOGISMO = 'logismo',
EVENTS_RESOURCE_PATH = 'eventsResourcePath',
You can’t perform that action at this time.