+ Green.Like all Byzantine agreement protocols, SCP makes no assumptions about the rational behavior of attackers.
- Red. Like all Byzantine agreement protocols, SCP makes no assumptions about the rational behavior of attackers.
Black. Like all Byzantine agreement protocols, SCP makes no assumptions about the rational behavior of attackers.
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
| #!/usr/bin/env python | |
| # | |
| # What does this script do? | |
| # It prints information about the Unread items in your Safari Reading List. | |
| # The oldest item is printed first (maybe). Each item is printed on its own | |
| # line. The line format is "Title", "Preview text", "URL", "bookmark date". | |
| # | |
| # What is the Safari Reading List? | |
| # A category of bookmarks introduced in Safari 5.1, intended to represent |
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
| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| # | |
| # safari_reading_list_to_read_later_service.py | |
| # | |
| # Imports the Safari Reading List into read later services such as Instapaper, | |
| # Readability, and Pocket. | |
| # | |
| # (The MIT License) |
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 requests | |
| from bs4 import BeautifulSoup | |
| url = ‘http://www.enricobergamini.it/trialpage.html' | |
| #load and scrape | |
| response = requests.get(url) | |
| html = response.content | |
| soup = BeautifulSoup(html, “lxml”) | |
| number = soup.find(‘h1’, id=’number’).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
| ''' | |
| This is a command line program designed to identify and | |
| group all files (non-directories) in a given directory and | |
| move each file type (“.csv”, “.py”, “.txt”, etc) into a named | |
| directory of the file type. The program will create a new directory | |
| for any file type that does not have a directory but will not overwrite | |
| existing directories. The program takes the following arguments: | |
| directory: a string path to the directory to be organized | |
| -v: verbose output option | |
| ''' |
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 convert_to_dict(obj): | |
| """ | |
| A function takes in a custom object and returns a dictionary representation of the object. | |
| This dict representation includes meta data such as the object's module and class names. | |
| """ | |
| # Populate the dictionary with object meta data | |
| obj_dict = { | |
| "__class__": obj.__class__.__name__, | |
| "__module__": obj.__module__ |
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
| '''This python script is to extract each sheet in an Excel workbook as a new csv file''' | |
| import csv | |
| import xlrd | |
| import sys | |
| def ExceltoCSV(excel_file, csv_file_base_path): | |
| workbook = xlrd.open_workbook(excel_file) | |
| for sheet_name in workbook.sheet_names(): | |
| print 'processing - ' + sheet_name |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| 😀 | Grinning Face | |
|---|---|---|
| 😁 | Beaming Face With Smiling Eyes | |
| 😂 | Face With Tears of Joy | |
| 🤣 | Rolling on the Floor Laughing | |
| 😃 | Grinning Face With Big Eyes | |
| 😄 | Grinning Face With Smiling Eyes | |
| 😅 | Grinning Face With Sweat | |
| 😆 | Grinning Squinting Face | |
| 😉 | Winking Face | |
| 😊 | Smiling Face With Smiling Eyes |
OlderNewer
