- 6 - What happens if NPM goes down
- 8 - Running Node in production
- 5 - Show and Tell all the things
- 7 - Database Year (mongo, cassandra, redis, leveldb, couch, manta, datomic)
- 7 - Koa.js
- Teal - talk with the indie game dev group
// 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 | |
// Requires jQuery | |
var cleanHTML = function(pastedString){ | |
// If this looks like some kind of raunchy ass microsoft bull shit, | |
// rip off it's effing <HEAD></HEAD> | |
var headRegex = new RegExp("<head[\\d\\D]*?\/head>", "g"); | |
pastedString = pastedString.replace(headRegex, ''); |
var obj = [{"id":"user_1","name":"Matt Carter","gender":"male","age":"30"}, {"id":"user_2","name":"Erik Akers","gender":"male","age":"29"}] | |
var str = JSON.stringify(obj) | |
var parsed = JSON.parse(str) |
require.config({ | |
baseUrl : '/js/', | |
paths : { | |
'jquery' : '/vendor/jquery', | |
'underscore' : '/vendor/underscore', | |
'handlebars' : '/vendor/handlebars', | |
'hbs' : '/vendor/hbs', | |
'ejs' : '/vendor/ejs', | |
'backbone' : '/vendor/backbone', | |
'chaplin' : '/vendor/chaplin', |
[ | |
{ | |
"name" :"Joe", | |
"favorite_foods" : ["pizza", "eggs", "lasagna"] | |
}, | |
{ | |
"name" : "Ross", | |
"favorite_foods" : ["lasagna"] | |
}, | |
{ |
[{"title":"Email","templates":{"preview":"<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'><html xmlns='http://www.w3.org/1999/xhtml'> <head> <custom name='opencounter' type='tracking'> <meta http-equiv='Content-Type' content='text/html; charset=UTF-8' /> <title><%= newsletter.title %></title> </head> <body> <table width='600px' style='font-family:Helvetica, Arial, sans-serif; font-size:1em'; > <tr> <td colspan='5'><img src='http://f.cl.ly/items/440H2i061W2D143r190t/header.jpg' /></td> </tr> <tr> <td colspan='1' style='font-size:.8em; padding-bottom:15px;'><a href='#'>Read it Now on Passport</a></td> <% var modifiedTitle = newsletter.title.replace('On the Radar - ', '') %> <td colspan='4' style='vertical-align:top; font-size:.8em; text-align:right; color:#636363;'><%= modifiedTitle %></td> </tr> <% for(var i=0; i<stories.length; i++) {%> <% if(stories[i].sort_index |
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'><html xmlns='http://www.w3.org/1999/xhtml'> <head> <custom name='opencounter' type='tracking'> <meta http-equiv='Content-Type' content='text/html; charset=UTF-8' /> <title>On the Radar - October 8, 2013 (Joe's Test)</title> </head> <body> <table width='600px' style='font-family:Helvetica, Arial, sans-serif; font-size:1em'; > <tr> <td colspan='5'><img src='http://f.cl.ly/items/440H2i061W2D143r190t/header.jpg' /></td> </tr> <tr> <td colspan='5' style='font-size:.8em; text-align:right; color:#636363;'>On the Radar - October 8, 2013 (Joe's Test)</td> </tr> <tr draggable='true' class='draggable' data-storyId='525d9190cb843f0000000001'> <td style='vertical-align:top;'> <img draggable='false' style='width:190px;' src='https://s3.amazonaws.com/gutenberg-vml/dffdc4e9c20dcec27c21503c79eb69e |
/** | |
* Your Copyright Here | |
* | |
* Appcelerator Titanium is Copyright (c) 2009-2010 by Appcelerator, Inc. | |
* and licensed under the Apache Public License (version 2) | |
*/ | |
#import "TiModule.h" | |
#import "ComAudiosyncModule.h" | |
#import "TiBase.h" | |
#import "TiHost.h" |
View = require 'views/base/view' | |
template = require 'views/templates/fanview/center/demographics' | |
module.exports = class Demographics extends View | |
template: template | |
template = null | |
autoRender: true | |
tagName: 'div' | |
className: 'accordion-inner row-fluid' | |
completeTask:(e)=> | |
e.preventDefault() if e | |
e.stopPropagation() if e | |
@toggleStatus() | |
status = @model.get('status'); | |
@model.save { | |
status: status | |
}, { | |
success: => | |
unless @removeTaskTimeout |