Skip to content

Instantly share code, notes, and snippets.

View masterdany88's full-sized avatar

Daniel Korbel masterdany88

View GitHub Profile
package com.ig.base.App.client.ui.application.content.update;
import com.github.nalukit.nalu.client.component.AbstractComponent;
import com.ig.base.App.client.widget.AppButton;
import com.ig.base.App.client.widget.AppDialog;
import com.ig.base.App.client.widget.UiLocker;
import com.ig.base.App.shared.update.UpdaterRestResource;
import com.ig.base.App.shared.update.UpdaterStatusDto;
import elemental2.dom.*;
import org.dominokit.domino.ui.Typography.Paragraph;
@masterdany88
masterdany88 / PasswordUpdateDto.java
Last active May 21, 2020 20:40
gwt View with editor and validator
public class PasswordUpdateDto {
private String currentPassword;
private String newPassword;
private String repeatedNewPassword;
public String getCurrentPassword() {
return currentPassword;
}
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.q.q</groupId>
<artifactId>QBAP</artifactId>
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import java.util.Collection;
@Path("users")
@Produces(MediaType.APPLICATION_JSON)
public interface UsersResource {
@GET Collection<UserDto> getAll();
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project QBAP-client: Fatal error compiling: java.lang.IllegalStateException: !foundGetterForPart -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project QBAP-client: Fatal error compiling
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreaded
public interface UserModel {
Long getId();
String getFirstName();
String getLastName();
String getEmail();
int getAge();
String getPhone();
boolean isActive();
}
✘ daniel@daniel-core  ~/tutorials/clean_architecture_tutorial   master ●  ./gradlew clean compileGwt --info
Initialized native services in: /home/daniel/.gradle/native
The client will now receive all logging from the daemon (pid: 29718). The daemon log file: /home/daniel/.gradle/daemon/6.1.1/daemon-29718.out.log
Starting 7th build in daemon [uptime: 8 mins 27.043 secs, performance: 99%, non-heap usage: 27% of 268.4 MB]
Using 8 worker leases.
Starting Build
Settings evaluated using settings file '/home/daniel/tutorials/clean_architecture_tutorial/settings.gradle'.
Projects loaded. Root project using build file '/home/daniel/tutorials/clean_architecture_tutorial/build.gradle'.
Included projects: [root project 'root', project ':api', project ':client', project ':server']
Length Date Time Name
--------- ---------- ----- ----
98 2020-02-04 09:49 META-INF/MANIFEST.MF
0 2020-02-04 09:49 META-INF/
0 2018-11-21 15:25 org/
0 2018-11-21 15:25 org/gwtproject/
0 2018-11-21 15:25 org/gwtproject/editor/
0 2020-02-04 09:49 org/gwtproject/editor/client/
0 2020-02-04 09:49 org/gwtproject/editor/client/impl/
0 2020-02-04 09:49 org/gwtproject/editor/client/annotation/
> Task :client:dependencies
------------------------------------------------------------
Project :client
------------------------------------------------------------
annotationProcessor - Annotation processors and their dependencies for source set 'main'.
+--- com.github.nalukit:nalu-processor:2.0.1-SNAPSHOT
| +--- com.github.nalukit:nalu:2.0.1-SNAPSHOT
@masterdany88
masterdany88 / update_git_repos.sh
Created January 16, 2019 06:26 — forked from douglas/update_git_repos.sh
Update all git repositories under a base directory
#!/bin/bash
# store the current dir
CUR_DIR=$(pwd)
# Let the person running the script know what's going on.
echo "\n\033[1mPulling in latest changes for all repositories...\033[0m\n"
# Find all git repositories and update it to the master latest revision
for i in $(find . -name ".git" | cut -c 3-); do