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
>> sudo python ./PagSeguroServer.py | |
---------------------------------------- | |
Exception happened during processing of request from ('127.0.0.1', 54600) | |
Traceback (most recent call last): | |
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 284, in _handle_request_noblock | |
self.process_request(request, client_address) | |
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 310, in process_request | |
self.finish_request(request, client_address) | |
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 323, in finish_request | |
self.RequestHandlerClass(request, client_address, self) |
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
Liferay.Service('assetvocabulary/get-vocabularies'); | |
Liferay.Service('assetvocabulary/update-vocabularies', { vocabularyIds: [10455, 13014] }); | |
Liferay.Service('assetvocabulary/update-vocabularies', { vocabularyIds: [10455,13014] }, function(obj){ | |
console.log(obj); | |
}); | |
Liferay.Service('assetvocabulary/get-vocabularies', function(obj) { | |
console.log(obj); | |
}); |
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
<?xml version="1.0"?> | |
<root available-locales="en_US" default-locale="en_US"> | |
<dynamic-element dataType="string" name="priority" type="select"> | |
<dynamic-element name="trivial" type="option" value="1"> | |
<meta-data locale="en_US"> | |
<entry name="label"><![CDATA[Trivial]]></entry> | |
</meta-data> | |
</dynamic-element> | |
<dynamic-element name="minor" type="option" value="2"> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="../../build/aui/aui.js" type="text/javascript"></script> | |
<link rel="stylesheet" href="../../build/aui-skin-classic/css/aui-skin-classic-all-min.css" type="text/css" media="screen" /> | |
<style type="text/css"> |
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
<%-- | |
/** | |
* Copyright (c) 2000-2011 Liferay, Inc. All rights reserved. | |
* | |
* This library is free software; you can redistribute it and/or modify it under | |
* the terms of the GNU Lesser General Public License as published by the Free | |
* Software Foundation; either version 2.1 of the License, or (at your option) | |
* any later version. | |
* | |
* This library is distributed in the hope that it will be useful, but WITHOUT |
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
connect: function(diagramNode1, diagramNode2, optConnector) { | |
var instance = this; | |
if (isString(diagramNode1)) { | |
diagramNode1 = A.Widget.getByNode(_HASH+A.DiagramNode.buildNodeId(diagramNode1)); | |
} | |
if (isString(diagramNode2)) { | |
diagramNode2 = A.Widget.getByNode(_HASH+A.DiagramNode.buildNodeId(diagramNode2)); | |
} |
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
deleteSelectedNode: function() { | |
var instance = this; | |
var strings = instance.getStrings(); | |
var selectedNode = instance.selectedNode; | |
if (selectedNode && !selectedNode.get(REQUIRED) && confirm(strings[DELETE_NODES_MESSAGE])) { | |
selectedNode.close(); | |
instance.editingNode = instance.selectedNode = null; | |
instance.stopEditing(); | |
} |
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
A.DiagramNode.CIRCLE_POINTS: [[35, 20], [28, 33], [14, 34], [5, 22], [10, 9], [24, 6], [34, 16], ...], | |
A.DiagramNode.DIAMOND_POINTS: [ [30,5], [35,10], [40,15], [45,20], [50,25], [55,30], [50,35], ...], | |
A.DiagramNode.SQUARE_POINTS: [ [5,5], [10,5], [15,5], [20,5] ,[25,5], [30,5], [35,5], [40,5], [50,5], [55,5], ... ], |
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></title> | |
</head> | |
<body> | |
<script src="http://yui.yahooapis.com/3.4.1/build/yui/yui-min.js"></script> | |
<div style="position: absolute; background-color: #ff0000; top: 200px; left: 200px; width: 60px; height: 60px;" id="test"></div> |
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 [imgOut] = convertToDichromatImage(img, method) | |
setDefaultValue(2, 'method', 'deutran'); | |
RGB_LMS = [ 17.8824 43.5161 4.11935;... | |
3.45565 27.1554 3.86714;... | |
0.0299566 0.184309 1.46709 ]; | |
RGB_LMS_INV = inv(RGB_LMS); | |
LMS_DEUTRAN = [ 1 0 0;... |