/[0-9A-Za-z]/
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
// /src/app.js | |
// Load Foundation Files | |
import _settings from './css/_settings.scss'; | |
import foundation from './css/foundation.css'; | |
import css from './css/styles.css'; | |
// Import jQuery & underscore | |
import $ from 'jquery'; | |
import _ from 'underscore'; | |
import Task from './models/task'; |
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
import Backbone from 'backbone'; | |
var Task = Backbone.Model.extend({ | |
defaults: { | |
title: '', | |
completed: false | |
}, | |
logStatus: function() { | |
console.log("Title: " + this.get("title")); | |
console.log("Completed: " + this.get("completed")); |
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
// /src/app.js | |
// Import jQuery | |
import $ from 'jquery'; | |
import _ from 'underscore'; | |
import Task from './models/task'; | |
import TaskList from './collections/task_list'; | |
var taskData = [{ | |
title: "Create a model", |
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
import Backbone from 'backbone'; | |
import _ from 'underscore'; | |
import $ from 'jquery'; | |
import Task from '../models/task.js'; | |
var TaskView = Backbone.View.extend({ | |
initialize: function(params) { | |
this.template = params.template; | |
}, | |
render: function() { |
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
import _ from 'underscore'; | |
import $ from 'jquery'; | |
import 'jquery-colpick'; | |
import Postit from './models/postit.js'; | |
var postitData = [{ | |
text: "Backbone is a library not a Framework.", | |
color: "#AC1200" |
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
import _ from 'underscore'; | |
import $ from 'jquery'; | |
import 'jquery-colpick'; | |
import Postit from './models/postit.js'; | |
import PostitNotes from './collections/postit_notes.js'; | |
var postitData = [{ | |
text: "Backbone is a library not a Framework.", |
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
`/\$\d+\.\d\d/` |
5 digit number - /(\d){5}/
IP addresses - /((\d){1,3}\.){3}(\d){1,3}/
/[^b]og/