Skip to content

Commit 420bac2

Browse files
.
1 parent 6b4fcff commit 420bac2

File tree

14 files changed

+561
-2
lines changed

14 files changed

+561
-2
lines changed

.editorconfig

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
max_line_length = 140
7+
indent_size = 2
8+
indent_style = space
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[*.md]
13+
max_line_length = off
14+
trim_trailing_whitespace = false

.gitattributes

+182
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,182 @@
1+
# https://html5boilerplate.com
2+
3+
## AUTO-DETECT
4+
* text=auto
5+
6+
## SOURCE CODE
7+
*.bat text eol=crlf
8+
*.coffee text
9+
*.css text
10+
*.htm text
11+
*.html text
12+
*.inc text
13+
*.ini text
14+
*.js text
15+
*.json text
16+
*.jsx text
17+
*.less text
18+
*.od text
19+
*.onlydata text
20+
*.php text
21+
*.pl text
22+
*.py text
23+
*.rb text
24+
*.sass text
25+
*.scm text
26+
*.scss text
27+
*.sh text eol=lf
28+
*.sql text
29+
*.styl text
30+
*.tag text
31+
*.ts text
32+
*.tsx text
33+
*.xml text
34+
*.xhtml text
35+
36+
## DOCKER
37+
*.dockerignore text
38+
Dockerfile text
39+
40+
## DOCUMENTATION
41+
*.markdown text
42+
*.md text
43+
*.mdwn text
44+
*.mdown text
45+
*.mkd text
46+
*.mkdn text
47+
*.mdtxt text
48+
*.mdtext text
49+
*.txt text
50+
AUTHORS text
51+
CHANGELOG text
52+
CHANGES text
53+
CONTRIBUTING text
54+
COPYING text
55+
copyright text
56+
*COPYRIGHT* text
57+
INSTALL text
58+
license text
59+
LICENSE text
60+
NEWS text
61+
readme text
62+
*README* text
63+
TODO text
64+
65+
## TEMPLATES
66+
*.dot text
67+
*.ejs text
68+
*.haml text
69+
*.handlebars text
70+
*.hbs text
71+
*.hbt text
72+
*.jade text
73+
*.latte text
74+
*.mustache text
75+
*.njk text
76+
*.phtml text
77+
*.tmpl text
78+
*.tpl text
79+
*.twig text
80+
81+
## LINTERS
82+
.babelrc text
83+
.csslintrc text
84+
.eslintrc text
85+
.htmlhintrc text
86+
.jscsrc text
87+
.jshintrc text
88+
.jshintignore text
89+
.prettierrc text
90+
.stylelintrc text
91+
92+
## CONFIGS
93+
*.bowerrc text
94+
*.cnf text
95+
*.conf text
96+
*.config text
97+
.browserslistrc text
98+
.editorconfig text
99+
.gitattributes text
100+
.gitconfig text
101+
.gitignore text
102+
.htaccess text
103+
*.npmignore text
104+
*.yaml text
105+
*.yml text
106+
browserslist text
107+
Makefile text
108+
makefile text
109+
110+
## HEROKU
111+
Procfile text
112+
.slugignore text
113+
114+
## GRAPHICS
115+
*.ai binary
116+
*.bmp binary
117+
*.eps binary
118+
*.gif binary
119+
*.ico binary
120+
*.jng binary
121+
*.jp2 binary
122+
*.jpg binary
123+
*.jpeg binary
124+
*.jpx binary
125+
*.jxr binary
126+
*.pdf binary
127+
*.png binary
128+
*.psb binary
129+
*.psd binary
130+
*.svg text
131+
*.svgz binary
132+
*.tif binary
133+
*.tiff binary
134+
*.wbmp binary
135+
*.webp binary
136+
137+
## AUDIO
138+
*.kar binary
139+
*.m4a binary
140+
*.mid binary
141+
*.midi binary
142+
*.mp3 binary
143+
*.ogg binary
144+
*.ra binary
145+
146+
## VIDEO
147+
*.3gpp binary
148+
*.3gp binary
149+
*.as binary
150+
*.asf binary
151+
*.asx binary
152+
*.fla binary
153+
*.flv binary
154+
*.m4v binary
155+
*.mng binary
156+
*.mov binary
157+
*.mp4 binary
158+
*.mpeg binary
159+
*.mpg binary
160+
*.ogv binary
161+
*.swc binary
162+
*.swf binary
163+
*.webm binary
164+
165+
## ARCHIVES
166+
*.7z binary
167+
*.gz binary
168+
*.jar binary
169+
*.rar binary
170+
*.tar binary
171+
*.zip binary
172+
173+
## FONTS
174+
*.ttf binary
175+
*.eot binary
176+
*.otf binary
177+
*.woff binary
178+
*.woff2 binary
179+
180+
## EXECUTABLES
181+
*.exe binary
182+
*.pyc binary

