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
abstract class A { | |
void doSomething({required int a, bool b}); | |
} | |
void doSomething({required int a, bool b}) => print('Hello'); |
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/material.dart'; | |
import 'package:flutter_bloc/flutter_bloc.dart'; | |
import 'package:provider/provider.dart'; | |
class SimpleCounter extends Cubit<int> { | |
SimpleCounter(super.initialState); | |
void increment() => emit(state + 1); | |
void decrement() => emit(state - 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 XMonad | |
import XMonad.Hooks.DynamicLog -- Needed for polybar | |
import XMonad.Hooks.ManageDocks -- Needed for xmobar | |
import XMonad.Layout.NoBorders -- No borders fullscreen | |
import XMonad.Hooks.ManageHelpers -- Needed for fullscreen | |
import XMonad.Util.Run(spawnPipe) | |
import XMonad.Util.EZConfig -- Adding own keybinds | |
import System.IO -- Needed for Polybar | |
import XMonad.Hooks.SetWMName -- Bug with Java/Swing apps | |
import XMonad.Actions.SpawnOn -- Assign apps to workspaces |
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
Crash when compiling null, | |
at character offset null: | |
org-dartlang-app:///packages/braver_patient/models.dart: Internal problem: Unhandled Null in finalizeExports. | |
#0 internalProblem (package:front_end/src/fasta/problems.dart:52:5) | |
#1 unhandled (package:front_end/src/fasta/problems.dart:71:10) | |
#2 DillLibraryBuilder.finalizeExports (package:front_end/src/fasta/dill/dill_library_builder.dart:394:11) | |
#3 DillLibraryBuilder.ensureLoaded (package:front_end/src/fasta/dill/dill_library_builder.dart:127:7) | |
#4 LazyLibraryScope.ensureScope (package:front_end/src/fasta/dill/dill_library_builder.dart:61:21) | |
#5 LazyScope._local (package:front_end/src/fasta/scope.dart:645:5) | |
#6 Scope.forEach (package:front_end/src/fasta/scope.dart:535:5) |
This file has been truncated, but you can view the full file.
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
-- Logs begin at Thu 2019-12-12 15:49:41 EST, end at Tue 2020-01-21 16:33:43 EST. -- | |
Jan 21 11:47:30 arch kernel: Linux version 5.4.12-arch1-1 (linux@archlinux) (gcc version 9.2.0 (GCC)) #1 SMP PREEMPT Tue, 14 Jan 2020 21:44:31 +0000 | |
Jan 21 11:47:30 arch kernel: Command line: initrd=\initramfs-linux.img amdgpu.ppfeaturemask=0xfffd7fff root=PARTUUID=220e2041-9b5f-4316-9ced-8ff85a4d5759 rw | |
Jan 21 11:47:30 arch kernel: KERNEL supported cpus: | |
Jan 21 11:47:30 arch kernel: Intel GenuineIntel | |
Jan 21 11:47:30 arch kernel: AMD AuthenticAMD | |
Jan 21 11:47:30 arch kernel: Hygon HygonGenuine | |
Jan 21 11:47:30 arch kernel: Centaur CentaurHauls | |
Jan 21 11:47:30 arch kernel: zhaoxin Shanghai |
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
void main() { | |
Map<String, dynamic> a() { | |
return {}; | |
} | |
Map<String, dynamic> b() { | |
var a = {}; | |
return a; | |
} | |
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
class Bob { | |
final EventBus bus; | |
Bob() { | |
this.bus = new EventBus(); | |
} | |
void faireQuelqueChose() { | |
bus.utiliserBus(); | |
} | |
} |
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
class Bob { | |
final EventBus bus; | |
Bob(EventBus bus) { | |
this.bus = bus; | |
} | |
void faireQuelqueChose() { | |
bus.utiliserBus(); | |
} | |
} |
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
void thing(Map<String, dynamic> json) { | |
// Do something with it. | |
} | |
void main() { | |
var a = {}; | |
thing(a); | |
print('Hey!'); |
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
!! special | |
*.foreground: #C5C8C6 | |
*.background: #1E1E1E | |
*.cursorColor: #ffffff | |
! black | |
*.color0: #000000 | |
*.color8: #4C4C4C | |
! red |
NewerOlder