Skip to content

Instantly share code, notes, and snippets.

Avatar

Jacob Smith jacobthemyth

View GitHub Profile
View gulpfile.js
/*
* Gulp plugins
*/
var gulp = require('gulp');
var autoprefixer = require('gulp-autoprefixer');
var babel = require('gulp-babel');
var browserSync = require('browser-sync');
var cache = require('gulp-cache');
var concat = require('gulp-concat');
View 070.js
// -> Define an object called 'Robot'
// -> Define a method called 'new' in Robot
// -> When Robot.new is called it should return a new object with Robot as its prototype
// e.g. var robby = Robot.new();
// Robot should be the prototype of robby
var Robot = {
new: function() {
return Object.create(this);
}
View tags.js
var Bookmark = Backbone.Model.extend({
idAttribute: '_id',
defaults: function(){
return {
url: '',
tags: []
};
}
});
View character.js
// Declare a variable that will later store the selected character and enemy
var selectedCharacter;
var selectedEnemy;
// Define a constructor
window.Character = function(params) {
_.extend(this, params);
};
// Give all characters an attack function
View majestic.js
var Item = Backbone.Model.extend({
defaults: {
name: '',
price: ''
}
});
var ItemCollection = Backbone.Collection.extend({
model: Item,
url: "https://api.parse.com/1/classes/Item",
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<div id="app-container"></div>
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<div id="app-container"></div>
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<div id="app-container"></div>
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<div id="app-container"></div>
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tooter</title>
<link rel="stylesheet" href="styles/main.css">
</head>
<body>
<div class="app-container">
<form class="js-toot-input">
You can’t perform that action at this time.