- エドワード・モース「西洋と交流するようになってから,日本はどんどん変わっている」
- 『大日本』ヘンリー・ダイアー
- 当時の外国人から見た日本の記録は重要な証言
- 江戸末期,黒船来航以来日本の記録がされるようになった
- 黒船からは蒸気機関車など,技術の進歩を示すものが持ち込まれた
- 佐賀藩で蒸気機関車の雛形が作られた
- 雛形は動力部まで設計されたものだった
- ペリーは日本人の器用さに気づいていた(報告書にも書いている)
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
// | |
// ImageMeter.cs | |
// Created by Alexey Kinev on 9 May 2015. | |
// | |
// No Rights Reserved | |
// http://creativecommons.org/publicdomain/zero/1.0/ | |
// | |
// Get image size by name in Xamarin.Forms for iOS and Android platforms. | |
// | |
using System; |
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_web/material.dart'; | |
import 'package:flutter_web_ui/ui.dart' as ui; | |
import 'dart:math' as math; | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'ドゥルルルルルル', | |
home: Scaffold( |
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'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter Demo', | |
home: HomePage(), |
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() { | |
final n = 5; | |
final a = List.generate(30, (i) => i); | |
var answer = List.generate(30, (i) => i); | |
var b = a.map((i) => i % n).toList(); | |
var bDouble = a.map((i) => i % (n * 2)).toList(); | |
for (int i = 0; i < 30; i++) { | |
answer[i] = (b[i] * 2 - bDouble[i]).abs(); | |
} |
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
precision mediump float; | |
uniform float time; | |
uniform vec2 resolution; | |
vec3 gradient(vec2 p) { | |
return vec3(0.5, abs(clamp(p.y, -0.8, 0.8)) , 0.7); | |
} | |
void main(void) { |
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'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |
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
mixin CancelableNotify on ChangeNotifier { | |
bool _mounted = true; | |
@override | |
void notifyListeners() { | |
if (_mounted) super.notifyListeners(); | |
} | |
@override | |
void dispose() { |
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 'dart:math' as math; | |
class LoadingText extends StatefulWidget { | |
const LoadingText({Key? key, required this.text}) : super(key: key); | |
final String text; | |
@override | |
_LoadingTextState createState() => _LoadingTextState(); |
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 'dart:ui' as ui; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
class MouseEffect extends StatelessWidget { | |
const MouseEffect({Key? key}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { |
OlderNewer