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
# pdf File downloader for TI Links | |
from bs4 import BeautifulSoup | |
import requests | |
import urllib3 | |
import re | |
import os | |
DOWNLOAD_FOLDER = os.path.join("D:",os.sep,"electronics","TI_pdfs") | |
os.mkdir(DOWNLOAD_FOLDER) |
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 os | |
from flask import Flask, Response, request, jsonify, redirect, send_from_directory | |
from flask_restful import Api, Resource | |
from werkzeug.utils import secure_filename | |
class file_operation: | |
def __init__(self): | |
self.APP_ROOT = os.path.dirname(os.path.abspath(__file__)) | |
self.UPLOAD_FOLDER = os.path.join(self.APP_ROOT, 'upload_folder_logreg') | |
self.ALLOWED_EXTENSIONS = set(['txt', 'csv']) |
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 os | |
path = "C:/Users/username/path/to/your/folder" | |
file_list = os.listdir(path) | |
file_list_no_extension = [os.path.splitext(x)[0] for x in file_list] | |
for i,j in zip(file_list,file_list_no_extension): | |
command_list = [] | |
command1 = "openssl x509 -inform der -in " | |
command2 = " -out " | |
command3 = ".pem" | |
command_list.append(command1) |
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> | |
#include <stdlib.h> | |
#include "doublyLinkedList.h" | |
Node* createnode(){ | |
Node* node = malloc(sizeof(*node)); | |
return node; | |
} | |
void addNode(Node** head, int info){ |
NewerOlder