This file contains 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>Test Suite</title> | |
<script> | |
(function() { | |
var results; | |
this.assert = function assert(value, desc) { | |
var li = document.createElement("li"); | |
li.className = value ? "pass" : "fail"; | |
li.appendChild(li); |
This file contains 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>Event Stuff</title> | |
<style type="text/css"> | |
body { | |
overflow: hidden; | |
} | |
#image { | |
position: absolute; |
This file contains 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
gsdgsgsd |
This file contains 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
define( function( require ) { | |
var $ = require('jquery-1.7.1.min'), | |
_ = require('underscore'), | |
backbone = require('backbone'), | |
handlebars = require('handlebars-1.0.0.beta.6'), | |
routes = require('controllers/routes'), | |
views = require('views/views'), | |
navbar = require('navbar'), | |
footer = require('footer'), | |
about = require('about'), |
This file contains 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
define( function( require ) { | |
var $ = require('jquery-1.7.1.min'), | |
_ = require('underscore'), | |
backbone = require('backbone'), | |
handlebars = require('handlebars-1.0.0.beta.6'), | |
routes = require('controllers/routes'), | |
views = require('views/views'), | |
navbar = require('navbar'), | |
footer = require('footer'), | |
about = require('about'), |
This file contains 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
require([ "order!jquery-1.7.1.min", "order!underscore", "order!backbone", | |
"order!handlebars-1.0.0.beta.6", "order!navbar", "order!footer", | |
"order!about", "order!agile_resources", | |
"order!application_development", "order!apply_now", "order!books", | |
"order!careers", "order!contact", "order!learn", | |
"order!current_openings", "order!electronic_card_wall", "order!events", | |
"order!executive_bios", "order!home", "order!modernization", | |
"order!services", "order!testimonials", "order!training", | |
"order!transformation", "order!webinars", "order!whitepapers", | |
"order!views/views", "order!controllers/routes", "order!contentflow" ], |
This file contains 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
Backbone.View.extend({ | |
template: 'my-view-template', | |
render: function(){ | |
var that = this; | |
$.get("/templates/" + this.template + ".html", function(template){ | |
var html = $(template).tmpl(); | |
that.$el.html(html); | |
}); | |
return this; |
This file contains 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
Modularizing a Backbone View | |
Backbone views most usually always interact with the DOM, using our new modular system we can load in Javascript templates using Require.js text! plugin. | |
// Filename: views/project/list | |
define([ | |
'jQuery', | |
'Underscore', | |
'Backbone', | |
// Using the Require.js text! plugin, we are loaded raw text | |
// which will be used as our views primary template |
This file contains 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
@Test | |
public void updateCustomCategoryShouldUpdateWithNoDuplicates() throws Exception { | |
long categoryId = 123L; | |
String categoryName = "new name"; | |
CustomCategory category1 = new CustomCategory(); | |
category1.setId(categoryId); | |
category1.setCategoryName("previous name"); | |
CustomCategory category2 = new CustomCategory(); |
This file contains 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> | |
<script type="text/javascript" src="jquery-1.8.2.min.js"></script> | |
<script> | |
var sampleRate = 44100; | |
var beatsPerMin = 180; | |
var ticksPerBeat = 4; | |
function applyEnvelope(data, a, d, s, r) { |
OlderNewer