Skip to content

Instantly share code, notes, and snippets.

@loic-sharma
loic-sharma / tutorial.md
Last active January 27, 2025 18:17
How to debug the Flutter engine on Windows

How to debug the Flutter engine on Windows

Let's say your app is misbehaving because of a Flutter engine bug. Let's debug that!

Use Visual Studio to run your app

Let's open your app using Visual Studio:

  1. Run flutter build windows to ensure Flutter has generated a Visual Studio project for your app.
  2. Open ./build/windows/ALL_BUILD.vcxproj in Visual Studio. This project builds the native entry point for your Flutter app.
@cristianadam
cristianadam / setup_android.cmake
Last active July 21, 2022 12:55
CMake script to download OpenJDK and Android Command Line Tools. Execute with: cmake -P setup_android.cmake
# CMake script to download OpenJDK and Android Command Line Tools.
# Execute with: cmake -P setup_android.cmake
# Tested with Qt 6.3.1 and Qt Creator 8.0
set(JDK_VERSION "11.0.9.1+1")
set(ANDROID_CMDTOOLS_VERSION "8092744")
set(ANDROID_PLATFORM "android-31")
set(BUILD_TOOLS "31.0.0")
@ltjax
ltjax / scoped_flags.hpp
Created January 13, 2020 17:51
scoped_flags for c++11 scoped enumerations
#pragma once
template <class T>
class scoped_flags
{
public:
using value_type = std::underlying_type_t<T>;
scoped_flags(std::initializer_list<T> flag_list)
: value_(combine_(flag_list))
@chitchcock
chitchcock / 20111011_SteveYeggeGooglePlatformRant.md
Created October 12, 2011 15:53
Stevey's Google Platforms Rant

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real