- A = [xA, yA] is a point on the 2D plane. Same for B, C, ...
- lengths are in any unit (ex: pixels)
- code snippets are in JavaScript
angleRad = angleDeg * Math.PI / 180;
Name: Biome | |
Id: biomejs.biome | |
Description: Toolchain of the web | |
Version: 2.3.0 | |
Publisher: biomejs | |
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=biomejs.biome | |
Name: Bun for Visual Studio Code | |
Id: oven.bun-vscode | |
Description: The Visual Studio Code extension for Bun. |
// Place your key bindings in this file to override the defaultsauto[] | |
[ | |
{ | |
"key": "ctrl+;", | |
"command": "findJump.activate" | |
}, | |
{ | |
"key": "alt+f1", | |
"command": "revealInExplorer" | |
}, |
[ | |
{ | |
"description": "FnUaaRXXAdV1Y4RHD2k9BUwRXBtHuyTWrMK6HHtqKaEq swapped 1000 Bonk for 0.010379 USDC", | |
"type": "SWAP", | |
"source": "JUPITER", | |
"fee": 1009999, | |
"feePayer": "FnUaaRXXAdV1Y4RHD2k9BUwRXBtHuyTWrMK6HHtqKaEq", | |
"signature": "4bb3o3ZDfq8aoCsmj37epo2hKAkpD1ANMBoXJmBfcVsK1Lft5TxjAEtyg2Bj7nntJM6kuz7SEvSd95Nc1zbKgFZK", | |
"slot": 246311777, | |
"timestamp": 1707147524, |
package jito | |
import ( | |
"context" | |
mev "jito-bot/pkg/jito/gen" | |
"github.com/gagliardetto/solana-go" | |
"google.golang.org/grpc" | |
"google.golang.org/grpc/credentials" |
import ExpoModulesCore | |
import UIKit | |
import SwiftUI | |
// Native view and module definition | |
public class SwiftuiViewModule: Module { | |
public func definition() -> ModuleDefinition { | |
Name("SwiftuiView") | |
View(SwiftuiView.self) { | |
// Define your props here |
import DeviceInfo from 'react-native-device-info'; | |
import { | |
getNotificationsToken, | |
getNotificationsPermission, | |
onNotificationTokenChange, | |
PushNotificationStatus, | |
firebaseNotificationsAuthStatusToBoolean, | |
getNotificationsPermissionString, | |
} from '@src/notifications'; | |
import * as Sentry from '@sentry/react-native'; |
// Place your key bindings in this file to override the defaultsauto[] | |
[ | |
{ | |
"key": "ctrl+;", | |
"command": "findJump.activate" | |
}, | |
{ | |
"key": "alt+f1", | |
"command": "revealInExplorer" | |
}, |
#include <SDL2/SDL.h> | |
int main(int argc, const char * argv[]) { | |
SDL_SetHint(SDL_HINT_RENDER_DRIVER, "opengl"); | |
SDL_Init(SDL_INIT_EVERYTHING); | |
SDL_Window* window1 = SDL_CreateWindow("Test Window 1", 0, 0, 32 * 5, 32 * 5, SDL_WINDOW_OPENGL); | |
SDL_Renderer* renderer1 = SDL_CreateRenderer(window1, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_TARGETTEXTURE | SDL_RENDERER_PRESENTVSYNC); | |
SDL_Texture* texture1 = SDL_CreateTexture(renderer1, SDL_PIXELFORMAT_RGBA8888, SDL_TEXTUREACCESS_TARGET, 32, 32); |