Skip to content

Instantly share code, notes, and snippets.

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
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>"
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
from kivy.app import App
from kivy.uix.button import Button
class TestApp(App):
def build(self):
return Button(text='Hello World')
TestApp().run()
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