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
| diff --git a/canmatrix/canmatrix.py b/canmatrix/canmatrix.py | |
| index 12b0eed..82eed9e 100644 | |
| --- a/canmatrix/canmatrix.py | |
| +++ b/canmatrix/canmatrix.py | |
| @@ -116,69 +116,47 @@ class Signal(object): | |
| # def __init__(self, name, startbit, signalsize, is_little_endian, is_signed=False, factor=1, offset=0, min=0, max=0, unit="", receiver=[], multiplex=None): | |
| def __init__(self, name, **kwargs): | |
| - if 'startBit' in kwargs: | |
| - self._startbit = int(kwargs["startBit"]) |
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 | |
| '''Read fully linked TI COFF file, and generate AIS format file | |
| Commandline parameters | |
| enable sequential read, | |
| pll and emifb configuration | |
| pinmux configuration | |
| enable checksums | |
| 'Eliot Blennerhassett' <eblennerhassett@audioscience.com> |
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 monitor_model(): | |
| try: | |
| user = User().save() | |
| except: | |
| result = 'failed' | |
| else: | |
| result = 'passed' | |
| user.delete() | |
| return django.http.Response(result) |
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
| for counter, addresses in enumerate(sales_addresses): | |
| cell = 'A' + counter | |
| sheet[cell] = addresses |
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
| height = None | |
| while height is None: | |
| try: | |
| height = int(input("Enter something: ")) | |
| except (ValueError): | |
| print("Not an integer!") | |
| else: | |
| if not 0 < height < 23: | |
| print("Height's smaller than 0 or bigger than 23") |
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 PyQt5.QtWidgets import QHeaderView | |
| from ui_orderconversion import Ui_OrderConversion | |
| class OrderConversion(Ui_OrderConversion): | |
| def __init__(self, *args, **kwargs): | |
| super().__init__(*args, **kwargs) | |
| self.setupUi(self) | |
| self.column_width() |
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 PyQt5.QtWidgets import QHeaderView, QTableWidgetItem | |
| from PyQt5.QtCore import Qt | |
| from ui_orderconversion import Ui_OrderConversion | |
| class OrderConversion(Ui_OrderConversion): | |
| def __init__(self, *args, **kwargs): | |
| super().__init__(*args, **kwargs) | |
| # initialize ui | |
| self.setupUi(self) |
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 is_isogram(string): | |
| string_lower = string.lower() | |
| for i in string_lower: | |
| if not i.isalpha(): | |
| continue | |
| for n in range(string_lower.index(i) - 1, | |
| string_lower.index(i) - len(string_lower), -1): | |
| if string_lower[n] == i: | |
| print("\"%s\" is not an isogram.") % (string) | |
| return False |
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
| browser.find_element_by_xpath('//article/div[2]/section[2]/div/a').click() | |
| try: | |
| tmp_list = browser.find_element__by_tag_name('_6e4x5') | |
| except NoSuchElementException: | |
| tmp_list = browser.find_element_by_class_name('_3gwk6') | |
| tmp_list = tmp_list.find_elements_by_tag_name('a') |
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
| class IdModel: | |
| id = db.Column(db.Integer, primary_key=True) | |
| class User(IdModel, UserMixin, db.Model): | |
| username = db.Column(db.String(64), index=True, unique=True) | |
| email = db.Column(db.String(128), index=True, unique=True) | |
| password_hash = db.Column(db.String(128)) | |
| def __repr__(self): |
OlderNewer