In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.
This file contains 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
// Expo SDK41 | |
// expo-blur: ~9.0.3 | |
import React, { useRef } from 'react'; | |
import { | |
Animated, | |
Image, | |
ImageBackground, | |
ScrollView, | |
StatusBar, |
This file contains 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
Show hidden characters
{ | |
"Main Test Suite Setup": { | |
"prefix": "testm", | |
"body": [ | |
"import 'package:flutter_test/flutter_test.dart';", | |
"", | |
"void main() {", | |
" group('${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/g}} -', (){", | |
"", | |
" });", |
This file contains 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 'package:shelf_router/shelf_router.dart'; | |
import 'package:shelf/shelf.dart'; | |
import 'package:shelf/shelf_io.dart' as io; | |
void start() async { | |
// Initiate server | |
const port = 8081; | |
final app = Router(); | |
// CORS Settings |
This file contains 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: all_lint_rules.yaml | |
analyzer: | |
exclude: | |
- "**/*.g.dart" | |
- "**/*.freezed.dart" | |
# This is generated from the i18n vscode extension | |
- "**/i18n.dart" | |
strong-mode: | |
implicit-casts: false | |
implicit-dynamic: false |
This file contains 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
linter: | |
rules: | |
- always_declare_return_types | |
- always_put_control_body_on_new_line | |
- always_put_required_named_parameters_first | |
- always_require_non_null_named_parameters | |
- always_specify_types | |
- annotate_overrides | |
- avoid_annotating_with_dynamic | |
- avoid_as |
This file contains 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 'package:flutter_local_notifications/flutter_local_notifications.dart'; | |
FlutterLocalNotificationsPlugin localNotificationsPlugin = FlutterLocalNotificationsPlugin(); | |
void initNotifications () async { | |
var initializeAndroid = AndroidInitializationSettings('@mipmap/ic_launcher'); | |
var initializeIOS = IOSInitializationSettings(); | |
var initializationSettings = InitializationSettings(initializeAndroid, initializeIOS); | |
await localNotificationsPlugin.initialize(initializationSettings); |
This file contains 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
... | |
Beautifier.prototype.beautify = function() { | |
... | |
var source_text = this._source_text; | |
// BEGIN | |
source_text = source_text.replace(/\{\{(--)?((?:(?!(--)?\}\}).)+)(--)?\}\}/g, function(m, ds, c, dh, de) { |
This file contains 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
name: Minimal Android CI Workflow | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- 'v*' | |
jobs: |
This file contains 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
# EditorConfig. Frontend. Default. Namics. | |
# @see: http://EditorConfig.org | |
# install a plugin to your editor: http://editorconfig.org/#download | |
# mark: not all plugins supports the same EditorConfig properties | |
# This is the top-most .editorconfig file (do not search in parent directories) | |
root = true | |
### All files | |
[*] |
NewerOlder