run in terminal (project dir):
yarn add [email protected] jquery popper.js
file:
app/assets/stylesheets/application.css
rename to:
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Debug Local File", | |
| "type": "Ruby", | |
| "request": "launch", | |
| "cwd": "${workspaceRoot}", | |
| "program": "${file}" | |
| } |
run in terminal (project dir):
yarn add [email protected] jquery popper.js
file:
app/assets/stylesheets/application.css
rename to:
| import 'package:flutter/material.dart'; | |
| void main() => runApp(const MyApp()); | |
| class MyApp extends StatelessWidget { | |
| const MyApp({Key? key}) : super(key: key); | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( |
echo "# myproject" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin [email protected]:pjbelo/myproject.git
git push -u origin main
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <root> | |
| <movie> | |
| <id>0111161</id> | |
| <rank>1</rank> | |
| <title>The Shawshank Redemption</title> | |
| <fullTitle>The Shawshank Redemption (1994)</fullTitle> | |
| <year>1994</year> | |
| <image>https://m.media-amazon.com/images/M/MV5BMDFkYTc0MGEtZmNhMC00ZDIzLWFmNTEtODM1ZmRlYWMwMWFmXkEyXkFqcGdeQXVyMTMxODk2OTU@._V1_UX128_CR0,3,128,176_AL_.jpg</image> | |
| <crew>Frank Darabont (dir.), Tim Robbins, Morgan Freeman</crew> |
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <root> | |
| <movie> | |
| <id>0111161</id> | |
| <rank>1</rank> | |
| <title>The Shawshank Redemption</title> | |
| <fullTitle>The Shawshank Redemption (1994)</fullTitle> | |
| <year>1994</year> | |
| <image>https://m.media-amazon.com/images/M/MV5BMDFkYTc0MGEtZmNhMC00ZDIzLWFmNTEtODM1ZmRlYWMwMWFmXkEyXkFqcGdeQXVyMTMxODk2OTU@._V1_UX128_CR0,3,128,176_AL_.jpg</image> | |
| <crew>Frank Darabont (dir.), Tim Robbins, Morgan Freeman</crew> |
| const Map<int, String> weekdayName = {1: "Monday", 2: "Tuesday", 3: "Wednesday", 4: "Thursday", 5: "Friday", 6: "Saturday", 7: "Sunday"}; | |
| void main() { | |
| print(weekdayName[DateTime.now().weekday]); | |
| } |
| extension DateTimeExtension on DateTime { | |
| String? weekdayName() { | |
| const Map<int, String> weekdayName = {1: "Monday", 2: "Tuesday", 3: "Wednesday", 4: "Thursday", 5: "Friday", 6: "Saturday", 7: "Sunday"}; | |
| return weekdayName[weekday]; | |
| } | |
| } | |
| void main() { | |
| print(DateTime.now().weekdayName()); | |
| } |
| // Flutter - Horizontal AND Vertical scroll demo | |
| // drag with mouse to scroll the 1200x1200 container inside the 300x300 container | |
| // Live demo at https://dartpad.dev/?id=4ec341a672ccb96470bb6fc09b20305d | |
| import 'package:flutter/material.dart'; | |
| import 'dart:ui'; | |
| void main() { | |
| runApp(MyApp()); | |
| } |