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
#!/bin/bash | |
# | |
# rotate_desktop.sh | |
# | |
# Rotates modern Linux desktop screen and input devices to match. Handy for | |
# convertible notebooks. Call this script from panel launchers, keyboard | |
# shortcuts, or touch gesture bindings (xSwipe, touchegg, etc.). | |
# | |
# Using transformation matrix bits taken from: | |
# https://wiki.ubuntu.com/X/InputCoordinateTransformation |
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
func TestRedis(t *testing.T) { | |
s, _ := testutil.PrepareTestRedis() | |
for i := 0; i < 10000; i++ { | |
s.Set("key"+strconv.Itoa(i), "hoge"+strconv.Itoa(i)) | |
} | |
client := redis.NewClient(&redis.Options{Addr: s.Addr()}) | |
// 普通にループ | |
result := map[string]string{} | |
for i := 0; i < 10000; i++ { |
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'; | |
class Bubble extends StatelessWidget { | |
Bubble({this.message, this.time, this.delivered, this.isMe}); | |
final String message, time; | |
final delivered, isMe; | |
@override | |
Widget build(BuildContext context) { |