Skip to content

Instantly share code, notes, and snippets.

View vzhukovs's full-sized avatar

Vladyslav Zhukovskyi vzhukovs

View GitHub Profile
@vzhukovs
vzhukovs / semantic-commit-messages.md
Created December 6, 2022 13:56 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@vzhukovs
vzhukovs / gist:030bc6d7366b6b5b6ab2027074e0b425
Created October 12, 2017 09:36 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@vzhukovs
vzhukovs / ElementoFileDndUploadExample.java
Created July 24, 2017 12:06 — forked from ibaca/ElementoFileDndUploadExample.java
GWT Elemento file drop onto a browser div and then upload the file example.
package dnd;
import static elemental2.dom.DomGlobal.document;
import static org.jboss.gwt.elemento.core.EventType.dragend;
import static org.jboss.gwt.elemento.core.EventType.dragover;
import static org.jboss.gwt.elemento.core.EventType.drop;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import elemental2.dom.DataTransfer;
@vzhukovs
vzhukovs / ElementalFileDndExample.java
Created July 24, 2017 12:02 — forked from branflake2267/ElementalFileDndExample.java
GWT 2.8.1 Elemental 2 file drop onto a browser div and then upload the file example. Example of DomGlobal, Element, DragEvent, File/Blob upload.
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import elemental2.dom.DataTransfer;
import elemental2.dom.DomGlobal;
import elemental2.dom.DragEvent;
import elemental2.dom.Element;
import elemental2.dom.Event;
import elemental2.dom.EventListener;
import elemental2.dom.File;
@vzhukovs
vzhukovs / FileReaderExample.java
Created January 11, 2017 13:17 — forked from branflake2267/FileReaderExample.java
Using the GWT Elemental FileReader to read files on the client side. (GXT 4.x, 4.0.2, GWT 2.8.0-SNAPSHOT >=RC3)
package com.sencha.gxt.test.client.html5_filereader;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ChangeEvent;
import com.google.gwt.event.dom.client.ChangeHandler;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.RootPanel;
import com.sencha.gxt.core.client.dom.XElement;
import com.sencha.gxt.widget.core.client.form.FileUploadField;