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
{"nodes":[{"name":"NJA","title":"NJA","id":8},{"desc":"Jet planes that go really fast.","name":"Hawker 800XP","title":"Hawker 800XP","id":29},{"name":"Some Conference","title":"Some Conference","id":4},{"name":"Jackie","title":"Jackie","id":25},{"contents":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus sollicitudin, massa at faucibus porta, nulla ligula condimentum erat, in mattis dolor justo et nunc. Praesent quis ex sit amet est elementum ornare vel sit amet metus. Suspendisse accumsan sapien sed nisi finibus, ac feugiat nulla vehicula. Proin rhoncus in orci vel eleifend. Integer in nisl in sem varius commodo sed eget leo. Phasellus faucibus libero id neque rhoncus, id vestibulum diam bibendum. Proin tincidunt elit non tristique feugiat. Nulla pretium eros in tortor venenatis, in scelerisque est auctor. Integer sed auctor nisi. Suspendisse potenti. Suspendisse potenti. Nunc sed fringilla ligula.\n\nNulla tempor efficitur arcu accumsan mollis. Nulla porttitor ullamcorper nisi, non cursus j |
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
chart.createLink(nodeId, newLinkId, {style: newLinkStyle}, function(linkedId){ | |
if(linkedId){ | |
var fromNode = chart.getItem(nodeId); | |
var toNode = chart.getItem(linkedId); | |
if(fromNode && toNode){ | |
//great we have them both so now we are ready to save. | |
console.log("Linking from "+JSON.stringify(fromNode)+" to "+JSON.stringify(toNode)); | |
} | |
else{ | |
console.log("One side of the link is missing"); |
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
{ | |
"nodes":[ | |
{ | |
"name":"My Name", | |
"title":"My Name", | |
"id":"http://cdelflds01:7474/db/data/node/0" | |
}, | |
{ | |
"nickname":"J.R.", | |
"lastName":"Gleason", |
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
{ | |
"nodes":[ | |
{ | |
"name":"My Name", | |
"title":"My Name", | |
"id":"http://cdelflds01:7474/db/data/node/0" | |
}, | |
{ | |
"nickname":"J.R.", | |
"lastName":"Gleason", |
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
export default Ember.Route.extend({ | |
model: function(){ | |
var adapter = AddressBookAdapter.create(); | |
return new Promise(function(resolve, reject) { | |
var promise = adapter.findAll(); | |
promise.then(function(response){ | |
resolve(response.data) | |
}); | |
}); | |
} |
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
app = angular.module('plunker') | |
var test = "test" | |
app.run(function($rootScope){ | |
$scope = $roowScope.$new(); | |
$scope.test = test; | |
$scope.$watch('test' function(){ | |
//Do something | |
}); | |
}); |
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
cf.save().success(function (cf) { | |
request(app) | |
.post('/crowdfunding/sendConfirmationEmail') | |
.send({ | |
'id': cf.id, | |
'text': 'test text' | |
}) | |
.end(function (err, res) { | |
assert.equal('PENDING', cf.state); | |
t.rollback(); |
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
function Animal(name) { | |
this.legs = []; | |
this.name = name; | |
console.log("Running Constructor " + name); | |
} | |
Animal.prototype.sayHello = function() { | |
var message = "Hello my name is " + this.name + " and I have " + this.legs.length + " legs" | |
return message; | |
} | |
function Dog(name) { |
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
scope.roundETD = function(etd){ | |
var start = (etd - scope.currentDate.now())/360000; | |
var fixed = start.toFixed(3); | |
var rounded = Math.round(fixed) | |
return Number(rounded+"e-1"); | |
} |
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
package com.gleason.itext; | |
import java.util.Arrays; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | |
import org.springframework.boot.builder.SpringApplicationBuilder; | |
import org.springframework.boot.context.web.SpringBootServletInitializer; | |
import org.springframework.context.annotation.ComponentScan; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.web.bind.annotation.PathVariable; |