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
| def to_encrypt(text, delta): | |
| alphabet = "abcdefghijklmnopqrstuvwxyz" | |
| encrypted_text = "" | |
| for c in list(text.lower()): | |
| if c == " ": | |
| encrypted_text += " " | |
| for i, l in enumerate(alphabet): | |
| if c == l: | |
| encrypted_text += alphabet[(i+delta)%26] | |
| return encrypted_text |
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
| import os | |
| from pandas import DataFrame | |
| import pandas as pd | |
| import csv | |
| # Extract particular columns of all the csv files and put them onto one single csv file | |
| # Separate the csv file into to based on the column and count the strings on Error_list.csv | |
| # Create two csv files that show the count on each string on Error_list.csv | |
| def count_data(): | |
| path = "<the path to your directory>" |
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
| import os | |
| from pandas import DataFrame | |
| import pandas as pd | |
| import csv | |
| # If running the code on your terminal, run this code below first on the particular directory | |
| # import os | |
| # os.getcwd() | |
| # Converting xlsx files to csv files |
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 kivy.app import App | |
| from kivy.uix.button import Button | |
| class TestApp(App): | |
| def build(self): | |
| return Button(text='Hello World') | |
| TestApp().run() |
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
| import hashlib as hasher | |
| import datetime as date | |
| # Define what a Snakecoin block is | |
| class Block: | |
| def __init__(self, index, timestamp, data, previous_hash): | |
| self.index = index | |
| self.timestamp = timestamp | |
| self.data = data | |
| self.previous_hash = previous_hash |
NewerOlder