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
#!/bin/sh | |
episodes="*" | |
regex="Seinfeld Season ([[:digit:]]{1,2}) Episode ([[:digit:]]{1,2}) - ([a-zA-Z0-9_\& \-]*)(.mkv|.srt)" | |
for f in $episodes | |
do | |
if [[ $f =~ $regex ]]; then | |
season="${BASH_REMATCH[1]}" | |
episode="${BASH_REMATCH[2]}" | |
name="${BASH_REMATCH[3]}" |
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
00:04:38.041 [ERROR] Failed to create an instance of 'com.gwtplatform.mvp.client.DesktopGinjector' via deferred binding | |
com.google.gwt.core.client.JavaScriptException: (null) @com.google.gwt.core.client.impl.Impl::getHostPageBaseURL()([]): null at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:252) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:137) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:589) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:293) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.google.gwt.core.client.impl.Impl.getHostPageBaseURL(Impl.java) at com.google.gwt.core.client.GWT.getHostPageBaseURL(GWT.java:98) at com.escribehost.core.client.services.ServiceModule.getApplicationPath(ServiceModule.java:28) at com.escribehost.core.client.services.com_gwtplatform_mvp_client_DesktopGinjector_DesktopGinjectorGinjector_fragmen |
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
int order = 0; | |
for (ConstraintViolation<MedicalProvider> violation : violations) { | |
for (int i = order; i < violations.size(); i++) { | |
// If constraint isn't in the expected order, maybe it's after some not excluded property | |
if (!medicalProvider.getValidationsOrder().get(i).equals(violation.getPropertyPath().toString())) { | |
boolean found = false; | |
for (int j = 0; j <= order; j++) { | |
if (medicalProvider.getValidationsOrder().get(j).equals(violation.getPropertyPath().toString())) { | |
found = true; | |
break; |
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
matun1 | |
81470-ZGHV6-DSZLZ-MR6F3-2D6I8-M8RE7 | |
matun2 | |
65154-YYGDY-PWASE-ZWJH1-GD8AI-3IIF4 | |
matun3 | |
73384-79LBQ-G92L0-DOAG0-KYTWU-C6WP3 | |
matun4 |
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
private double[] getValues() { | |
return new double[]{ 100, 115, 70, 115, 75, 80, 100, 90, 100, 95 }; | |
} | |
@Test | |
public void calculateEstimatedParameters() { | |
double[] values = getValues(); | |
double sum = 0D; | |
for (double value : values) { | |
sum += value; |
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 edu.unlam; | |
import java.util.Comparator; | |
/** | |
* Clase ordenadora padre | |
* | |
* @param <T> - tipo de elementos a ser manipulados | |
*/ | |
public abstract class Ordenadora<T> { |
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 test; | |
import org.junit.Test; | |
import edu.unlam.impl.Burbuja; | |
import edu.unlam.impl.Insersion; | |
import edu.unlam.impl.QuickSort; | |
import edu.unlam.impl.Seleccion; | |
public class OrdenadoraTest { |
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 edu.unlam.impl; | |
import edu.unlam.Ordenadora; | |
public class Burbuja extends Ordenadora { | |
@Override | |
public void sort(Comparable[] elements) { | |
int n = elements.length; | |
for (int i = 0; i < (n - 1); i++) { | |
for (int j = 0; j < n - i - 1; 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
package edu.unlam.impl; | |
import edu.unlam.Ordenadora; | |
public class Seleccion extends Ordenadora { | |
@Override | |
public void sort(Comparable[] elements) { | |
int n = elements.length; | |
for (int i = 0; i < n; i++) { | |
int min = i; |
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 edu.unlam.impl; | |
import edu.unlam.Ordenadora; | |
public class Insersion extends Ordenadora { | |
@Override | |
public void sort(Comparable[] elements) { | |
int n = elements.length; | |
for (int i = 0; i < n; i++) { | |
for (int j = i; j > 0 && elements[j].compareTo(elements[j - 1]) < 0; j--) { |
OlderNewer