sequenceDiagram
participant User
participant AWS Marketplace Product Page
participant Your Marketplace Landing Form
participant Your subscriptions API
participant AWS Marketplace Metering Service
User ->> AWS Marketplace Product Page: Visits
User ->> AWS Marketplace Product Page: Purchases contract/subscription
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
| [gpt-4o-mini-non-strict-tool (Complex JSON Schema)] Run 1 failed | |
| [gpt-4o-mini-non-strict-json (Wide JSON Schema)] Run 1: 3147.1813 ms | |
| [gpt-4o-2024-08-06-non-strict-tool (Wide JSON Schema)] Run 1: 3418.5543 ms | |
| [gpt-4o-mini-non-strict-tool (Wide JSON Schema)] Run 1: 3418.7064 ms | |
| [gpt-4o-2024-08-06-non-strict-json (Wide JSON Schema)] Run 1: 4436.7569 ms | |
| [gpt-4o-2024-08-06-non-strict-tool (Complex JSON Schema)] Run 1: 4677.3473 ms | |
| [gpt-4o-mini-non-strict-tool (Wide JSON Schema)] Run 2: 2659.2542 ms | |
| [gpt-4o-mini-non-strict-tool (Complex JSON Schema)] Run 2 failed | |
| [gpt-4o-2024-08-06-non-strict-tool (Wide JSON Schema)] Run 2: 2807.2270 ms | |
| [gpt-4o-2024-08-06-non-strict-json (Complex JSON Schema)] Run 1: 7188.8446 ms |
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 awsTool = new DynamicTool({ | |
| name: "aws-cli", | |
| description: | |
| "This is AWS CLI. You can call this to send commands to the AWS Cloud. Use AWS CLI format like `aws s3api list-buckets`", | |
| async func(command) { | |
| const args = command.split(" ").filter((x) => x !== "aws"); | |
| const result = spawnSync("aws", args, { | |
| env: { | |
| ...process.env, | |
| AWS_REGION: "eu-central-1", |
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
| // First, get the item | |
| DynamoDB.get({ | |
| TableName: "http-crud-tutorial-items", | |
| Key: { | |
| id: "1", | |
| }, | |
| }).promise().then((data) => { | |
| const item = data.Item; | |
| // Update the item |
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
| name: Build/release | |
| on: | |
| release: | |
| types: # This configuration does not affect the page_build event above | |
| - created | |
| jobs: | |
| release: | |
| runs-on: ${{ matrix.os }} |
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
| let kv = {}; | |
| let set = new Set(); | |
| let map = new Map(); | |
| const { performance } = require('perf_hooks'); | |
| const numOfBlacklisted = 3500000; | |
| const numOfChecks = 100000; | |
| const putToKv = (ip) => { | |
| kv[ip] = true; |
I hereby claim:
- I am rafalwilinski on github.
- I am rafwilinski (https://keybase.io/rafwilinski) on keybase.
- I have a public key ASBiCUFaXIYxtVkZaGXkfVJNxOB9QKiwd7tyDTIEGRPAHAo
To claim this, I am signing this object:
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
| // consts/index.js | |
| export const SHOW_MODAL = 'ui/SHOW_MODAL' | |
| export const HIDE_MODAL = 'ui/HIDE_MODAL' | |
| // reducers/ui.js | |
| import { SHOW_MODAL, HIDE_MODAL } from '../consts' | |
| const initialState = { | |
| activeModal: null |
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
| 1. Go to `/node_modules/redux-api-middleware` | |
| 2. Open `package.json` and add `"react-native": "fetch-npm-react-native.js",` after `main` key | |
| 3. Run `echo "module.exports = this;" > fetch-npm-react-native.js` | |
| 4. Restart RN server |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |