Skip to content

Instantly share code, notes, and snippets.

View CheezItMan's full-sized avatar

Chris M CheezItMan

View GitHub Profile
@CheezItMan
CheezItMan / app.js
Last active May 28, 2017 04:12
app.js using Backbone to add, and delete list items (new views yet).
// /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';
@CheezItMan
CheezItMan / task.js
Last active May 19, 2017 21:04 — forked from anonymous/app.js
app.js
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"));
// /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",
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() {
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"
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.",
`/\$\d+\.\d\d/`
@CheezItMan
CheezItMan / regex.md
Created August 25, 2017 16:53
Sample Regex solutions

5 digit number - /(\d){5}/ IP addresses - /((\d){1,3}\.){3}(\d){1,3}/

@CheezItMan
CheezItMan / Sample_regex.md
Created August 26, 2017 20:11
Sample Regex

/[^b]og/