Skip to content

Instantly share code, notes, and snippets.

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
;=====================================================
format-prefix-foreground = ${colors.foreground-alt}
;
; To learn more about how to configure Polybar
; go to https://github.com/jaagr/polybar
;
; The README contains alot of information
;
;=====================================================
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return new MaterialApp(
import 'dart:async';
import 'dart:isolate';
main(args, message) async {
final cmdPort = message as SendPort;
new Timer(new Duration(seconds: 5), () {
throw 'error from isolate2';
});
;=====================================================
format-prefix-foreground = ${colors.foreground-alt}
;
; To learn more about how to configure Polybar
; go to https://github.com/jaagr/polybar
;
; The README contains alot of information
;
;=====================================================
@Pacane
Pacane / faq.md
Last active July 30, 2016 21:23

Fix Dictionary Error

Apparently servers are now limiting the amount of queries per second. So you most likely have to reduce the amount of requests per second you do by changing values of the number of SCANNING_THREADS and the THREAD_DELAY.

When launching the application change the command line arguments to something that doesn't go over 3 requests per second per account.

for example : -t 3 -td 1

@Test
public void saveUsername_revealsUsersPlace_onSuccess() {
User user = createUser(USER_ID, A_USERNAME);
givenDelegate(userApiResourceDelegate)
.succeed().withResult(null) // <-- This is because the result has type Void
.when().saveUser(eq(USER_ID), same(user));
PlaceRequest placeRequestToGoAfterSave = new PlaceRequest.Builder()
.nameToken(NameTokens.USERS).build();
presenter.saveUser(user);
@RunWith(JukitoRunner.class)
public class AssistedInjectTest {
public static class Module extends JukitoModule {
@Override
protected void configureTest() {
install(new GinFactoryModuleBuilder().build(MyFactory.class));
}
}
@Inject
public static class Module extends JukitoModule {
@Override
protected void configureTest() {
requestStaticInjection(RestCallbackImpl.class);
}
}
public static class Module extends JukitoModule {
@Override
protected void configureTest() {
bind(AutobindDisable.class).toInstance(new AutobindDisable(true));
}
}