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
| import type { Dirent } from 'node:fs'; | |
| import { readFile, writeFile, glob, readdir } from 'node:fs/promises'; | |
| import * as path from 'node:path'; | |
| const ROOT = path.resolve(import.meta.dirname, '..'); | |
| const PACKAGE_JSON = 'package.json'; | |
| function parseJson(text: string): unknown { | |
| return JSON.parse(text); | |
| } |
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
| import { Plugin } from "vite"; | |
| export default function bsodPlugin(): Plugin { | |
| return { | |
| name: 'vite-plugin-blue-screen-of-death', | |
| apply: 'serve', | |
| transformIndexHtml(html) { | |
| const css = `body { | |
| font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif; | |
| background: #3973aa; |
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
| { | |
| "$schema": "http://json-schema.org/draft-07/schema#", | |
| "title": "RawAppManifestAnyVersionImpl_for_TriggerConfig", | |
| "description": "New Spin manifest versioned with `spin_manifest_version` key", | |
| "type": "object", | |
| "required": [ | |
| "component", | |
| "name", | |
| "spin_manifest_version", | |
| "trigger", |
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
| { | |
| "$schema": "http://json-schema.org/draft-07/schema#", | |
| "title": "RawAppManifestAnyVersionImpl_for_TriggerConfig", | |
| "description": "New Spin manifest versioned with `spin_manifest_version` key", | |
| "type": "object", | |
| "required": [ | |
| "component", | |
| "name", | |
| "spin_manifest_version", | |
| "trigger", |
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
| { | |
| "$schema": "http://json-schema.org/draft-07/schema#", | |
| "title": "RawAppManifestAnyVersion", | |
| "description": "Container for any version of the manifest.", | |
| "oneOf": [ | |
| { | |
| "description": "A manifest with API version 1.", | |
| "type": "object", | |
| "required": [ | |
| "component", |
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
| const userData = await storage.get(appleUid); | |
| if (!userData) { | |
| console.log(`[ERROR] User not found in persistent storage.`); | |
| res.sendStatus(404); | |
| return; | |
| } | |
| const response = { |
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
| import UIKit | |
| import AuthenticationServices | |
| class AuthViewController: UIViewController { | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| setupSignInButton() | |
| } | |
| func setupSignInButton() { |
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
| import CryptoKit | |
| import Foundation | |
| var protocolSalt = "Hello, playground".data(using: .utf8)! | |
| // generate key pairs | |
| let sPrivateKey = Curve25519.KeyAgreement.PrivateKey() | |
| let sPublicKey = sPrivateKey.publicKey |
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
| const axios = require("axios"); | |
| const { JwtGenerator } = require("virgil-sdk"); | |
| const { VirgilCrypto, VirgilAccessTokenSigner } = require("virgil-crypto"); | |
| const crypto = new VirgilCrypto(); | |
| const APP_ID = "YOUR_VIRGIL_APP_ID"; | |
| const APP_KEY = "YOUR_VIRGIL_APP_KEY"; | |
| const APP_KEY_ID = "YOUR_VIRGIL_APP_ID"; | |
| const PARSE_APP_ID = "YOUR_PARSE_APP_ID"; | |
| const PARSE_REST_API_KEY = "YOUR_PARSE_REST_API_KEY"; |
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
| 2019/07/18 16:36:58 [INFO] Terraform version: 0.12.4 | |
| 2019/07/18 16:36:58 [INFO] Go runtime version: go1.12.7 | |
| 2019/07/18 16:36:58 [INFO] CLI args: []string{"/usr/local/bin/terraform", "plan"} | |
| 2019/07/18 16:36:58 [DEBUG] Attempting to open CLI config file: /Users/cardoso/.terraformrc | |
| 2019/07/18 16:36:58 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
| 2019/07/18 16:36:58 [INFO] CLI command args: []string{"plan"} | |
| 2019/07/18 16:36:58 [DEBUG] New state was assigned lineage "e3e211d5-d9a8-b74d-ed5a-96f6aacca0ce" | |
| 2019/07/18 16:36:58 [DEBUG] checking for provider in "." | |
| 2019/07/18 16:36:58 [DEBUG] checking for provider in "/usr/local/bin" | |
| 2019/07/18 16:36:58 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64" |
NewerOlder