This file contains 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
#!/bin/bash | |
lsof -i tcp:$1 | awk 'NR!=1 {print $2}' | xargs kill |
This file contains 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
➜ cdktf git:(master) ✗ CDKTF_LOG_LEVEL=debug cdktf synth | |
[2022-08-20T22:40:57.697] [DEBUG] default - Error reporting disabled | |
[2022-08-20T22:40:57.710] [DEBUG] default - { | |
"terraform_version": "1.2.7", | |
"platform": "darwin_arm64", | |
"provider_selections": {}, | |
"terraform_outdated": false | |
} | |
[2022-08-20T22:40:57.711] [DEBUG] default - { |
This file contains 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
type Combine<A, B> = Omit<A, keyof B> & | |
Omit<B, keyof A> & { [K in keyof A & keyof B]: A[K] | B[K] }; | |
type CombineObjectsFromTuple<T> = T extends [infer K, ...infer R] | |
? Combine<K, CombineObjectsFromUnion<R>> | |
: T; | |
This file contains 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
angular.module('qAllSettled', []).config(function($provide) { | |
$provide.decorator('$q', function($delegate) { | |
var $q = $delegate; | |
$q.allSettled = function(promises) { | |
return $q.all(promises.map(function(promise) { | |
return promise.then(function(value) { | |
return { state: 'fulfilled', value: value }; | |
}, function(reason) { | |
return { state: 'rejected', reason: reason }; | |
}); |
This file contains 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
/* | |
Copyright 2021 Adobe. All rights reserved. | |
This file is licensed to you under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. You may obtain a copy | |
of the License at http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software distributed under | |
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS | |
OF ANY KIND, either express or implied. See the License for the specific language | |
governing permissions and limitations under the License. |
This file contains 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
async function setUpEdgeConfigurationAndEnvironment({ blackbird }) { | |
console.log('Creating edge configuration.'); | |
const config = await blackbird.createConfig({ | |
description: 'Dummy from test', | |
enabled: true, | |
title: `Debugger E2E Test Config ${uuid()}`, | |
type: '' | |
}); | |
const environment = await blackbird.createEnvironment(config.id, { | |
type: 'development', |
This file contains 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 getCommaDelimitedKeys = memoize(object => { | |
return Object.keys(object).join(","); | |
}); | |
const fruits = { | |
apple: 95, | |
avocado: 234, | |
banana: 133 | |
}; |
This file contains 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
{ | |
"name": "reactor-helloworld-extension", | |
"version": "1.0.0", | |
"scripts": { | |
"upload": "npx @adobe/reactor-uploader --environment=production --org-id=04B20B885A7B43080A494209@AdobeOrg --tech-account-id=94A538A75B180FC90A49410B@techacct.adobe.com --api-key=395fe521b0044160935a90db77e0e18b" | |
} | |
} |
This file contains 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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'stable', |
This file contains 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
// Queues multiple asynchronous processes to run sequentially via promises | |
// Process can be added to the queue while other processes are running | |
var Sequence = function() {}; | |
Sequence.prototype.enqueue = function(fn) { | |
this.tail = this.tail ? this.tail.finally(fn) : fn(); | |
}; | |
// Usage |
NewerOlder