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
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": ".NET Core Launch (web)", | |
"type": "coreclr", | |
"request": "launch", |
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
class Academy { | |
final String title; | |
final String description; | |
Academy({ | |
@required this.title, | |
@required this.description, | |
}); | |
} |
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
{ | |
"restaurants": [ | |
{ | |
"id": "rqdv5juczeskfw1e867", | |
"name": "Melting Pot", | |
"description": "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet.", | |
"pictureId": "https://restaurant-api.dicoding.dev/images/medium/14", | |
"city": "Medan", | |
"rating": 4.2, | |
"menus": { |
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
[ | |
{ | |
"author": "Andina Librianty", | |
"title": "Galaxy Note 20 Ultra LTE Muncul di Geekbench - Liputan6.com", | |
"description": "Samsung sedang menyiapkan seri flagship Galaxy Note 20. Informasi tentang smartphone tersebut juga sudah banyak beredar di ranah internet.", | |
"url": "https://www.liputan6.com/tekno/read/4323034/galaxy-note-20-ultra-lte-muncul-di-geekbench", | |
"urlToImage": "https://cdn0-production-images-kly.akamaized.net/kwYrjSBiS30aiuWq0gxsB1szMC4=/0x0:0x0/673x379/filters:quality(75):strip_icc():format(jpeg):watermark(kly-media-production/assets/images/watermarks/liputan6/watermark-gray-landscape-new.png,573,20,0)/kly-media-production/medias/3113243/original/050107700_1587977893-IMG_20200427_154636-01.jpeg", | |
"publishedAt": "2020-08-05T08:30:05Z", | |
"content": "Liputan6.com, JakartaSamsung sedang menyiapkan seri flagship Galaxy Note 20. Informasi tentang smartphone tersebut juga sudah banyak beredar di ranah internet.\r\nDilansir GSM Arena, Rabu (5/8/2020), b… [+571 chars]" | |
}, |
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
Scrollbar( | |
isAlwaysShown: true, | |
controller: ScrollController(), | |
child: Container( | |
height: 150, | |
padding: const EdgeInsets.only(bottom: 16), | |
child: ListView( | |
scrollDirection: Axis.horizontal, | |
children: place.imageUrls.map((url) { | |
return Padding( |
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
class Repository { | |
String getData() { | |
return dataSource(); | |
} | |
String dataSource() { | |
return 'data from data source'; | |
} | |
} |
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 csv | |
import random | |
import sys | |
input_file = sys.argv[1] | |
total_winners = sys.argv[2] | |
with open(input_file) as file: | |
csv_reader = csv.reader(file) | |
data = list(csv_reader) | |
row_count = len(data) |