<html>
<body>
<div id="app"></div>
<script src="https://unpkg.com/react@18/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<script type="text/jsx">
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
| img { | |
| display: block; | |
| max-width: 100% | |
| } | |
| header { | |
| min-height: 300px; // allowed to grow // 80vh | |
| } |
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
| from openai import OpenAI | |
| client = OpenAI( | |
| base_url = 'http://localhost:11434/v1', | |
| api_key='ollama', # required, but unused | |
| ) | |
| response = client.chat.completions.create( | |
| model="llama2", | |
| messages=[ |
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
| const express = require('express'); | |
| const path = require('path'); | |
| const app = express(); | |
| // Serve static files from the root directory | |
| app.use(express.static(__dirname)); | |
| // Serve the index.html file | |
| app.get('/', (req, res) => { | |
| res.sendFile(path.join(__dirname, 'index.html')); |
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
| |โโ Getting Started | |
| | โโโ Installation | |
| | โโโ Project Structure | |
| | โโโ Basic Routing | |
| | | |
| |โโ Routing | |
| | โโโ Client-Side Routing | |
| | โโโ Server-Side Routing | |
| | โโโ Dynamic Routing | |
| | โโโ Internationalized Routing |
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
| Linux commands - commonly used | |
| ๐๐ฎ๐๐ถ๐ฐ๐: | |
| `man` - Skim through manual for better understanding. | |
| `nano` / `vim` - Use nano for basic editing, vim for advanced editing. | |
| `ls -l` - List files with detailed info. | |
| `ssh` - Connect to remote machines securely. | |
| `df` / `du -hs *` - Check disk space usage. | |
| `chown` / `chmod` - Change ownership and permissions of files. | |
| `dig` - DNS lookup to find IPs of hostnames. | |
| ๐๐๐ฒ๐ฟ๐๐ฑ๐ฎ๐ ๐จ๐๐ฒ: |
200 Success - Request completed.
201 Success - New resource created.
202 Success - The request has been accepted, but not yet processed.
204 Success - No content to return.
400 Bad Request - The request could not be parsed, generally due to bad syntax.
NewerOlder