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
var productCollection = {}; | |
var eventMediator = {}; | |
var viewUtils = new utils(); | |
window.products = new Products(); | |
window.product; | |
window.CartView = Backbone.View.extend({ | |
template : _.template(viewUtils.getTemplate('Cart')), | |
render : function(eventName) { |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>YUI App Framework Test Page</title> | |
<meta name="description" content="" /> | |
<meta name="author" content="Mike Britton" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no" /> |
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
YUI.add('test-app', function(Y) { | |
Y.app.TestApp = Y.Base.create('TestApp', Y.App, [], { | |
apps : {}, | |
start : function() { | |
if (this.hasRoute(this.getPath())) { | |
this.dispatch(); | |
} else { | |
this.replace('/'); | |
} |
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
var http = require("http"), url = require("url"), path = require("path"), fs = require("fs") | |
port = 3000; | |
http.createServer(function(request, response) { | |
var uri = url.parse(request.url).pathname, filename = path.join(process.cwd(), uri); | |
path.exists(filename, function(exists) { | |
if (!exists) { |
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
<script> | |
var mouseIsDown = false; | |
function init() { | |
document.onmousedown = function(e) { | |
mouseIsDown = true; | |
}; | |
document.onmouseup = function(e) { | |
mouseIsDown = false; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Basic Phonegap Application</title> | |
<meta name="description" content="" /> | |
<meta name="author" content="" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
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
/** | |
* Provides a CRUD interface to People | |
*/ | |
app.factory('servicePeople', function ($rootScope) { | |
var peopleData = { | |
people: [ | |
{ | |
personID:1, | |
departmentID:4, | |
firstName:'John', |
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
shell: { | |
multiple: { | |
command: [ | |
'cd <%= cordovaProjectName %>', | |
'cordova build', | |
'cordova emulate ios' | |
].join('&&') | |
} | |
} |
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
<html> | |
<head> | |
<title></title> | |
<style> | |
.tableContainer { | |
width:100%; | |
height:100%; |
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 axios from 'axios' | |
const xml2js = require('xml2js') | |
const parseTrack = require('../../node_modules/parse-gpx/src/parseTrack.js') | |
const trackPoint = require('../../node_modules/parse-gpx/src/TrackPoint.js') | |
const routes = [ | |
{ id: -1, name: 'Racing Rain, Embracing Pain', gpx: 'Racing_Rain_Embracing_Pain.gpx', county: 'Paulding', description: 'Description' }, | |
{ id: 0, name: 'Sky Loop - Challenge', gpx: 'sky_loop_back_30.gpx', county: 'Paulding', description: 'Description' }, | |
{ id: 1, name: 'Round Rockmart', gpx: 'round_rockmart.gpx', county: 'Polk', description: 'Description' }, |
OlderNewer