This file contains 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
import openai | |
import threading | |
import re | |
import os | |
from datetime import datetime | |
from dotenv import load_dotenv | |
# Configure your OpenAI API key | |
load_dotenv() | |
openai.api_key = os.environ.get('API_KEY') |
This file contains 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
#Path to chrome bookmarks | |
$pathToJsonFile = "$env:localappdata\BraveSoftware\Brave-Browser\User Data\Default\Bookmarks" | |
$htmlOut = 'C:\temp\BraveBookmarks.html' | |
$htmlHeader = @' | |
<!DOCTYPE NETSCAPE-Bookmark-file-1> | |
<!--This is an automatically generated file. | |
It will be read and overwritten. | |
Do Not Edit! --> | |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> |
This file contains 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
#!/usr/bin/python | |
from datetime import datetime | |
from influxdb import InfluxDBClient | |
def func_log(unit, kind, value): | |
client = InfluxDBClient(host='127.0.0.1', port=8086) | |
client.create_database('DBname') | |
client.switch_database('DBname') | |
json_body = [ | |
{ |
This file contains 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
#include <stdio.h> | |
#define MAX_SIZE 100 | |
void push ( int a[ ], int *top , int x); | |
int pop ( int a[ ], int *top); | |
void print ( int a[ ], int top ); | |
int exit( ); | |
int initialise( ); | |
///////////////////////////////////////// |
This file contains 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
#include <stdio.h> | |
void main() | |
{ | |
int a[10], i, j, k; | |
for (i=0; i<=9; i++) | |
{ | |
a[i]; | |
} |