I hereby claim:
- I am YumNumm on github.
- I am yumnumm (https://keybase.io/yumnumm) on keybase.
- I have a public key whose fingerprint is E74C D2A9 6E0B DAEB E4FF BFEE 98D7 1D27 EC36 41DC
To claim this, I am signing this object:
| export default { | |
| async email(message, env, ctx) { | |
| await message.forward("[email protected]"); | |
| const SLACK_WEBHOOK_URL = | |
| "https://hooks.slack.com/services/[credential]"; | |
| const data = { | |
| username: message.from, | |
| channel: "#mail", | |
| text: `<!channel> ${message.from}からのメール`, |
I hereby claim:
To claim this, I am signing this object:
| import 'package:flutter/material.dart'; | |
| void main() => runApp(const App()); | |
| class App extends StatelessWidget { | |
| const App({super.key}); | |
| @override | |
| Widget build(BuildContext context) => MaterialApp( | |
| title: 'InteractiveViewer Demo', | |
| home: const HomePage(), |
パターンマッチングを使いたくなって 夜しか眠れなくなってしまったので 遊びがてら書いてみました
| { | |
| "Freezed class with import": { | |
| "prefix": "frzclass", | |
| "description": "Create a Freezed class", | |
| "body": [ | |
| "import 'package:freezed_annotation/freezed_annotation.dart';", | |
| "part '${TM_FILENAME_BASE}.freezed.dart';", | |
| "part '${TM_FILENAME_BASE}.g.dart';", | |
| "", | |
| "@freezed", |
| import requests | |
| import os | |
| import datetime | |
| def pga(now) -> str: | |
| u1 = now.strftime('%Y%m%d') | |
| u2 = now.strftime('%Y%m%d%H%M%S') | |
| return "http://www.kmoni.bosai.go.jp/data/map_img/RealTimeImg/acmap_s/"+ str(u1) +"/" + str(u2) + ".acmap_s.gif" | |
| def shindo(now) -> str: |
| eval(s=(%w(require | |
| 'uri';require'net/http';requi | |
| re"json";n='';firstM="東京の明日の天 気は";;e | |
| ndM="です!";;res=JSON.parse(Net::HTT P.get_respo | |
| nse(URI('https://www.jma.go.jp/bosai/forecast/data/for | |
| ecast/010000.json')).body)[8]["srf"]["timeSeries"][0]["are | |
| as"]["weathers"][0];;if(res.include?"晴")then;;res="\e[44;97m"+ | |
| res+"☀️"+"\e[m";;elsif(res.include?"曇")then;;res="\e[44;97m"+res+" | |
| ☁"+"\e[m";;elsif(res.include?"雨")then;;res="\e[44;97m#{firstM | |
| }#{res}"+"☔"+"#{endM}\e[ m";;;end;puts("n='#{res}'\n" |
| import 'package:html/parser.dart' show parse; | |
| import 'package:http/http.dart' as http; | |
| import 'package:intl/intl.dart'; | |
| Future<void> main(List<String> args) async { | |
| const String url = "https://typhoon.yahoo.co.jp/weather/jp/earthquake/list/"; | |
| final target = Uri.parse(url); | |
| final res = await http.get(target); | |
| if (res.statusCode != 200) { |
| from http.server import BaseHTTPRequestHandler, HTTPServer | |
| from urllib.parse import parse_qs, urlparse | |
| import firebase_admin | |
| from firebase_admin import credentials | |
| from firebase_admin import auth | |
| from firebase_admin import messaging | |
| import tweepy | |
| import time | |
| import reader |
| import 'dart:io'; | |
| final Map<String, String> light_map = { | |
| "on": | |
| "0x01,0x58,0x00,0xab,0x00,0x16,0x00,0x17,0x00,0x15,0x00,0x42,0x00,0x16,0x00,0x17,0x00,0x15,0x00,0x17,0x00,0x16,0x00,0x17,0x00,0x16,0x00,0x17,0x00,0x15,0x00,0x17,0x00,0x16,0x00,0x42,0x00,0x15,0x00,0x42,0x00,0x16,0x00,0x16,0x00,0x16,0x00,0x42,0x00,0x15,0x00,0x42,0x00,0x16,0x00,0x17,0x00,0x15,0x00,0x42,0x00,0x16,0x00,0x41,0x00,0x16,0x00,0x17,0x00,0x16,0x00,0x41,0x00,0x16,0x00,0x41,0x00,0x16,0x00,0x17,0x00,0x16,0x00,0x41,0x00,0x16,0x00,0x17,0x00,0x16,0x00,0x41,0x00,0x16,0x00,0x17,0x00,0x16,0x00,0x41,0x00,0x16,0x00,0x17,0x00,0x16,0x00,0x16,0x00,0x16,0x00,0x42,0x00,0x15,0x00,0x17,0x00,0x16,0x00,0x42,0x00,0x15,0x00,0x17,0x00,0x16,0x00,0x41,0x00,0x16,0x00,0x17,0x00,0x16,0x06,0x1c", | |
| "off": | |
| "0x01,0x58,0x00,0xab,0x00,0x16,0x00,0x17,0x00,0x15,0x00,0x42,0x00,0x16,0x00,0x17,0x00,0x15,0x00,0x17,0x00,0x16,0x00,0x17,0x00,0x16,0x00,0x17,0x00,0x15,0x00,0x17,0x00,0x16,0x00,0x42,0x00,0x15,0x00,0x42,0x00,0x16,0x00,0x16,0x00,0x16,0x00,0x42,0x00,0x15,0x |