This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | |
<CORSRule> | |
<AllowedOrigin>*</AllowedOrigin> | |
<AllowedMethod>GET</AllowedMethod> | |
<MaxAgeSeconds>3000</MaxAgeSeconds> | |
<AllowedHeader>Authorization</AllowedHeader> | |
<ExposeHeader>x-amz-meta-author</ExposeHeader> | |
<ExposeHeader>x-amz-meta-caption</ExposeHeader> | |
<AllowedHeader>x-amz-*</AllowedHeader> |
This file contains 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
[embed]https://gist.github.com/joelongstreet/5052198[/embed] |
This file contains 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
Vimeo [embed]https://vimeo.com/48535034[/embed] | |
Youtube [embed]http://www.youtube.com/watch?v=LeaAHv4UTI8[/embed] | |
Google Maps [embed]https://maps.google.com/maps?q=Lake+Como...[/embed] | |
MeetUp [embed]http://www.meetup.com/nodekc/[/embed] | |
Pinterest [embed]http://pinterest.com/pin/229894755950834306/[/embed] | |
Dribble [embed]http://dribbble.com/shots/992837-Point[/embed] | |
Wikipedia [embed]http://en.wikipedia.org/wiki/Charles_babbage[/embed] |
This file contains 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
<p>The article below shows common html entities and how each will render on the intranet. See the bottom for code used in this post.</p> | |
<br /><br /> | |
<h2>Heading 1 or 2</h2> | |
<h3>Heading 3</h3> | |
<h4>Heading 4</h4> | |
<h5>Heading 5</h5> | |
<h6>Heading 6</h6> | |
<br /><br /><br /> |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Bang Proof</title> | |
<meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1' /> | |
<script src='http://code.jquery.com/jquery-1.10.1.min.js' type='text/javascript'></script> | |
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js'></script> | |
<script> | |
$(function(){ |
This file contains 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
define([ | |
'chaplin', | |
'models/base/model' | |
], function(Chaplin, Model) { | |
'use strict'; | |
var Collection = Chaplin.Collection.extend({ | |
model : Model, | |
parms : {}, | |
listen : function(){ |
This file contains 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
// Config | |
var bucketName = 'xxx'; | |
var saveFileDir = 'files'; | |
var creds = { | |
key : 'xxx', | |
secret : 'xxx', | |
bucket : bucketName | |
}; | |
This file contains 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
define([ | |
'chaplin', | |
'views/base/view', | |
'models/newsletter', | |
'text!templates/publication.hbs' | |
], function(Chaplin, View, Newsletter, template){ | |
'use strict'; | |
var days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']; | |
var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ]; |
This file contains 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
define([ | |
'controllers/base/controller', | |
'models/base/collection', | |
'models/base/model', | |
'views/publications-view', | |
'views/publication-view', | |
'views/newsletters-view' | |
], function(Controller, Collection, Model, PublicationsView, PublicationView, NewslettersView){ | |
'use strict'; |
This file contains 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
// Pasting from Microsoft word is an ABSOLUTE DISASTER | |
// this method removes the endless gobs of garbage produced | |
// by the world's worst, yet most popular, text editor | |
var allowedTags = ['A', 'DIV', 'SPAN', 'B', 'I', 'EM', 'STRONG', 'P']; | |
var cleanHTML = function(htmlString){ | |
// If it doesn't look like a tag, return the string | |
if(htmlString.charAt(0) != '<') return htmlString | |
try{ $(htmlString) } | |
catch(e){ return htmlString } |