OSの情報を表示する
書式:uname [オプション]
- -m・・・プロセッサのハードウェア名を表示
- -n・・・ネットワークのホスト名を表示
文字列を画面に表示する
書式:echo [オプション] 文字列
var mediaJSON = { "categories" : [ { "name" : "Movies", | |
"videos" : [ | |
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ], | |
"subtitle" : "By Blender Foundation", | |
"thumb" : "images/BigBuckBunny.jpg", | |
"title" : "Big Buck Bunny" | |
}, | |
{ "description" : "The first Blender Open Movie from 2006", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ], |
class JapanesePhoneNumberFormatter extends TextInputFormatter { | |
@override | |
TextEditingValue formatEditUpdate( | |
TextEditingValue oldValue, TextEditingValue newValue) { | |
final oldValueLength = oldValue.text.length; | |
final newValueLength = newValue.text.length; | |
final isStartZero = newValue.text.startsWith('0'); | |
if (newValueLength > 0 && newValueLength > oldValueLength) { | |
final maxLengthIncludeHyphen = isStartZero ? 13 : 12; |
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>カレーのレシピ</title> | |
</head> | |
<body> | |
<article> | |
<h1>カレーのレシピ</h1> | |
<p> |
*.chopper.dart linguist-generated=true | |
*.freezed.dart linguist-generated=true | |
*.g.dart linguist-generated=true | |
*.gen.dart linguist-generated=true | |
*.gr.dart linguist-generated=true |
const _fullLengthCode = 65248; | |
extension StringExtension on String { | |
String toHalfWidthNumber() { | |
final regex = RegExp(r'^[0-9]+$'); | |
final string = runes.map<String>((rune) { | |
final char = String.fromCharCode(rune); | |
return regex.hasMatch(char) | |
? String.fromCharCode(rune - _fullLengthCode) | |
: char; |
# ==================== Emojis & Prefix ==================== | |
# ✨ feat: 新しい機能 | |
# 🐛 fix: バグの修正 | |
# 📚 docs: ドキュメントのみの変更 | |
# 🖋 style: 空白、フォーマット、セミコロン追加など | |
# ♻️ refactor: 仕様に影響がないコード改善(リファクタ) | |
# 🐎 perf: パフォーマンス向上関連 | |
# 🚨 test: テスト関連 |