Skip to content

Instantly share code, notes, and snippets.

import time
import numpy as np
import matplotlib.pylab as plt
from keras.datasets import fashion_mnist
from keras.models import Sequential, Model, load_model
from keras.layers import Dense, Dropout, Flatten, Conv2D, MaxPooling2D
from keras.optimizers import Adam
from keras.callbacks import Callback, CSVLogger
from keras.utils import to_categorical, plot_model
@snova301
snova301 / main.dart
Created June 2, 2019 07:25
flutter get started, part1 step2
import 'package:flutter/material.dart';
import 'package:english_words/english_words.dart'; // 追加
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
final wordPair = WordPair.random();
return MaterialApp(
@snova301
snova301 / main.dart
Created June 2, 2019 07:27
flutter get started, part1 step3
import 'package:flutter/material.dart';
import 'package:english_words/english_words.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
// final wordPair = WordPair.random(); // 削除
return MaterialApp(
@snova301
snova301 / main.dart
Created June 2, 2019 07:33
flutter get started, part1 step4
import 'package:flutter/material.dart';
import 'package:english_words/english_words.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
// title: 'Welcome to Flutter', // 削除
@snova301
snova301 / main.dart
Created June 8, 2019 07:27
Flutter official tutorial, Layout tutorial
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
Widget titleSection = Container(
padding: const EdgeInsets.all(32),
child: Row(
@snova301
snova301 / main.dart
Created June 15, 2019 03:05
flutter tutorial, Adding interactivity to your Flutter app
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
Widget titleSection = Container(
padding: const EdgeInsets.all(32),
child: Row(
@snova301
snova301 / main.dart
Created June 22, 2019 06:24
MemoApp with Flutter
import 'dart:io';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Memo with Flutter',
@snova301
snova301 / main.dart
Last active July 20, 2019 10:04
flutter_stopwatch
import 'dart:async';
import "package:intl/intl.dart";
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@snova301
snova301 / main.dart
Created July 28, 2019 09:08
ToDoList app
import 'package:flutter/material.dart';
void main() => runApp(
MaterialApp(home: MyApp()),
);
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@snova301
snova301 / get_law.py
Created August 18, 2019 10:36
日本の電気関係の法令を取得するプログラム
import requests
import xml.etree.ElementTree as ET
import os
def mk_elec_lawlist():
elec_lawname = [
r'電気事業法',
r'電気事業法施行令',
r'電気事業法施行規則',
r'電気設備に関する技術基準を定める省令',