.gitignore

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Compiled output
2+
/build
3+
/dist
4+
/documentation
5+
/out-tsc
6+
/tmp
7+
8+
# Composer
9+
./vendor
10+
composer.lock
11+
12+
# Dependencies
13+
/node_modules
14+
package-lock.json
15+
16+
# Environment
17+
.env
18+
19+
# IDEs + Editors
20+
*.launch
21+
*.sublime-workspace
22+
/.idea
23+
.c9
24+
.classpath
25+
.history
26+
.project
27+
.settings
28+
29+
# IDE - VSCode
30+
.vscode/*
31+
!.vscode/extensions.json
32+
!.vscode/launch.json
33+
!.vscode/settings.json
34+
!.vscode/tasks.json
35+
36+
# Misc
37+
/.sass-cache
38+
/connect.lock
39+
/coverage
40+
/libpeerconnection.log
41+
/typings
42+
npm-debug.log
43+
php_errorlog
44+
testem.log
45+
yarn-error.log
46+
47+
# System files
48+
*/*.lnk
49+
*desktop.ini
50+
.DS_Store
51+
Thumbs.db

.vscode/extensions.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"editorconfig.editorconfig"
4+
]
5+
}

.vscode/settings.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"editor.formatOnPaste": false,
3+
"editor.formatOnSave": true,
4+
"editor.formatOnType": false,
5+
"editor.detectIndentation": false,
6+
"editor.insertSpaces": false,
7+
"editor.useTabStops": false,
8+
"files.trimFinalNewlines": true,
9+
"files.trimTrailingWhitespace": true,
10+
"[markdown]": {
11+
"editor.acceptSuggestionOnEnter": "off"
12+
}
13+
}

3rd-party/info.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Info
2+
3+
Fully foreign sources without own contributions.
4+
5+
Used merely to document what I've worked with and to look up things faster.

3rd-party/openai-api/run.py

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
##
2+
#
3+
#
4+
#
5+
# Source origin
6+
# - DeepLearning.ai / OpenAI course: https://www.deeplearning.ai/short-courses/chatgpt-prompt-engineering-for-developers
7+
##
8+
9+
import openai
10+
import os
11+
from dotenv import load_dotenv, find_dotenv
12+
13+
_ = load_dotenv(find_dotenv())
14+
openai.api_key = os.getenv('OPENAI_API_KEY')
15+
16+
def get_completion(user_prompt, model="gpt-3.5-turbo"):
17+
messages = [{"role": "user", "content": user_prompt}]
18+
ai_response = openai.ChatCompletion.create(
19+
model=model,
20+
messages=messages,
21+
temperature=0,
22+
)
23+
return ai_response.choices[0].message["content"]
24+
25+
prompt = "Name five reasons to become a developer"
26+
result = get_completion(prompt)
27+
28+
print(result)

3rd-party/openai-api/setup.bash

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Create in OpenAI platform admin panel.
2+
# - If using in unsafe environments, make sure to delete the key after use!
3+
%env OPENAI_API_KEY=***
4+
5+
# Might have to be run for every session
6+
!pip install openai python-dotenv

README.md

+25-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,25 @@
1-
# python-Notebooks
2-
ML + AI experiments with python, intended for Jupyter Notebooks (e.g. via Google Colab). Central source of personal language knowledge.
1+
# python Notebooks
2+
3+
- [About](#about)
4+
- [Use](#use)
5+
- [Disclaimer](#disclaimer)
6+
7+
---
8+
9+
## About
10+
11+
Showcased uses of python for AI/ML purposes.
12+
13+
Personal use to document language and API feature learning, as well as early projects.
14+
15+
## Use
16+
17+
Run in own python environments or Jupyter Notebooks (like Google Colab).
18+
19+
## Disclaimer
20+
21+
This is a private repository made public, to demonstrate an interest in new technologies and potential future skillset developing.
22+
23+
> As of 2023-05, the presented stack is not part of my core skills. To speed up early learning and development processes, the presented code has been derived from courses, co-created with video tutorials or with the help of AI (LLM).
24+
25+
I assume the presented content is not the best source or best practice in this field. However, others might find this interesting as well.

projects/info.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Info
2+
3+
Sources with own contributions.
4+
5+
Feature explorations, experiments, technical demos.

0 commit comments

Comments
 (0)