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> | |
<!-- Importing Web Component's Polyfill --> | |
<script src="bower/platform/platform.js"></script> | |
<!-- Importing Custom Elements --> | |
<link rel="import" href="../src/image-object-tracking.html"> | |
</head> | |
<body> | |
<!-- Using Custom Elements --> |
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> | |
<meta charset="utf-8"> | |
<title>tracking.js - first tracking</title> | |
<script src="tracking-min.js"></script> | |
<!-- include dataset for each objet type --> | |
<script src="data/face.js"></script> | |
<script src="data/eye.js"></script> |
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> | |
<meta charset="utf-8"> | |
<title>tracking.js - first tracking</title> | |
<script src="tracking-min.js"></script> | |
<script | |
src="https://code.jquery.com/jquery-3.3.1.min.js" | |
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" | |
crossorigin="anonymous"></script> |
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> | |
<meta charset="utf-8"> | |
<title>tracking.js - first tracking</title> | |
<script src="tracking-min.js"></script> | |
<script | |
src="https://code.jquery.com/jquery-3.3.1.min.js" | |
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" | |
crossorigin="anonymous"></script> |
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 safeToStringTest() { | |
ObjectB objectB = new ObjectB("Fake propB"); | |
ObjectA objectA = new ObjectA("Fake propA", objectB); | |
String stringObjectA = Objects.toString(objectA); | |
System.out.println(stringObjectA); | |
assertNull(objectA.getObjectB2()); | |
assertTrue(stringObjectA.contains("objectB2=null")); |
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
ObjectB objectB = new ObjectB("Fake propB"); | |
ObjectA objectA = new ObjectA("Fake propA", objectB); | |
System.out.println(Objects.toString(objectA)); |
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
public class ObjectA { | |
private String propA; | |
private ObjectB objectB1; | |
private ObjectB objectB2; | |
public ObjectA(String propA, ObjectB objectB1) { | |
this.propA = propA; | |
this.objectB1 = objectB1; | |
} | |
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
public class ObjectB { | |
private String propB; | |
public ObjectB(String propB) { | |
this.propB = propB; | |
} | |
// Getters and setters | |
@Override |
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
/** | |
* Returns the string representation of the {@code Object} argument. | |
* | |
* @param obj an {@code Object}. | |
* @return if the argument is {@code null}, then a string equal to | |
* {@code "null"}; otherwise, the value of | |
* {@code obj.toString()} is returned. | |
* @see java.lang.Object#toString() | |
*/ | |
public static String valueOf(Object 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
/** | |
* Simple script to show how to solve the scrope update | |
* When using the native js TimeOut call | |
* | |
* @author dassiorleando | |
*/ | |
(function (angular) { | |
'use strict'; | |
angular |
NewerOlder