I hereby claim:
- I am kukks on github.
- I am kukks (https://keybase.io/kukks) on keybase.
- I have a public key ASAXY_-1gn4ZEucBUj0gWy69ZJEaYtddCnZW9srMdu-HaAo
To claim this, I am signing this object:
import { CloneUtility } from "./clone"; | |
import { Disposable } from "aurelia-binding"; | |
import { BindingEngine } from "aurelia-binding"; | |
/** | |
* Unit Of Work Observer | |
* Based on the work of fragsalat's MultiObserver found at | |
* https://gist.github.com/fragsalat/819a58021fc7b76a2704 | |
* | |
* | |
* The purpose of this observer is to observe all changes made to a model and allows you |
export class StringifyValueConverter { | |
public toView( value: any ): string { | |
if ( value ) { | |
return JSON.stringify(value); | |
} else { | |
return "null object"; | |
} | |
} | |
} |
export class WindowCloseNotifierHelper { | |
public static setMessage( message: any ) { | |
if ( message && _.isFunction(message) ) { | |
window.onbeforeunload = message; | |
} else if ( message ) { | |
window.onbeforeunload = ( e: any ) => { | |
if ( e ) { | |
e.returnValue = message; | |
} |
import { autoinject } from "aurelia-dependency-injection"; | |
import { Router } from "aurelia-router"; | |
import { ObserverLocator } from "aurelia-binding"; | |
declare var $: any; | |
@autoinject() | |
export class ModalService { | |
constructor( private router: Router, private observerLocator: ObserverLocator ) { | |
this.observeRouterNavigation(); |
export class Reflection { | |
public static getPropertyName( propertyFunction: Function ): string { | |
return /\.([^\.;]+);?\s*\}$/.exec(propertyFunction.toString())[1]; | |
} | |
public static getPropertiesOfObject( object: any ): string[] { | |
let result: string[] = []; | |
if ( typeof object === "object" ) { | |
for ( let i in object ) { |
private readonly BindingFlags flags = BindingFlags.Static | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic; | |
private object GetPropertyRecursive(string property, object obj) | |
{ | |
var splitted = property.Split('.'); | |
var value = obj.GetType().GetProperty(splitted[0], flags).GetValue(obj); | |
if (value == null) | |
{ |
<template> | |
<input value.bind="message"> | |
<br> | |
<p>Message: ${message}</p> | |
<button click.trigger="tryChange()">jQuery('input')[0].val('test').trigger('change')</button> | |
<button click.trigger="tryInput()">jQuery('input').val('test2').trigger('input')</button> | |
</template> |
I hereby claim:
To claim this, I am signing this object:
public async Task UploadScreenshot(string clientId) | |
{ | |
Screenshot ss = ((ITakesScreenshot) Driver).GetScreenshot(); | |
var link = await UploadImageAnonymous(ss.AsBase64EncodedString, $"btcpayservertests_{DateTime.Now}"); | |
Logs.Tester.LogInformation($"screenshot uploaded to {link}"); | |
} | |
private async Task<string> UploadImageAnonymous(string base64, string name,string clientId) |
made with esnextbin