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
Act as an expert Prompt Engineer. Your primary reference for this task is the provided book: 'Prompt Engineering' by Lee Boonstra. | |
When I give you a prompt that I want to improve, which we'll call [User_Prompt_To_Improve], your objective is to analyze it and then transform it into an optimized version. This optimized version should be designed to take the biggest advantage of Gemini, based strictly on the principles, techniques, and best practices detailed in this book. | |
Your response should provide two key components: | |
The Optimized Prompt: Present the rewritten, improved version of [User_Prompt_To_Improve]. |
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
**Privacy Policy** | |
This privacy policy applies to the Imoalerta app (hereby referred to as "Application") for mobile devices that was created by Imoalerta (hereby referred to as "Service Provider") as a Free service. This service is intended for use "AS IS". | |
**What information does the Application obtain and how is it used?** | |
The Application does not obtain any information when you download and use it. Registration is not required to use the Application. | |
**Does the Application collect precise real time location information of the device?** |
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
from words import words | |
minionese_to_english = {v: k for k, v in words.items()} | |
def translate(sentence, minionese=False): | |
dictionary = words if not minionese else minionese_to_english | |
result = "" | |
for word in sentence.split(" "): | |
if word in dictionary.keys(): |
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 io.rocel.akka.demo | |
import akka.actor.typed.receptionist.{Receptionist, ServiceKey} | |
import akka.actor.typed.scaladsl.Behaviors | |
import akka.actor.typed.{ActorRef, ActorSystem, Behavior} | |
import akka.util.Timeout | |
import com.typesafe.config.{Config, ConfigFactory} | |
import scala.concurrent.duration.DurationInt |
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
# | |
# Simple query object for combining multiple redash queries | |
# | |
# Example usage: | |
# Find all users who have logged in in the last 8 weeks who have sent an email by analysing the logstash logs | |
# Then group the results by the week they signed up on and their emailed yes/no status | |
# | |
# import requery | |
# userQuery = 'SELECT * FROM user WHERE lastSeen > DATE_SUB(NOW(), INTERVAL 8 WEEK)' | |
# emailQuery = '{ "index" : "logstash-*", "query": { "query_string": { "query": "action:sendEmail" } }, "size" : 1000 } |
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.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 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
//Install Macports. | |
//Install aircrack-ng: | |
sudo port install aircrack-ng | |
//Install the latest Xcode, with the Command Line Tools. | |
//Create the following symlink: | |
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport | |
//Figure out which channel you need to sniff: | |
sudo airport -s | |
sudo airport en1 sniff [CHANNEL] |
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
/** | |
* 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 { |
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
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") |
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.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; |
NewerOlder