text stringlengths 0 2.87M |
|---|
kind: Service |
metadata: |
name: your-service-name |
spec: |
template: |
spec: |
containers: |
- image: quay.io/emissary/emissary:latest |
name: emissary |
env: |
- name: TARGET_URL |
value: "http://target-service.default.svc.cluster.local" |
autoscaling: |
minScale: 0 |
maxScale: 1 |
class: kpa.autoscaling.knative.dev |
``` |
In this YAML, we are defining a Knative Service called your-service-name, which uses a container image of Emissary. The environment variable TARGET_URL is set to the target URL that Emissary will route traffic to. The autoscaling section specifies a minimum scale of 0 and a maximum scale of 1, meaning that the service ... |
import sqlite3 |
def update_order_status(order_status, order_id): |
# Connect to the database |
conn = sqlite3.connect("database.db") |
cursor = conn.cursor() |
# Update the order status |
cursor.execute("UPDATE orders SET orderStatus = ? WHERE orderID = ?", (order_status, order_id)) |
conn.commit() |
# Close the connection to the database |
cursor.close() |
conn.close() |
# Example usage |
update_order_status("shipped", 1) |
In this example, the function update_order_status takes two parameters: order_status and order_id. The function uses the sqlite3 library to connect to the SQLite database, execute an SQL statement to update the order status, and then commit the changes to the database. Finally, the function closes the connection to the... |
Ingredientes: |
1 ovo |
2 claras de ovo |
1/2 xícara de espinafre picado |
1/4 xícara de pimentão picado |
1/4 xícara de cogumelos fatiados |
1 colher de sopa de azeite ou manteiga |
Sal e pimenta a gosto |
Instruções: |
Em uma tigela, bata o ovo e as claras até ficarem bem misturados. Tempere com sal e pimenta a gosto. |
Em uma frigideira antiaderente em fogo médio, aqueça o azeite ou manteiga. |
Adicione o espinafre, o pimentão e os cogumelos na frigideira e cozinhe por cerca de 2 a 3 minutos, até que fiquem macios. |
Despeje a mistura de ovos sobre os legumes na frigideira e mexa levemente com uma espátula para distribuir uniformemente. |
Cozinhe por cerca de 2-3 minutos ou até que a parte inferior da omelete esteja dourada e a parte superior esteja quase cozida. |
Com cuidado, dobre a omelete ao meio com a ajuda da espátula. Cozinhe por mais 1-2 minutos até que a omelete esteja totalmente cozida. |
Sirva quente e aproveite!<kinrel><user>Create me a workout plan that I can do at home with the only equipment available being dumbbells. I would like each workout to be about an hour long including warm-up and rests in between the sets. It should focus on different muscle groups each day with a three day cycle and a re... |
Day 1: Chest and Triceps |
• Warm-up: 5-10 minutes of light cardio and dynamic stretches. |
• Dumbbell bench press: 3 sets of 10 reps. |
• Dumbbell flyes: 3 sets of 10 reps. |
• Close-grip dumbbell press: 3 sets of 10 reps. |
• Overhead dumbbell extension: 3 sets of 10 reps. |
• Tricep kickbacks: 3 sets of 10 reps. |
• Rest for 1-2 minutes between each set. |
Day 2: Back and Biceps |
• Warm-up: 5-10 minutes of light cardio and dynamic stretches. |
• Dumbbell rows: 3 sets of 10 reps. |
• Single-arm dumbbell rows: 3 sets of 10 reps on each side. |
• Dumbbell pullovers: 3 sets of 10 reps. |
• Alternating dumbbell curls: 3 sets of 10 reps on each arm. |
• Hammer curls: 3 sets of 10 reps. |
• Rest for 1-2 minutes between each set. |
Day 3: Legs and Shoulders |
• Warm-up: 5-10 minutes of light cardio and dynamic stretches. |
• Dumbbell squats: 3 sets of 10 reps. |
• Dumbbell lunges: 3 sets of 10 reps on each leg. |
• Dumbbell step-ups: 3 sets of 10 reps on each leg. |
• Dumbbell shoulder press: 3 sets of 10 reps. |
• Lateral raises: 3 sets of 10 reps. |
• Front raises: 3 sets of 10 reps. |
• Rest for 1-2 minutes between each set. |
Rest Day: Sunday |
During your workouts, be sure to choose a weight that challenges you but allows you to maintain good form. Increase the weight gradually as you get stronger. Also, remember to stretch and cool down after each workout.<kinrel><user>Write me an essay on how Python was created and why it is used so often in the programmin... |
Python was created as a response to the ABC language, which was used to teach programming to beginners, but had limited functionality. Van Rossum aimed to create a language that was easy to read and write, and that could be used for a wide range of tasks. He also wanted to make it fun to use. He named the language Pyth... |
Python's simplicity and versatility quickly made it a popular choice for many different types of projects. Its syntax is simple and straightforward, making it easy for new programmers to pick up and start using right away. Additionally, its large and active community has created many libraries and modules that make it ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.