This file contains hidden or 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
| openapi: 3.1.0 | |
| info: | |
| title: No Clocks Auth API | |
| version: 1.0.0 | |
| description: >- | |
| This API allows for user authentication, management of users, roles, permissions, and session handling. | |
| termsOfService: https://noclocks.dev/terms | |
| contact: | |
| name: API Support | |
| url: https://support.noclocks.dev |
This file contains hidden or 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
| $inputString = "Password123" | |
| $sha256 = [System.Security.Cryptography.SHA256]::Create() | |
| $bytes = [System.Text.Encoding]::UTF8.GetBytes($inputString) | |
| $hashBytes = $sha256.ComputeHash($bytes) | |
| $base64String = [System.Convert]::ToBase64String($hashBytes) | |
| $binaryString = [System.Text.StringBuilder]::new() | |
| foreach ($byte in $hashBytes) { |
This file contains hidden or 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
| # plumber_asynchronous.R | |
| require(future) | |
| require(uuid) | |
| plan(multiprocess) | |
| defaultPackages <- c("plyr", | |
| "dplyr", | |
| "dbplyr", |
This file contains hidden or 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
| { | |
| "openapi": "3.1.0", | |
| "info": { | |
| "title": "BrandFetch API", | |
| "description": "API for retrieving brand information using domain or ID.", | |
| "version": "1.0.0", | |
| "termsOfService": "https://brandfetch.com/terms", | |
| "license": { | |
| "name": "MIT", | |
| "url": "https://choosealicense.com/licenses/mit/" |
This file contains hidden or 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
| openapi: 3.1.0 | |
| info: | |
| title: Brandfetch API | |
| description: Brandfetch API for retrieving brand information. | |
| version: 2.0.0 | |
| termsOfService: https://brandfetch.com/terms | |
| contact: | |
| url: https://brandfetch.com/developers | |
| servers: | |
| - url: https://api.brandfetch.io/v2 |
This file contains hidden or 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
| library(httr2) | |
| call_openrouter <- function(prompt, model = "openai/gpt-3.5-turbo") { | |
| req <- request("https://openrouter.ai/api/v1/chat/completions") %>% | |
| req_headers( | |
| "Content-Type" = "application/json", | |
| "Authorization" = paste("Bearer", Sys.getenv("OPENROUTER_API_KEY")), | |
| "HTTP-Referer" = "https://your-site-url.com", # Optional | |
| "X-Title" = "Your Site Name" # Optional | |
| ) %>% |
This file contains hidden or 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
| components: | |
| securitySchemes: | |
| # apiKey ------------ | |
| auth1: | |
| description: Recommended authenticator | |
| type: apiKey | |
| in: query | |
| name: key | |
| auth2: |
This file contains hidden or 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
| javascript:(function() { | |
| function copyToClipboard(text) { | |
| if (window.clipboardData && window.clipboardData.setData) { | |
| /*IE specific code path to prevent textarea being shown while dialog is visible.*/ | |
| return clipboardData.setData("Text", text); | |
| } else if (document.queryCommandSupported && document.queryCommandSupported("copy")) { | |
| var textarea = document.createElement("textarea"); | |
| textarea.textContent = text; |