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
| 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) { |
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
| <!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"> |
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
| #include <sourcemod> | |
| #include <sdktools> | |
| #include <cstrike> | |
| #define PLUGIN_NAME "ConVar Enforcer" | |
| #define PLUGIN_VERSION "1.0" | |
| #pragma semicolon 1 | |
| #pragma newdecls required |
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
| .parseint : Parse a String to an Integer | |
| ANY → int.parse($expr$) | |
| .tryparseint : Try to parse a String to an Integer | |
| ANY → int.tryParse($expr$) |
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
| 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"); | |
| } | |
| } |
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
| 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"); | |
| } | |
| } |
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
| class Singleton { | |
| static final _instance = Singleton._internal(); | |
| factory Singleton() => _instance; | |
| Singleton._internal(); | |
| } |
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 'dart:async'; | |
| import 'dart:convert'; | |
| import 'dart:ffi'; | |
| import 'dart:io'; | |
| import 'package:ffi/ffi.dart'; | |
| import 'package:win32/win32.dart'; | |
| const healthOffset = 0x12FC58; |
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
| 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> |
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 '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', |