Skip to content

Instantly share code, notes, and snippets.

View Hexer10's full-sized avatar
🏠
Working from home

Mattia Hexer10

🏠
Working from home
View GitHub Profile
void main() {
assert(identical(score(''), 0));
assert(identical(score('A'), 1));
assert(identical(score('AED'), 4));
assert(identical(score('DG'), 4));
assert(identical(score('BCMP'), 12));
assert(identical(score('QA'), 11));
}
int score(String str) {
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="scaffolded-by" content="https://github.com/google/stagehand">
<title>web_test</title>
<link rel="stylesheet" href="styles.css">
#include <sourcemod>
#include <sdktools>
#include <cstrike>
#define PLUGIN_NAME "ConVar Enforcer"
#define PLUGIN_VERSION "1.0"
#pragma semicolon 1
#pragma newdecls required
.parseint : Parse a String to an Integer
ANY → int.parse($expr$)
.tryparseint : Try to parse a String to an Integer
ANY → int.tryParse($expr$)
try {
await someFuture();
} catch (e) {
print("called when there is an error catches error: $e");
try {
print("called with value = null");
} finally {
print("called when future completes");
}
}
try {
await someFuture();
} catch (e) {
print("called when there is an error catches error: $e");
try {
print("called with value = null");
} finally {
print("called when future completes");
}
}
class Singleton {
static final _instance = Singleton._internal();
factory Singleton() => _instance;
Singleton._internal();
}
import 'dart:async';
import 'dart:convert';
import 'dart:ffi';
import 'dart:io';
import 'package:ffi/ffi.dart';
import 'package:win32/win32.dart';
const healthOffset = 0x12FC58;
message("Found Arduino SDK: ${ARDUINO_SDK_PATH}")
## Uncomment if Arduino SDK Path is wrong
# set(ARDUINO_SDK_PATH <custom path>)
### Edit here
set(CLI_PATH <path to arduino-cli.exe)
set(FQBN <your fully qualified board name>)
set(PORT <your port>
import 'dart:async';
import 'dart:html';
import 'dart:typed_data';
import 'dart:ui' as ui;
import 'package:flutter/material.dart';
void main() {
ui.platformViewRegistry.registerViewFactory(
'video-view',