Open PowerShell and execute the code below:
cd C:\data\tools
Remove-Item go.bk -Recurse
Rename-Item go go.bk
curl "https://golang.org/dl/go1.16.6.windows-amd64.zip" -o go.zip -L
Expand-Archive -Path go.zip -DestinationPath .| // run: bun test | |
| // app.ts | |
| export const handler = { | |
| async fetch(request: Request): Promise<Response> { | |
| const url = new URL(request.url); | |
| if (url.pathname === "/api/user" && request.method === "POST") { | |
| const body = await request.json(); | |
| return Response.json({ success: true, user: body.name }, { status: 201 }); |
| const FLAGS = { | |
| READ: 1, // 2^0 | |
| WRITE: 2, // 2^1 | |
| EXEC: 4, // 2^2 | |
| DELETE: 8, // 2^3 | |
| SHARE: 16 // 2^4 | |
| }; | |
| const flagEntries = Object.entries(FLAGS); | |
| const totalCombinations = 2 ** flagEntries.length; |
| <?php | |
| // App\Providers\AppServiceProvider | |
| class AppServiceProvider | |
| { | |
| public function boot(): void | |
| { | |
| Json::encodeUsing(fn ($value) => json_encode($value, JSON_UNESCAPED_UNICODE)); | |
| } | |
| } |
| const num = 123_456_789; | |
| const obj = { | |
| member: 123, | |
| method() { | |
| return 456; | |
| }, | |
| address: { | |
| pref: "abc", | |
| city: "def" |
| <!DOCTYPE html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>React jsx-esm-standalone</title> | |
| <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script> | |
| <style type="text/tailwindcss">@import "tailwindcss" prefix(tw);</style> | |
| <script src="https://unpkg.com/@babel/standalone/babel.min.js"></script> |
| package main | |
| import ( | |
| "context" | |
| "crypto/tls" | |
| "encoding/json" | |
| "fmt" | |
| "io" | |
| "log" | |
| "net/http" |
| <?php | |
| $ch = curl_init(); | |
| curl_setopt($ch, CURLOPT_URL, "http://www.example.com/"); | |
| $result = curl_exec($ch); | |
| $code = $result ? curl_getinfo($ch, CURLINFO_RESPONSE_CODE): null; | |
| curl_close($ch); | |
| $ok = is_int($code) && 200 <= $code && $code < 300; |
| package main | |
| import ( | |
| //"crypto/ed25519" | |
| "golang.org/x/crypto/ed25519" | |
| "log" | |
| "time" | |
| "github.com/o1egl/paseto" |
| Add-Type -AssemblyName System.Net.Http | |
| # proxy | |
| $bypassOnLocal = $TRUE | |
| $proxy = [System.Net.WebRequest]::GetSystemWebProxy() | |
| #$proxy = New-Object System.Net.WebProxy("http://localhost:8888", $bypassOnLocal) | |
| #$proxy.Credentials = [System.Net.CredentialCache].DefaultNetworkCredentials | |
| #$proxy.Credentials = New-Object System.Net.NetworkCredential("username", "password") | |
| $password = ConvertTo-SecureString "password" -asplaintext -force | |
| $cred = New-Object System.Management.Automation.PsCredential "username",$password |