Skip to content

Instantly share code, notes, and snippets.

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

Veli Bacik VB10

🏠
Working from home
View GitHub Profile
@VB10
VB10 / extension.sh
Created June 26, 2022 19:20
2022 My Visual Code Extension list
code --install-extension aaron-bond.better-comments
code --install-extension adpyke.codesnap
code --install-extension adrianwilczynski.terminal-commands
code --install-extension akamud.vscode-theme-onedark
code --install-extension aksharpatel47.vscode-flutter-helper
code --install-extension alefragnani.Bookmarks
code --install-extension alexisvt.flutter-snippets
code --install-extension AndrijaRubelj.flutterpubopen
code --install-extension Ascenio.dart-union-class
code --install-extension bbenoist.shell
{
"workbench.iconTheme": "material-icon-theme",
"workbench.colorTheme": "GitHub Dark",
"explorer.experimental.fileNesting.enabled": true,
"explorer.experimental.fileNesting.expand": false,
"explorer.experimental.fileNesting.patterns": {
"pubspec.yaml": ".flutter-plugins, .packages, .dart_tool, .flutter-plugins-dependencies, .metadata, .packages, pubspec.lock, build.yaml, analysis_options.yaml, all_lint_rules.yaml",
".gitignore": ".gitattributes, .gitmodules, .gitmessage, .mailmap, .git-blame*",
"readme.*": "authors, backers.md, changelog*, citation*, code_of_conduct.md, codeowners, contributing.md, contributors, copying, credits, governance.md, history.md, license*, maintainers, readme*, security.md, sponsors.md",
"*.dart": "$(capture).g.dart, $(capture).freezed.dart",
@VB10
VB10 / extension.txt
Created October 8, 2020 21:39
My Visual Code Extension
0legg.flutter-create-helper
aaron-bond.better-comments
achil.vscode-javascript-repl
adpyke.codesnap
afractal.node-essentials
akamud.vscode-theme-onedark
aksharpatel47.vscode-flutter-helper
alexisvt.flutter-snippets
amandeepmittal.expressjs
ardenivanov.svelte-intellisense
@VB10
VB10 / tips.txt
Created October 6, 2020 00:39
VS code Tips
selectAll => (: ")(.*?)(?:")
{
"Magic number": {
"scope": "dart",
"prefix": "hwaMagicNumber",
"body": "static const $1 = $2;",
"description": "Hwa Magic Number Create"
},
"SIngleton Eager": {
"scope": "dart",
"prefix": "hwaEager",
@darioielardi
darioielardi / script.sh
Created November 6, 2019 18:09
Flutter Flavors Firebase iOS Configuration Build Script
# This script copies the right firebase configuration ( GoogleService-Info.plist file ) for the running flavor.
# It must be run as a Build Phase. It assumes three flavors: "dev", "stage" and "prod".
if [ "${CONFIGURATION}" == "Debug-prod" ] || [ "${CONFIGURATION}" == "Release-prod" ] || [ "${CONFIGURATION}" == "Profile-prod" ];
then
cp -r "${PROJECT_DIR}/Runner/Firebase/prod/GoogleService-Info.plist" "${PROJECT_DIR}/Runner/GoogleService-Info.plist"
elif [ "${CONFIGURATION}" == "Debug-stage" ] || [ "${CONFIGURATION}" == "Release-stage" ] || [ "${CONFIGURATION}" == "Profile-stage" ];
then
cp -r "${PROJECT_DIR}/Runner/Firebase/stage/GoogleService-Info.plist" "${PROJECT_DIR}/Runner/GoogleService-Info.plist"
elif [ "${CONFIGURATION}" == "Debug-dev" ] || [ "${CONFIGURATION}" == "Release-dev" ] || [ "${CONFIGURATION}" == "Profile-dev" ];
@LucasMallmann
LucasMallmann / EslintNodeJS.md
Created September 30, 2019 22:59
Eslint and Prettier configuration for NodeJS and Express projects

Eslint and prettier config for nodejs and express projects

Eslint and Libs

You need to install eslint and some other config libs.

yarn add eslint prettier eslint-config-prettier eslint-plugin-prettier -D

yarn eslint --init

.eslintrc.js

@slightfoot
slightfoot / download.dart
Created April 13, 2018 22:14
Download file in Dart/Flutter
static var httpClient = new HttpClient();
Future<File> _downloadFile(String url, String filename) async {
var request = await httpClient.getUrl(Uri.parse(url));
var response = await request.close();
var bytes = await consolidateHttpClientResponseBytes(response);
String dir = (await getApplicationDocumentsDirectory()).path;
File file = new File('$dir/$filename');
await file.writeAsBytes(bytes);
return file;
}
@lattner
lattner / TaskConcurrencyManifesto.md
Last active July 19, 2024 00:30
Swift Concurrency Manifesto