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
$re = qr/ | |
. # single letter is a palindrome | |
| | |
(.) # first letter | |
(??{ $re })?? # apply recursivly (not interpolated yet) | |
\1 # last letter | |
/x; |
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
sudo aptitude install python-pip | |
sudo pip install virtualenv | |
sudo pip install virtualenvwrapper |
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
$ curl -v "http://a.jumptap.com/a/ads?l=en&pub=INVALID&site=pa_okcupid2_okcupid_mob_web&spot=pa_okcupid2_okcupid_mob_web_adspot&v=v30" | |
* About to connect() to a.jumptap.com port 80 (#0) | |
* Trying 209.94.144.164... connected | |
* Connected to a.jumptap.com (209.94.144.164) port 80 (#0) | |
> GET /a/ads?l=en&pub=INVALID&site=pa_okcupid2_okcupid_mob_web&spot=pa_okcupid2_okcupid_mob_web_adspot&v=v30 HTTP/1.1 | |
> User-Agent: curl/7.21.0 (x86_64-pc-linux-gnu) libcurl/7.21.0 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.15 libssh2/1.2.6 | |
> Host: a.jumptap.com | |
> Accept: */* | |
> |
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
""" | |
Toy demonstration of chain-of-thought and consensus prompting using OpenAI API. | |
© Riley Goodside 2022 | |
""" | |
import os | |
import re | |
from statistics import mode |
OlderNewer