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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import collections | |
from runner.koan import * | |
# Greed is a dice game where you roll up to five dice to accumulate | |
# points. The following "score" function will be used calculate the | |
# score of a single roll of the dice. |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 RandomPhoto extends StatelessWidget { | |
final String topic; | |
Map<int, Uri> visitedUrls; | |
RandomPhoto({Key key, this.topic, this.visitedUrls}) : super(key: key); | |
Future<Response> fetchPhoto() async { | |
String url = 'https://source.unsplash.com/random/?$topic'; | |
return Dio().get(url, options: Options(responseType: ResponseType.bytes)); | |
} |
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 'dart:collection'; | |
import 'package:flutter/material.dart'; | |
void main() => runApp(new MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return new MaterialApp( |
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
{ | |
"@context": "http://schema.org", | |
"@type": "Event", | |
"name": "Miami Heat at Philadelphia 76ers - Game 3 (Home Game 1)", | |
"location": { | |
"@type": "Place", | |
"address": { | |
"@type": "PostalAddress", | |
"addressLocality": "Philadelphia", | |
"addressRegion": "PA" |
NewerOlder