Skip to content

Instantly share code, notes, and snippets.

View charafau's full-sized avatar
🐕

Rafal Wachol charafau

🐕
View GitHub Profile
@charafau
charafau / flutter linux debug.md
Created April 12, 2021 00:40
Flutter plugin vscode linux development with debugging
  1. Create example plugin project flutter create --org com.example --platforms=linux myapp
  2. From myapp/example run flutter run and quit the app
  3. Install vscode
  4. Install flutter plugin
  5. Install MS C++ plugin https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools
  6. Switch to Insider channel for new features
  7. When opening project VS code should ask you if you want to configure CMake project - answerr YES and click Locate cmake file now this is important choose - myapp/example/linux/CMakeLists.txt NOT the one from myapp/linux
  8. You will probably have to relaunch vscode
  9. inside myapp/ folder create .vscode (notice the dot) folder
@charafau
charafau / CMakeLists.txt
Created October 21, 2020 02:53
fedora glfw and glew cmake project file
cmake_minimum_required(VERSION 3.0.0)
project(projectname VERSION 0.1.0)
include(CTest)
enable_testing()
find_package(OpenGL REQUIRED)
find_package(PkgConfig REQUIRED)
pkg_search_module(GLFW REQUIRED glfw3)
find_package(GLEW REQUIRED)
@charafau
charafau / analysis_options.yaml
Created October 22, 2019 10:38
Useful flutter list rules
# https://www.dartlang.org/guides/language/analysis-options
include: package:pedantic/analysis_options.yaml
analyzer:
strong-mode:
implicit-dynamic: false
errors:
# treat missing required parameters as a warning (not a hint)
missing_required_param: warning
# treat missing returns as a warning (not a hint)
@charafau
charafau / RxIdlingResource.java
Created February 22, 2017 09:19 — forked from aahlenst/RxIdlingResource.java
IdlingResource that makes Espresso 2 wait until all RxJava 2 tasks have finished
/*
* The MIT License
*
* Copyright (c) 2016 Andreas Ahlenstorf
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is