Skip to content

Instantly share code, notes, and snippets.

Avatar

Carsten Klein silkentrance

View GitHub Profile
View CHANGELOG.md
@silkentrance
silkentrance / README.md
Last active Feb 6, 2020
A jest test environment for use with node tmp - temporary work around for https://github.com/raszi/node-tmp/issues/229
View README.md

A real version of this will be released soon that can then be installed using npm/yarn.

@silkentrance
silkentrance / Jenkinsfile
Created Mar 25, 2019
Maven custom build versions that include jira issue id from branch name
View Jenkinsfile
pipeline {
agent any
environment {
V_DEPLOY_VERSION = buildDeployVersion(readMavenPom().getVersion())
}
stages {
stage('Version') {
steps {
@silkentrance
silkentrance / README.md
Last active Aug 7, 2019
Vuetify with TypeScript
View README.md

Vuetify with TypeScript

The following changes to the standard setup of the vuetify template will allow you to use typescript instead of babel or just plain javascript.

WORK IN PROGRESS

Additional changes have to be made to vuetify in order to get this running, namely the vuetify typescript declarations. I am currently working on that. Patience is a virtue.

@silkentrance
silkentrance / README.md
Created Jan 19, 2018
Vuetify with TypeScript
View README.md

Vuetify with TypeScript

The following changes to the standard setup of the vuetify template will allow you to use typescript instead of babel or just plain javascript.

@silkentrance
silkentrance / MyComponent.ts
Last active Apr 21, 2020
vue-router typescript integration fails
View MyComponent.ts
import Vue from 'vue';
import Component from 'vue-class-component';
@Component({
name : 'component'
})
export default class MyComponent extends Vue {
beforeCreate() {
@silkentrance
silkentrance / Log
Created Sep 16, 2017
Failing tests (see additional new test 8, which also fails)
View Log
[phantomjs #0-0] Session ID: bb54a3e0-9b1e-11e7-a375-b567385b20c9
[phantomjs #0-0] Spec: /Volumes/workspaces/wdio-tests/cucumber-boilerplate/src/features/select.feature
[phantomjs #0-0] Running: phantomjs
[phantomjs #0-0]
[phantomjs #0-0] Test select elements
[phantomjs #0-0]
[phantomjs #0-0] Test if we can select the second option of a select element
[phantomjs #0-0] ✓ I open the site "/"
[phantomjs #0-0] 1) I expect that element "#selectElementTest option:nth-child(2)" is not selected
[phantomjs #0-0] - I select the 1st option for element "#selectElementTest"
@silkentrance
silkentrance / GH-79.feature
Last active Sep 7, 2017
selectByValue() fails
View GH-79.feature
Feature: GH-79
Background:
Given I open the url "http://html.com/tags/select/"
Scenario:
When I wait on element "//select" for 10000ms to exist
And I select the option with the value "Greater" for element "//select"
@silkentrance
silkentrance / gist:2710c559f07560d87d33cb6698dfe7a1
Created May 18, 2017
find/resolve PEP420 namespace packages and standard packages
View gist:2710c559f07560d87d33cb6698dfe7a1
def _resolve_packages(root, rel_path, nsonly = False):
result = []
it = os.scandir(root)
isnspackage = True
for entry in it:
if entry.is_dir():
nrel_path = []
nrel_path.extend(rel_path)
nrel_path.append(entry.name)
result.extend(_resolve_packages(entry.path, nrel_path, nsonly = nsonly))
@silkentrance
silkentrance / SyncStream.py
Last active Apr 9, 2017
GRPC Python Request and Response Streaming
View SyncStream.py
import threading
from time import sleep
DEFAULT_SLEEP_TIME = 0.00001
class SyncStream:
def __init__(self, sleep_time = DEFAULT_SLEEP_TIME):
You can’t perform that action at this time.