Skip to content

Instantly share code, notes, and snippets.

View cristianvasquez's full-sized avatar
♠️

Cristian Vasquez cristianvasquez

♠️
View GitHub Profile
#!/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.
@cristianvasquez
cristianvasquez / using-tensorboard-in-google-colab.ipynb
Created June 3, 2020 00:49
Using tensorboard in google colab.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cristianvasquez
cristianvasquez / home_screen.dart
Last active January 7, 2020 16:59
Random Image
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));
}
@cristianvasquez
cristianvasquez / kanban_test.dart
Created December 24, 2019 11:53
Example of a drag and drop Kanban in Flutter
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(
{
"@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"