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
object L { | |
def main(args: Array[String]): Unit = { | |
val oneToTenList = (1 to 10).toList | |
val oneList = List(1) | |
assert("none" == checker(11)(oneToTenList)) | |
assert("end of 10" == checker(10)(oneToTenList)) | |
assert("contains 9" == checker(9)(oneToTenList)) | |
assert("start with 1" == checker(1)(oneToTenList)) |
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
#!/bin/bash | |
set -o errexit -o nounset -o pipefail | |
export LC_ALL=en_US.UTF-8 | |
export HADOOP_HOME=/oneapm/local/hadoop-2.7.1/ | |
MESOS_HOME=$(dirname $0)/.. | |
LOG_DIR=/oneapm/log/mesos/console | |
CONFIG_FOLDER=/oneapm/etc/mesos | |
mkdir -p /oneapm/log/mesos/console |
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
#include <iostream> | |
#include <Parsers/ParserQueryWithOutput.h> | |
#include <Parsers/parseQuery.h> | |
#include <Parsers/formatAST.h> | |
#include <Parsers/ASTCreateQuery.h> | |
#include <Parsers/ASTSelectQuery.h> | |
#include <Parsers/ParserQuery.h> | |
#include <Parsers/ParserCreateQuery.h> | |
#include <Parsers/ASTTablesInSelectQuery.h> |
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.*; | |
import java.util.*; | |
import sun.jvm.hotspot.memory.*; | |
import sun.jvm.hotspot.oops.*; | |
import sun.jvm.hotspot.debugger.*; | |
import sun.jvm.hotspot.runtime.*; | |
import sun.jvm.hotspot.tools.*; | |
public class DumpClassURL extends Tool { | |
public void run() { |