Skip to content

Instantly share code, notes, and snippets.

View acmi's full-sized avatar

Aleksei Sazonov acmi

View GitHub Profile
@acmi
acmi / gist:e2ebae96dd3cf9d883b6
Created August 11, 2014 13:04
JAXBValidator
import classes.Products;
import javax.xml.XMLConstants;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.util.JAXBSource;
import javax.xml.transform.Source;
import javax.xml.validation.Schema;
import javax.xml.validation.SchemaFactory;
import javax.xml.validation.Validator;
import java.io.File;
@acmi
acmi / msg.css
Created May 27, 2013 14:18
vk view
.msg-low{
-fx-background-color: aquamarine;
}
.msg-mid{
-fx-background-color: gold;
}
.msg-high{
-fx-background-color: indianred;
}
@acmi
acmi / WallTest.groovy
Last active December 17, 2015 16:59
Wall example
import com.vk.api.other.OtherCommon
import com.vk.api.wall.Post
import com.vk.api.wall.WallCommon
import com.vk.worker.impl.VKWorkerGroup
class WallTest {
static main(args) {
def tokens = [
'TOKEN1',
'TOKEN2'