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 "remove_multiple_spaces.h" | |
#include <assert.h> | |
size_t | |
remove_multiple_spaces(char *str) { | |
assert(str != 0); | |
if (str[0] == '\0') { | |
return 0; | |
} |
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
========================================= | |
level 0 compaction: smallest snapshot: 1 | |
========================================= | |
level 1 compaction: smallest snapshot: 1 |
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
========================================= | |
level 0 compaction: smallest snapshot: 1 | |
========================================= | |
level 1 compaction: smallest snapshot: 1 |
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:meta/meta.dart'; | |
import 'package:flutter/widgets.dart'; | |
final _emptyModuleSet = new Set<Module>(); | |
typedef StateUpdater<T> = void Function(T state); | |
class Module { | |
Module({@required this.id, @required Store store, dynamic state}) : _store = store, _state = state; |
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_test/flutter_test.dart'; | |
import 'package:flutter/widgets.dart'; | |
class ConditionInherited extends InheritedWidget { | |
const ConditionInherited({this.value, Key key, Widget child}) : super(key: key, child: child); | |
final bool value; | |
static bool valueOf(BuildContext context) { | |
final ConditionInherited widget = context.inheritFromWidgetOfExactType(ConditionInherited); |