- Prevented multiple wallets from having the same label (fixes #776) CityOfZion/neon-wallet#884
- Added Discord invite link to footer (fixes #880) CityOfZion/neon-wallet#885
- Blocked people from sending to addresses listed in CityOfZion/phishing (fixes #878) CityOfZion/neon-wallet#887
- Added support for InvocationTransaction/GetScript in neo-boa (partially fixes CityOfZion/neo-python#324) CityOfZion/neo-boa#55
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 python3 | |
| import sys, os, subprocess, tempfile, urllib.request | |
| with tempfile.TemporaryDirectory() as d: | |
| # Download proto files | |
| urllib.request.urlretrieve("https://raw.githubusercontent.com/google/gce-tcb-verifier/refs/heads/main/proto/endorsement.proto", f"{d}/endorsement.proto") | |
| os.makedirs(f"{d}/google/protobuf", exist_ok=True) | |
| urllib.request.urlretrieve("https://raw.githubusercontent.com/protocolbuffers/protobuf/main/src/google/protobuf/timestamp.proto", f"{d}/google/protobuf/timestamp.proto") | |
| # Download binarypb |
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 | |
| import difflib | |
| import re | |
| # NOTES: | |
| # This doesn't work on multiline strings that end with a backslash | |
| # - The fix would be to odd number of backslashes in string_pattern | |
| # This doesn't automatically indent the multiline strings | |
| # - The fix would be to match the whitespace characters at the beginning | |
| # of the line for each string and append it to the \n on the inner_string line |
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 homeassistant.const import Platform | |
| async def async_setup_entry(hass, entry): | |
| hass.config_entries.setup_platforms(entry, [Platform.CLIMATE]) | |
| return True |
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
| const w = window | |
| const importBtn = document.createElement('label') | |
| importBtn.style.display = 'inline-block' | |
| importBtn.style.cursor = 'pointer' | |
| importBtn.style['margin-right'] = '20px' | |
| importBtn.setAttribute('class', 'btn btn-primary') | |
| importBtn.setAttribute('id', 'importBtn-btn') | |
| importBtn.innerHTML = 'Import' |
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 datetime import datetime, timedelta | |
| import todoist # pip3 --target . install todoist-python | |
| API_KEY = os.environ['TODOIST_API_KEY'] | |
| PROJ_ID = int(os.environ['TODOIST_PROJECT_ID']) | |
| LABEL_ID = int(os.environ['TODOIST_LABEL_ID']) | |
| RUN_GAP_HRS = 48 | |
| def lambda_handler(event, context): |
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
| <html> | |
| <head> | |
| <script> | |
| console.print = function(text) { | |
| document.write(text.replace(/\n/g, '<br>')); | |
| } | |
| console.log = function(text) { | |
| console.print(text + '\n'); | |
| } | |
| console.error = function(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
| cd $LIB_PATH | |
| mkdir bin | |
| wget http://www.tortall.net/projects/yasm/releases/yasm-$YASM_VER.tar.gz | |
| wget http://ffmpeg.org/releases/ffmpeg-$FFMPEG_VER.tar.gz | |
| tar -xvf yasm-$YASM_VER.tar.gz | |
| cd yasm-$YASM_VER | |
| ./configure --prefix=$LIB_PATH/bin --bindir=$LIB_PATH/bin | |
| make | |
| make install |
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
| var jquery_new = document.createElement('script'); | |
| jquery_new.src = '//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'; | |
| document.getElementsByTagName('head')[0].appendChild(b); | |
| $(frames['content'].frames['menu'].document).find('body').attr('marginwidth',''); | |
| $(frames['content'].frames['tabs'].document).find('body').attr('marginwidth',''); |
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
| assumes: | |
| p = page number (starts @ 0) | |
| n = # of devices on page | |
| a = number of devices connected (starts @ 1) | |
| list actual devices: | |
| for (int i = n*p; i < min(n*p+n, a); i++) { | |
| ... | |
| } |
NewerOlder