ziffir commited on
Commit
2014fab
1 Parent(s): 2be7746

Upload 2 files

Browse files
Files changed (2) hide show
  1. default.html +62 -0
  2. find-prompt +3 -0
default.html ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="{{ page.lang | default: site.lang | default: "en-US" }}">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1">
7
+
8
+ {% seo %}
9
+ <link rel="stylesheet" href="{{ "/assets/css/style.css?v=" | append: site.github.build_revision | relative_url }}">
10
+ {% include head-custom.html %}
11
+ <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6945602608405209" crossorigin="anonymous"></script>
12
+ </head>
13
+ <body>
14
+ <div class="container-lg px-3 my-5 markdown-body">
15
+ {% if site.title and site.title != page.title %}
16
+ <h1><a href="{{ "/" | absolute_url }}">{{ site.title }}</a></h1>
17
+ {% endif %}
18
+
19
+ {{ content }}
20
+
21
+ {% if site.github.private != true and site.github.license %}
22
+ <div class="footer border-top border-gray-light mt-5 pt-3 text-right text-gray">
23
+ Awesome ChatGPT Prompts is open source. {% github_edit_link "Improve this page" %}.
24
+ </div>
25
+ {% endif %}
26
+ </div>
27
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.1.0/anchor.min.js" integrity="sha256-lZaRhKri35AyJSypXXs4o6OPFTbTmUoltBbDCbdzegg=" crossorigin="anonymous"></script>
28
+ <script>anchors.add();</script>
29
+ <script>
30
+ document.querySelectorAll("h2[id^=act] + p + blockquote").forEach((x) => {
31
+ x.setAttribute('contentEditable', true);
32
+ const button = document.createElement('button');
33
+ button.style.border = '0';
34
+ button.style.borderRadius = '3px';
35
+ button.style.fontSize = '1rem';
36
+ button.style.marginRight = '0.5rem';
37
+ button.style.padding = '0';
38
+ button.style.backgroundColor = 'transparent';
39
+ button.innerHTML = '✂️';
40
+ button.addEventListener('click', async () => {
41
+ if (navigator.clipboard) {
42
+ await navigator.clipboard.writeText(x.innerText);
43
+ alert('Prompt is copied, now paste this into ChatGPT.');
44
+ } else {
45
+ alert('Your browser does not support clipboard copy. Please select the prompt and copy.')
46
+ }
47
+ }, false);
48
+ x.previousElementSibling.previousElementSibling.prepend(button);
49
+ });
50
+ </script>
51
+ <style>video { max-width: 100% !important; }</style>
52
+ <!-- Google tag (gtag.js) -->
53
+ <script async src="https://www.googletagmanager.com/gtag/js?id=G-MSNHFWTE77"></script>
54
+ <script>
55
+ window.dataLayer = window.dataLayer || [];
56
+ function gtag(){dataLayer.push(arguments);}
57
+ gtag('js', new Date());
58
+
59
+ gtag('config', 'G-MSNHFWTE77');
60
+ </script>
61
+ </body>
62
+ </html>
find-prompt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ #!/usr/bin/env bash
2
+
3
+ curl -s https://raw.githubusercontent.com/f/awesome-chatgpt-prompts/main/prompts.csv | tail +2 | ruby -rcsv -e 'CSV.parse(STDIN.read) {|row| puts row.join("\t")}' | fzf -1 -q "$1" --with-nth 1 --delimiter "\t" --preview 'echo {2} | fold -s -w $(tput cols)' | cut -d" " -f2