Bootstrap responsive login page
A Pen by yangjaewon on CodePen.
| import os | |
| import requests | |
| from bs4 import BeautifulSoup | |
| import openai | |
| # OpenAI API key (replace with your actual API key) | |
| openai.api_key = 'API_KEY_HERE' | |
| # URL of the NDTV Health page | |
| url = 'https://www.ndtv.com/health' |
| import json | |
| import streamlit as st | |
| from openai import OpenAI | |
| # client = OpenAI( | |
| # # This is the default and can be omitted | |
| # api_key=os.environ["OPENAI_API_KEY"], | |
| # ) |
| import os | |
| import json | |
| import base64 | |
| import sqlite3 | |
| import shutil | |
| from datetime import timezone, datetime, timedelta | |
| #3rd party modules | |
| import win32crypt | |
| from Crypto.Cipher import AES |
Bootstrap responsive login page
A Pen by yangjaewon on CodePen.
| const student = { | |
| name: "Insha", | |
| age: 20 | |
| } | |
| let key = "name" | |
| console.log(student[key]) // prints out Insha | |
| function convertToBinary(text) { | |
| var result = ''; | |
| for (var i = 0; i < text.length; i++) { | |
| var char = text[i]; | |
| var code = char.charCodeAt(0); | |
| result += code.toString(2) + ' '; | |
| } | |
| return result; | |
| } |
| function convert_char_to_binary(char){ | |
| const code = char.charCodeAt(0); // convert the char to ASCII (UTF-16) | |
| return code.toString(2); // convert ASCII integer to binary | |
| } | |
| const binary = convert_char_to_binary("a") | |
| console.log(binary) // logs '1100001' |
| // Sample express app | |
| const express = require('express') | |
| const app = express() | |
| const port = 3000 | |
| app.get('/', (req, res) => { | |
| res.send('Hello World!') | |
| }) |