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
class A{ | |
static get name(){ | |
return "Hello World"; | |
} | |
} | |
export default A; |
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
public void uploadFile(MultipartFile file) throws IOException{ | |
long contentLength = file.getBytes().length; | |
long partSize = 5 * 1024 * 1024; | |
String key = file.getOriginalFilename(); | |
InitiateMultipartUploadRequest initRequest = new InitiateMultipartUploadRequest( | |
bucket, key); | |
InitiateMultipartUploadResult initResponse = | |
client.initiateMultipartUpload(initRequest); | |
List<PartETag> partETags = new ArrayList<>(); | |
int partNumber = 1; |
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'), | |
Promise = require('bluebird'); | |
var PromiseRequest = Promise.method(function(data){ | |
return new Promise(function(resolve,reject){ | |
var request = http.request(data.options, function(res){ | |
var response = null; | |
res.setEncoding('utf8'); | |
res.on('data', function (chunk) { | |
console.log('Response: ' + chunk); | |
if(response) |
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
Microsoft Windows [Version 6.1.7601] | |
Copyright (c) 2009 Microsoft Corporation. All rights reserved. | |
java -cp lib/*;structr-ui-1.1-SNAPSHOT-201507052310.b4e80.jar org.structr.Server | |
Jul 13, 2015 1:59:22 PM org.structr.core.Services initialize | |
INFO: Reading structr.conf.. | |
Jul 13, 2015 1:59:22 PM org.structr.core.Services getResources | |
INFO: Found 0 possible resources: [] | |
Jul 13, 2015 1:59:23 PM org.structr.module.JarConfigurationProvider scanResource |
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
{"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 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
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 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
{ | |
"nodes":[ | |
{ | |
"name":"My Name", | |
"title":"My Name", | |
"id":"http://cdelflds01:7474/db/data/node/0" | |
}, | |
{ | |
"nickname":"J.R.", | |
"lastName":"Gleason", |
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
{ | |
"nodes":[ | |
{ | |
"name":"My Name", | |
"title":"My Name", | |
"id":"http://cdelflds01:7474/db/data/node/0" | |
}, | |
{ | |
"nickname":"J.R.", | |
"lastName":"Gleason", |
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
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 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
app = angular.module('plunker') | |
var test = "test" | |
app.run(function($rootScope){ | |
$scope = $roowScope.$new(); | |
$scope.test = test; | |
$scope.$watch('test' function(){ | |
//Do something | |
}); | |
}); |