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
create table Calificacion ( | |
id bigint generated by default as identity (start with 1), | |
critica varchar(255), | |
puntaje integer not null, | |
partidoJugado_id bigint, | |
primary key (id) | |
) | |
create table Equipo1 ( | |
Partido_id bigint not 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
observeOnScope $scope, "settings.parsimotionToken" | |
.filter ({newValue}) -> newValue? | |
.map ({newValue}) -> new Producteca newValue | |
.subscribe (producteca) -> | |
$scope.user = producteca.user() | |
$scope.priceLists = producteca.priceLists() | |
$scope.warehouses = producteca.warehouses() |
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 puedeInstanciarseUnaLambdaPorElNombreDeSuClase() throws ClassNotFoundException, IllegalAccessException, InstantiationException { | |
Function<Integer, Integer> lambda = (num) -> num * 2; | |
Object lambda2 = Class.forName(lambda.getClass().getName()).newInstance(); | |
assertEquals(lambda.getClass(), lambda2.getClass()); | |
} |
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
it "puede crear metodos para mensajes faltantes en todos los descendientes" do | |
Salchicha = Class.new(Perro) | |
lassie = Perro.new | |
lassie.ladrar | |
lassie.ladrar | |
Perro.crear_metodos_para_mensajes_faltantes(2) | |
expect(lassie.ladrar).to eq("Soy un Perro y me estan enviando el mensaje ladrar") |
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.unq.pconc; | |
import java.util.Random; | |
import java.util.concurrent.Semaphore; | |
public class Main { | |
public static void main(String[] args) { | |
Semaphore semC = new Semaphore(0); | |
Semaphore semE = new Semaphore(0); | |
Semaphore semR = new Semaphore(0); |
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" encoding="UTF-8"?> | |
<classpath> | |
<classpathentry kind="output" path="bin"/> | |
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER" exported="true"/> | |
</classpath> |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation] | |
"RealTimeIsUniversal"=dword:00000001 |
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/bash | |
# Update all git directories below current directory or specified directory, asking for confirmation | |
function ask_yes_or_no() { | |
read -p "$1 ([y]es or [N]o): " | |
case $(echo $REPLY | tr '[A-Z]' '[a-z]') in | |
y|yes) echo "yes" ;; | |
*) echo "no" ;; | |
esac |
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 ui; | |
import org.uqbar.commons.utils.Observable; | |
import java.util.Arrays; | |
import java.util.List; | |
@Observable | |
public class UnViewModel { | |
private String nombreSeleccionado; |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation] | |
"RealTimeIsUniversal"=dword:00000001 |