Execute the JS code and you will get this:
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
| using System.Collections.Concurrent; | |
| using System.IdentityModel.Tokens.Jwt; | |
| using System.Security.Claims; | |
| using System.Text.RegularExpressions; | |
| using Microsoft.Azure.Management.Media.Models; | |
| using Microsoft.IdentityModel.Tokens; | |
| WebApplicationBuilder builder = WebApplication.CreateBuilder(args); | |
| builder.Services.AddCors(options => | |
| { |
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
| using System.Collections.Concurrent; | |
| using System.Text.RegularExpressions; | |
| WebApplicationBuilder builder = WebApplication.CreateBuilder(args); | |
| builder.Services.AddCors(options => | |
| { | |
| options.AddDefaultPolicy(policy => | |
| { | |
| policy.AllowAnyHeader(); | |
| policy.AllowAnyMethod(); |
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
| from dataclasses import is_dataclass, fields | |
| from typing import TypeVar | |
| T = TypeVar("T") | |
| def fromdict(d: dict, ty: type[T]) -> T: | |
| assert is_dataclass(ty) | |
| for field in fields(ty): | |
| if field.name in d: |
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 CoreML | |
| let model = try! MyModel() | |
| let inputData = [Float](repeating: 0.1, count: 4096 * 2) | |
| let inputArray = MLShapedArray(scalars: inputData, shape: [1, 4096, 2]) | |
| let input = MyModelInput(input_1: inputArray) | |
| let output = try! model.prediction(input: input) | |
| print("\(output.IdentityShapedArray.shape)") |
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
| using System.Reflection; | |
| using System.Reflection.Emit; | |
| using System.Runtime.CompilerServices; | |
| // ==== Foo ==== | |
| // Foo.Nullable: Nullable | |
| // Foo.NonNullable: NotNull | |
| PrintNullabilityState(typeof(Foo)); | |
| // ==== DynamicFoo ==== |
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
| typedef struct FontHeader { | |
| int32_t fVersion; | |
| uint16_t fNumTables; | |
| uint16_t fSearchRange; | |
| uint16_t fEntrySelector; | |
| uint16_t fRangeShift; | |
| }FontHeader; | |
| typedef struct TableEntry { | |
| uint32_t fTag; |
<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>
<general_guidelines>
- NEVER use meta-phrases (e.g., "let me help you", "I can see that").
- NEVER summarize unless explicitly requested.
- NEVER provide unsolicited advice.
- NEVER refer to "screenshot" or "image" - refer to it as "the screen" if needed.
- ALWAYS be specific, detailed, and accurate.
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
| param ( | |
| [Parameter(Mandatory=$true)] [string] $ApiKey, | |
| [Parameter(Mandatory=$true)] [string] $ApiIssuer, | |
| [string] $KeyFile | |
| ) | |
| function To-Base64Url([byte[]] $Bytes) { | |
| return [Convert]::ToBase64String($Bytes).Replace("+","-").Replace("/","_").TrimEnd("="); | |
| } |
OlderNewer
