$ demo on|off [hhmm]
Enable or disable the demo mode on a connected Android device or emulator. You can also pass in a custom value for the system clock in the HHMM format (only used when you use the on command).
| <?xml version="1.0" encoding="utf-8"?> | |
| <!-- | |
| Copyright 2016 Google Inc. | |
| 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 |
$ demo on|off [hhmm]
Enable or disable the demo mode on a connected Android device or emulator. You can also pass in a custom value for the system clock in the HHMM format (only used when you use the on command).
| package com.example.hello.api | |
| import akka.NotUsed | |
| import com.example.hello.api.SlackCustomIntegration.Message | |
| import com.lightbend.lagom.scaladsl.api.{Descriptor, Service, ServiceCall} | |
| import com.lightbend.lagom.scaladsl.api.Service._ | |
| import com.lightbend.lagom.scaladsl.api.transport.Method | |
| import play.api.libs.json._ | |
| import play.api.libs.functional.syntax._ |
| /** | |
| * This is an example of a one-way or "messaging span", which is possible by use of the {@link | |
| * Span#flush()} operator. | |
| * | |
| * <p>Note that this uses a span as a kafka key, not because it is recommended, rather as it is | |
| * convenient for demonstration, since kafka doesn't have message properties. | |
| * | |
| * <p>See https://github.com/openzipkin/zipkin/issues/1243 | |
| */ | |
| public class KafkaExampleIT { |
| /** | |
| * Generate Case class from DataFrame.schema | |
| * | |
| * val df:DataFrame = ... | |
| * | |
| * val s2cc = new Schema2CaseClass | |
| * import s2cc.implicit._ | |
| * | |
| * println(s2cc.schemaToCaseClass(df.schema, "MyClass")) | |
| * |
| /* | |
| * Copyright 2017 Google Inc. | |
| * | |
| * 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 |
| package com.gabrielfv.android.engine; | |
| import android.app.Service; | |
| import android.content.Intent; | |
| import android.os.Handler; | |
| import android.os.HandlerThread; | |
| import android.os.IBinder; | |
| import android.os.Looper; | |
| import android.os.Message; | |
| import android.os.PowerManager; |
| class Toto | |
| { | |
| public void Main() | |
| { | |
| final DataFrame source = GetDataFrame(); | |
| final String querySelectSQL = flattenSchema(source.schema(), null); | |
| source.registerTempTable("source"); | |
| final DataFrame flattenData = sqlContext.sql("SELECT " + querySelectSQL + " FROM source") |
| import com.google.api.client.extensions.java6.auth.oauth2.AuthorizationCodeInstalledApp; | |
| import com.google.api.client.extensions.jetty.auth.oauth2.LocalServerReceiver; | |
| import com.google.api.client.auth.oauth2.Credential; | |
| import com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeFlow; | |
| import com.google.api.client.googleapis.auth.oauth2.GoogleClientSecrets; | |
| import com.google.api.client.googleapis.javanet.GoogleNetHttpTransport; | |
| import com.google.api.client.http.HttpTransport; | |
| import com.google.api.client.json.JsonFactory; | |
| import com.google.api.client.json.jackson2.JacksonFactory; | |
| import com.google.api.client.util.store.DataStoreFactory; |
| #!/bin/bash | |
| if [ -z "$1" ] | |
| then | |
| echo "Missing first argument, zookeeper host port like: my-zookeeper-hostname:2181" | |
| echo "Usage Example: ./topic-last-messages.sh my-zookeeper-hostname:2181 MY_TOPIC_NAME 10 America/Chicago" | |
| exit 1 | |
| fi | |
| if [ -z "$2" ] |