This file contains hidden or 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 com.company; | |
| import java.util.HashSet; | |
| import java.util.Set; | |
| import java.util.function.BiConsumer; | |
| import java.util.function.BinaryOperator; | |
| import java.util.function.Function; | |
| import java.util.function.Supplier; | |
| import java.util.stream.Collector; |
This file contains hidden or 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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure("2") do |config| | |
| config.vm.box = "bento/fedora-27" | |
| config.vm.network "forwarded_port", guest: 5432, host: 5432, host_ip: "127.0.0.1" | |
| config.vm.provision "shell", inline: <<-SHELL | |
| dnf install https://download.postgresql.org/pub/repos/yum/9.5/fedora/fedora-27-x86_64/pgdg-fedora95-9.5-5.noarch.rpm --assumeyes |
This file contains hidden or 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
| import java.util.concurrent.TimeUnit.MILLISECONDS | |
| import java.util.concurrent.TimeUnit.NANOSECONDS | |
| interface HasData { | |
| var data: Long | |
| } | |
| class DataImplWithoutPadding : HasData { | |
| @Volatile |
This file contains hidden or 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
| import java.net.InetSocketAddress | |
| import java.nio.ByteBuffer | |
| import java.nio.channels.SelectionKey | |
| import java.nio.channels.Selector | |
| import java.nio.channels.ServerSocketChannel | |
| import java.nio.channels.SocketChannel | |
| import java.util.* | |
| /** | |
| * Represents a server. |
This file contains hidden or 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
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
This file contains hidden or 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
| pg_dump -d database -n public -f /tmp/public.sql | |
| psql -d database -c 'ALTER SCHEMA public RENAME TO new_schema;' | |
| psql -d database -c 'CREATE SCHEMA public;' | |
| psql -d database -f /tmp/public.sql | |
| rm /tmp/public.sql |
This file contains hidden or 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
| public class MyFancyGwtTestSuite extends GWTTestSuite { | |
| /** | |
| * List of all {@link GWTTestCase}s | |
| */ | |
| private final static Set<Class<? extends GWTTestCase>> allGwtTestCases = new HashSet<Class<? extends GWTTestCase>>(); | |
| /** | |
| * Find all {@link GWTTestCase}s in the "<code>com.devbliss.idpool.gwt</code>" package and return | |
| * a suite containing these tests. |