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 GENERIC_WEBHOOK_URL = "XXXXXXX"; | |
// Pick the Webhook Url from | |
// https://app.gallabox.com/integration/genericWebhook | |
function sendPostRequest(e) { | |
var resp = {}; | |
var itemResponses = e.response.getItemResponses(); | |
for (var j = 0; j < itemResponses.length; j++) { | |
var itemResponse = itemResponses[j]; |
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
git clone --bare https://github.com/exampleuser/old-repository.git | |
cd old-repository.git | |
git push --mirror https://github.com/exampleuser/new-repository.git |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"baseUrl": "./src/", | |
"target": "es6", | |
"jsx": "react", | |
"module": "commonjs" | |
}, | |
"include": ["src/**/*"] | |
} |
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
concurrency := 10 // 10 is max concurrency | |
sem := make(chan bool, concurrency) | |
urls := []string{"url1", "url2"} | |
for _, url := range urls { | |
sem <- true // mark one as running (will block when full) | |
go func(url) { | |
defer func() { <-sem }() // mark one as completed | |
// Do something with the url | |
}(url) | |
} |