I hereby claim:
- I am mateothegreat on github.
- I am matthewbdavis (https://keybase.io/matthewbdavis) on keybase.
- I have a public key ASAehsbCoBdkPerCbsKs-2rt3NgU_OawJs4HxthGhWMZigo
To claim this, I am signing this object:
|
// WaitForResourceCondition waits for a condition to be met for each resource in the list of arguments. | |
// | |
// Arguments: | |
// - args ...WaitForResourceConditionArgs: a list of arguments to wait for a condition to be met for each resource. | |
// | |
// Returns: | |
// - []error: a list of errors, one for each resource. | |
func WaitForResourceCondition(args ...WaitForResourceConditionArgs) []error { | |
var wg sync.WaitGroup | |
var mu sync.Mutex |
@Controller("/foo") | |
export class SomeController { | |
@Get("/thisisprotected") | |
@UseGuards(RequestGuard) | |
public search(@SessionDecorator() session: Session): Promise<any> { | |
return { foo: "bar" }; | |
} | |
} |
import { ArgumentsHost, Catch, ConflictException, ExceptionFilter } from '@nestjs/common'; | |
@Catch() | |
export class GlobalExceptionsFilter implements ExceptionFilter { | |
public catch(exception: any, host: ArgumentsHost): void { | |
// const log = { | |
// date: new Date(), | |
// source: request.ip, | |
// url: request.url, | |
// method: request.method, |
function getDisplayMedia(options) { | |
if (navigator.mediaDevices && navigator.mediaDevices.getDisplayMedia) { | |
return navigator.mediaDevices.getDisplayMedia(options) | |
} | |
if (navigator.getDisplayMedia) { | |
return navigator.getDisplayMedia(options) | |
} | |
if (navigator.webkitGetDisplayMedia) { | |
return navigator.webkitGetDisplayMedia(options) | |
} |
package main | |
import "testing" | |
var gs = make([]byte, 1000) | |
var ga [1000]byte | |
func BenchmarkSliceGlobal(b *testing.B) { | |
for i := 0; i < b.N; i++ { | |
for j, v := range gs { |
I hereby claim:
To claim this, I am signing this object:
[defaults] | |
host_key_checking = False | |
retry_files_enabled = False | |
ansible_python_interpreter=python3 | |
localhost_warning = False | |
strategy_plugins = plugins/mitogen-0.2.9/ansible_mitogen/plugins/strategy | |
strategy = mitogen_linear | |
callback_whitelist = timer, profile_tasks | |
forks = 50 | |
internal_poll_interval = 0.001 |
I hereby claim:
To claim this, I am signing this object:
cat test.json| jq 'to_entries[] | select(.value | index("group3") | not)' |