Skip to content

Instantly share code, notes, and snippets.

View xylix's full-sized avatar

Kerkko Pelttari xylix

View GitHub Profile
@xylix
xylix / notes.txt
Created November 26, 2021 14:25
release note generation test
## robotframework-browser
#### ✨ Features (0)
### 🐛 Fixes (8)
<details><summary>Click to expand</summary>
<p>
- Fix wait for regex and predicate handling ([#1533](https://github.com/MarketSquare/robotframework-browser/issues/1533)) ([`1054008d`](https://github.com/MarketSquare/robotframework-browser/commit/1054008d))
- Fix scrolling code, add test for scrolling ([#1222](https://github.com/MarketSquare/robotframework-browser/issues/1222)) ([`acafaea9`](https://github.com/MarketSquare/robotframework-browser/commit/acafaea9))
@xylix
xylix / package.json
Created November 26, 2021 08:52
@types/express package.json 26.11.2021
{
"name": "@types/express",
"version": "4.17.13",
"description": "TypeScript definitions for Express",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express",
"license": "MIT",
"contributors": [
{
"name": "Boris Yankov",
"url": "https://github.com/borisyankov",
Run cd Browser
cd Browser
../pyright-script.sh
shell: /usr/bin/bash -e {0}
env:
pythonLocation: /opt/hostedtoolcache/Python/3.9.6/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.6/x64/lib
Checking node version...
Checking node_modules dir...
Checking pyright exists...
@xylix
xylix / blk_d46pcptu.log
Created November 24, 2020 15:06
Black formatting stability error, large diff for file generate_objc_backend_dispatcher_implementation.py
Mode(target_versions={<TargetVersion.PY38: 8>}, line_length=88, string_normalization=True, experimental_string_processing=False, is_pyi=False)
--- source
+++ first pass
@@ -41,212 +41,337 @@
from generator import Generator
from models import PrimitiveType, EnumType, AliasedType, Frameworks
from objc_generator import ObjCTypeCategory, ObjCGenerator, join_type_and_name
from objc_generator_templates import ObjCGeneratorTemplates as ObjCTemplates
-log = logging.getLogger('global')
@xylix
xylix / InputEventHandling.java
Created September 1, 2020 13:23
JavaFX keyboard input handling
scene.setOnKeyPressed(event -> {
if (event.getCode() == KeyCode.LEFT) {
System.out.println("Painettiin nuolta vasemmalle")
} else if (event.getCode() == KeyCode.RIGHT) {
System.out.println("Painettiin nuolta oikealle")
} else {
System.out.println("Käsittelemätön näppäin")
}
});
@xylix
xylix / hy-test-failures
Created August 1, 2020 14:16
Hy test failures
======================================================================================================================================= FAILURES =======================================================================================================================================
__________________________________________________________________________________________________________________________ test_bin_hy_circular_macro_require __________________________________________________________________________________________________________________________
def test_bin_hy_circular_macro_require():
"""Confirm that macros can require themselves during expansion and when
run from the command line."""
# First, with no bytecode
test_file = "tests/resources/bin/circular_macro_require.hy"
rm(cache_from_source(test_file))
Total time (s) | Calls | Avg time (s) | Median time (s) | Stdev (s) | Stdev/avg time % | Keyword name
68.37 | 83 | 0.824 | 0.578 | 0.593 | 71.97 | Browser.New Page
29.389 | 1 | 29.389 | 29.389 | 0.0 | 0.0 | Browser.Highlight Element
27.799 | 31 | 0.897 | 0.973 | 0.594 | 66.22 | Browser.New Browser
17.465 | 15 | 1.164 | 1.212 | 0.449 | 38.57 | keywords.Open Browser To No Page
10.023 | 2 | 5.011 | 5.011 | 5.002 | 99.82 | Browser.Close Page
9.704 | 39 | 0.249 | 0.122 | 0.295 | 118.47 | BuiltIn.Run Keyword And Expect Error
9.51 | 5 | 1.902 | 1.575 | 1.257 | 66.09 | keywords.Open Browser To Login Page
6.102 | 4 | 1.526 | 1.115 | 1.075 | 70.45 | Open
@xylix
xylix / alias.fish
Created March 30, 2020 12:06
fishalias
# Defined in /usr/local/Cellar/fish/3.1.0_1/share/fish/functions/alias.fish @ line 1
function alias --description 'Creates a function wrapping a command'
set -l options 'h/help' 's/save'
argparse -n alias --max-args=2 $options -- $argv
or return
if set -q _flag_help
__fish_print_help alias
return 0
end
Traceback (most recent call last):
File "/home/xylix/Code/activitywatch/venv/bin/pyinstaller", line 10, in <module>
sys.exit(run())
File "/home/xylix/Code/activitywatch/venv/lib/python3.8/site-packages/PyInstaller/__main__.py", line 111, in run
run_build(pyi_config, spec_file, **vars(args))
File "/home/xylix/Code/activitywatch/venv/lib/python3.8/site-packages/PyInstaller/__main__.py", line 63, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "/home/xylix/Code/activitywatch/venv/lib/python3.8/site-packages/PyInstaller/building/build_main.py", line 844, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "/home/xylix/Code/activitywatch/venv/lib/python3.8/site-packages/PyInstaller/building/build_main.py", line 791, in build
@xylix
xylix / errorlog.log
Created March 15, 2020 17:30
MacOS system error log
error 19:30:12.883436+0200 tccd Failed to copy signing info for 15059, responsible for file:///Applications/ActivityWatch.app/Contents/MacOS/aw-qt: #-67062: Error Domain=NSOSStatusErrorDomain Code=-67062 "(null)"
error 19:30:12.899487+0200 tccd cannot open file at line 43353 of [378230ae7f]
error 19:30:12.899530+0200 tccd os_unix.c:43353: (2) open(/var/db/DetachedSignatures) - No such file or directory
error 19:30:12.941205+0200 runningboardd Launchd failed to get information for pid 15088, failed with error Error Domain=NSPOSIXErrorDomain Code=113 "Unknown error: 113"
error 19:30:13.364804+0200 System Events ERROR: Failed to create a desc with expected type (is 'long' should be 'comp')
error 19:30:13.500082+0200 taskgated cannot open file at line 43353 of [378230ae7f]
error 19:30:13.500129+0200 taskgated os_unix.c:43353: (2) open(/var/db/DetachedSignatures) - No such file or directory
error 19:30:13.509382+0200 taskgated cannot open file at line 43353 of [378230ae7f]
error 19:30:13.509438+0200 taskga