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 | |
set -euxo pipefail | |
# Ensure AWS CLI is installed | |
if ! command -v aws &> /dev/null; then | |
echo "AWS CLI is not installed. Please install it and configure it." | |
exit 1 | |
fi | |
# List all APIs and delete them |
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
use gpui::prelude::*; | |
use gpui::*; | |
struct Counter { | |
count: usize, | |
} | |
impl Render for Counter { | |
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement { | |
let mut button = div() |
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
#![feature(test)] | |
extern crate test; | |
use test::Bencher; | |
const SIZE: usize = 2 << 10; | |
#[bench] | |
fn bench_zeroed_memory(b: &mut Bencher) { | |
b.iter(|| { |
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
2024-01-19T20:18:48.186Z cli called | |
2024-01-19T20:18:48.210Z main called | |
2024-01-19T20:18:48.215Z importing command | |
2024-01-19T20:18:48.245Z calling imported command | |
2024-01-19T20:18:48.245Z compile called | |
2024-01-19T20:18:48.245Z globbing finished | |
2024-01-19T20:18:48.245Z setting up synthesis dir | |
2024-01-19T20:18:48.269Z finished setting up synthesis dir | |
2024-01-19T20:18:48.269Z loading wingc | |
2024-01-19T20:18:48.277Z invoking wingc |
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
2024-01-19T20:39:52.816Z cli called | |
2024-01-19T20:39:52.854Z main called | |
2024-01-19T20:39:52.861Z importing command | |
2024-01-19T20:39:52.909Z calling imported command | |
2024-01-19T20:39:52.909Z compile called | |
2024-01-19T20:39:52.909Z globbing finished | |
2024-01-19T20:39:52.910Z setting up synthesis dir | |
2024-01-19T20:39:52.913Z finished setting up synthesis dir | |
2024-01-19T20:39:52.913Z loading wingc | |
2024-01-19T20:39:52.944Z invoking wingc |
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
2024-01-19T19:54:36.424Z cli called | |
2024-01-19T19:54:36.448Z main called | |
2024-01-19T19:54:36.454Z importing command | |
2024-01-19T19:54:36.696Z calling imported command | |
2024-01-19T19:54:36.696Z test called | |
2024-01-19T19:54:36.700Z testOne called | |
2024-01-19T19:54:36.700Z compile called | |
2024-01-19T19:54:36.700Z globbing finished | |
2024-01-19T19:54:36.936Z compiling finished | |
2024-01-19T19:54:36.936Z compile finished |
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
use bit_set::BitSet; | |
use rand::Rng; | |
use std::time::Instant; | |
use thinset::SparseSet; | |
const SMALL_SIZE: usize = 1 << 12; | |
const LARGE_SIZE: usize = 1 << 20; | |
fn generate_number(cap: usize) -> usize { | |
let mut rng = rand::thread_rng(); |
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
bring cloud; | |
bring tracing; | |
let tracer = new tracing.Tracer(); | |
let api = new cloud.Api(); | |
api.post("/users", inflight (req) => { | |
let span = tracer.startSpan("create_user"); | |
tracer.log(tracing.Level.INFO, "create user started"); |
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
bring cloud; | |
bring sim; | |
bring fs; | |
struct BucketProps { | |
public: bool; | |
} | |
class Bucket_sim extends sim.State { | |
pub public: bool; |
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: 'resource', | |
data: { message: '@winglang/sdk.cloud.Function created.' }, | |
sourcePath: 'root/env0/test:test/Handler', | |
sourceType: '@winglang/sdk.cloud.Function', | |
timestamp: '2023-12-16T00:18:58.062Z' | |
} | |
{ | |
type: 'resource', | |
data: { message: '@winglang/sdk.cloud.Queue created.' }, |
NewerOlder