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
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.Iterator; | |
import java.util.List; | |
public class ListSurprise { | |
public static void mаin(String[] args) { | |
System.setSecurityManager(new SecurityManager()); | |
List<Integer> numbers = new ArrayList<>(); | |
Collections.addAll(numbers, 3, 1, 4, 1, 5, 5, 9); |
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
import java.io.ByteArrayOutputStream; | |
import java.io.PrintStream; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.Modifier; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.Iterator; | |
import java.util.List; | |
import sun.misc.Unsafe; |
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
/* | |
* Copyright (c) 2009-2015, Data Geekery GmbH (http://www.datageekery.com) | |
* All rights reserved. | |
* | |
* This work is dual-licensed | |
* - under the Apache Software License 2.0 (the "ASL") | |
* - under the jOOQ License and Maintenance Agreement (the "jOOQ License") | |
* ============================================================================= | |
* You may choose which license applies to you: | |
* |
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
import static java.lang.System.exit; | |
import static java.lang.System.out; | |
public class Dafuq { | |
/** | |
* This does not do what you think it does. | |
* <p> | |
* You think code is documentation? No! Documentation is code! | |
\u002a\u002f |
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
import static java.lang.System.*; | |
public class Dafuq { | |
public static void main(String[] args) { | |
/* | |
\u002a\u002f | |
\u006f\u0075\u0074\u002e\u0070\u0072\u0069\u006e\u0074\u006c\u006e\u0028\u0022\u004e\u006f\u0022\u0029\u003b | |
\u000d\u000a\u0065\u0078\u0069\u0074\u0028\u0030\u0029\u003b | |
\u002f\u002a |
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
-- Copyright Data Geekery GmbH | |
-- | |
-- Licensed under the Apache License, Version 2.0 (the "License"); | |
-- you may not use this file except in compliance with the License. | |
-- You may obtain a copy of the License at | |
-- | |
-- http://www.apache.org/licenses/LICENSE-2.0 | |
-- | |
-- Unless required by applicable law or agreed to in writing, software | |
-- distributed under the License is distributed on an "AS IS" BASIS, |
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
-- Copyright Data Geekery GmbH | |
-- | |
-- Licensed under the Apache License, Version 2.0 (the "License"); | |
-- you may not use this file except in compliance with the License. | |
-- You may obtain a copy of the License at | |
-- | |
-- http://www.apache.org/licenses/LICENSE-2.0 | |
-- | |
-- Unless required by applicable law or agreed to in writing, software | |
-- distributed under the License is distributed on an "AS IS" BASIS, |
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
-- Copyright Data Geekery GmbH | |
-- | |
-- Licensed under the Apache License, Version 2.0 (the "License"); | |
-- you may not use this file except in compliance with the License. | |
-- You may obtain a copy of the License at | |
-- | |
-- http://www.apache.org/licenses/LICENSE-2.0 | |
-- | |
-- Unless required by applicable law or agreed to in writing, software | |
-- distributed under the License is distributed on an "AS IS" BASIS, |
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
sealed trait Q {} | |
trait QField[T] extends Q {} | |
trait QTable extends Q {} | |
trait QSchema extends Q {} | |
trait QCondition extends Q {} | |
trait QName extends Q {} | |
trait QQuery extends Q {} | |
final case class CVal[T](value: T) extends QField[T] | |
final case class CIdent(name: String) extends QName |
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
/* | |
* This work is dual-licensed | |
* - under the Apache Software License 2.0 (the "ASL") | |
* - under the jOOQ License and Maintenance Agreement (the "jOOQ License") | |
* ============================================================================= | |
* You may choose which license applies to you: | |
* | |
* - If you're using this work with Open Source databases, you may choose | |
* either ASL or jOOQ License. | |
* - If you're using this work with at least one commercial database, you must |