Skip to content

Instantly share code, notes, and snippets.

@vladignatyev
vladignatyev / say.sh
Created November 10, 2023 10:04
Say AI: Linux's `say` command-line tool for voice over using OpenAI TTS model.
#!/bin/bash
# Function to display help
usage() {
echo "Usage: $0 [-o output_file] [-v voice] [-m model] [-i input_file] \"input_string\""
exit 1
}
# Default values
output_file="speech.mp3"
@vladignatyev
vladignatyev / build.gradle.kts
Created August 5, 2023 15:03
Required dependency to enable Lottie for Jetpack Compose in Android
implementation("com.airbnb.android:lottie-compose:4.0.0")
@vladignatyev
vladignatyev / prompt.txt
Created June 21, 2023 08:46
ChatGPT: Lateral Thinking Helper and PMI Think Robot
You are the PMI Think Robot. Your purpose is to provide good input for thinking about problems being asked by me. I will share you some ideas in free form. Every idea will start from the word IDEA. Then you will help in lateral thinking. You respond in a form of a table that contains three columns: Plus, Minus, Interesting. Let's call this table The PMI Table.
In Plus column of The PMI Table, you tell positive sides about idea that I ask. In Minus column of The PMI Table, you tell negative sides and consequences about idea provided. In Interesting column of The PMI Table you write everything that you find unexpected, clever or basically inspiring in idea provided. Your answer in every column of The PMI Table should be in form of numbered list. You try to do your best and provide every aspect specific for situation provided. If more context required, you'd ask for every clarification needed. After my answer you try again to generate The PMI Table.
Date Open High Low Close Volume
2001-01-03 00:00:00 8.8000000 8.8000000 8.8000000 8.8000000 100
2001-01-04 00:00:00 8.8000000 8.8000000 8.8000000 8.8000000 100
2001-01-05 00:00:00 8.7000000 8.7000000 8.7000000 8.7000000 100
2001-01-10 00:00:00 8.1900000 8.2900000 8.1900000 8.2900000 200
2001-01-12 00:00:00 8.4700000 8.4700000 8.4700000 8.4700000 100
2001-01-15 00:00:00 8.4000000 8.4000000 8.4000000 8.4000000 29400
2001-01-16 00:00:00 8.3000000 8.3000000 8.3000000 8.3000000 29400
2001-01-17 00:00:00 8.3000000 8.4000000 8.3000000 8.4000000 26000
2001-01-18 00:00:00 8.5000000 8.5000000 8.3000000 8.4000000 15700
Date Open High Low Close Volume
2001-01-03 00:00:00 7.9000000 9.0000000 5.5000000 7.6900000 13100
2001-01-04 00:00:00 8.1300000 8.5000000 7.9100000 7.9100000 2900
2001-01-05 00:00:00 8.2000000 9.0000000 8.2000000 9.0000000 8100
2001-01-09 00:00:00 8.5000000 8.5000000 8.0000000 8.3000000 12300
2001-01-10 00:00:00 8.3000000 8.4000000 8.2000000 8.3600000 60000
2001-01-11 00:00:00 8.3000000 8.6500000 8.2300000 8.4000000 42400
2001-01-12 00:00:00 8.7000000 8.7000000 8.3500000 8.3500000 44600
2001-01-15 00:00:00 8.6900000 8.6900000 8.6000000 8.6900000 1400
2001-01-16 00:00:00 8.6500000 8.6900000 8.5000000 8.6500000 39200
Date Open High Low Close Volume
2006-07-19 00:00:00 220.3200000 220.3200000 203.0300000 203.9500000 517741
2006-07-20 00:00:00 204.0000000 205.1000000 203.1500000 203.2600000 1141022
2006-07-21 00:00:00 204.3000000 204.6000000 200.0000000 202.0000000 1864106
2006-07-24 00:00:00 202.0000000 203.2000000 199.2500000 201.9900000 793842
2006-07-25 00:00:00 203.0000000 203.7500000 201.2700000 202.6900000 1674834
2006-07-26 00:00:00 203.0000000 203.2500000 202.0100000 203.1000000 1009200
2006-07-27 00:00:00 203.4500000 203.7500000 202.5000000 203.5000000 2198735
2006-07-28 00:00:00 203.0100000 203.5000000 202.6000000 202.8000000 523210
2006-07-31 00:00:00 204.0000000 204.0000000 202.5500000 202.6000000 174152
Date Open High Low Close Volume
2006-08-18 00:00:00 133.3500000 133.3500000 127.0100000 127.1100000 28292
2006-08-21 00:00:00 132.0000000 132.1300000 125.0100000 130.0000000 237125
2006-08-22 00:00:00 127.7000000 133.0000000 127.7000000 131.5000000 87178
2006-08-23 00:00:00 131.5000000 139.0000000 129.0100000 135.0000000 183815
2006-08-24 00:00:00 134.0100000 139.0000000 133.5000000 137.5000000 107381
2006-08-25 00:00:00 140.0000000 140.0000000 136.0100000 137.0000000 218971
2006-08-28 00:00:00 136.9800000 138.6800000 134.1000000 136.9900000 62630
2006-08-29 00:00:00 136.0000000 137.5000000 133.0000000 135.9900000 102007
2006-08-30 00:00:00 135.9800000 136.0000000 131.0600000 131.9000000 96085
Date Open High Low Close Volume
2003-10-15 00:00:00 129.0000000 129.0000000 127.5500000 127.6000000 51100
2003-10-16 00:00:00 128.4800000 128.4900100 127.5200000 127.5200000 11400
2003-10-17 00:00:00 128.4900100 130.0000000 128.4900100 129.3000000 27200
2003-10-20 00:00:00 128.8500100 131.0000000 126.0000000 126.0000000 19300
2003-10-21 00:00:00 125.5500000 128.0000000 123.0100000 123.0100000 10700
2003-10-22 00:00:00 123.0000000 124.0000000 117.0200000 117.0200000 12300
2003-10-23 00:00:00 121.9900000 122.0000000 117.0000000 117.0000000 13600
2003-10-27 00:00:00 113.0000000 113.0000000 113.0000000 113.0000000 100
2003-10-28 00:00:00 116.0000000 122.0000000 116.0000000 120.0000000 9200
Date Open High Low Close Volume
2006-05-16 00:00:00 810.0000000 810.0000000 730.0000000 730.0000000 600
2006-06-07 00:00:00 638.0000000 641.0000000 633.0000000 636.0000000 2000
2006-06-08 00:00:00 635.2600000 644.0000000 630.1300000 644.0000000 900
2006-06-14 00:00:00 600.0000000 600.0000000 595.0000000 597.0000000 3100
2006-06-15 00:00:00 595.0000000 620.0000000 595.0000000 597.0000000 6500
2006-06-16 00:00:00 540.1300000 545.0000000 540.1300000 545.0000000 800
2006-06-19 00:00:00 560.0000000 561.0000000 555.0000000 555.0000000 1600
2006-06-28 00:00:00 560.0000000 595.0000000 560.0000000 595.0000000 400
2006-06-29 00:00:00 608.0000000 608.0000000 608.0000000 608.0000000 200
Date Open High Low Close Volume
2012-11-28 00:00:00 650.1000000 650.1000000 620.1000000 630.0000000 6290
2012-11-29 00:00:00 630.0000000 639.0000000 609.7000000 630.0000000 9390
2012-11-30 00:00:00 643.0000000 750.0000000 633.0000000 655.0000000 114040
2012-12-03 00:00:00 700.0000000 730.0000000 645.0000000 660.0000000 8890
2012-12-04 00:00:00 669.8000000 689.6000000 655.0000000 655.5000000 18610
2012-12-05 00:00:00 664.9000000 684.9000000 655.7000000 672.0000000 19740
2012-12-06 00:00:00 670.0000000 685.2000000 666.7000000 681.0000000 19290
2012-12-07 00:00:00 700.9000000 730.0000000 677.3000000 679.1000000 30610
2012-12-10 00:00:00 680.0000000 689.0000000 676.0000000 679.7000000 4730