Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View rihannaKe's full-sized avatar

Rihanna Kedir rihannaKe

View GitHub Profile
@rihannaKe
rihannaKe / spec.json
Created September 16, 2020 14:16
Vega-Lite spec from Wed Sep 16 2020
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"title": {
"text": "Market Access",
"dy": -12
},
"description": "Sample pie chart",
"background": "#FFF",
"width": 300,
"height": 300,
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"title": {
"text": "Market Access",
"dy": -12
},
"description": "Sample pie chart",
"background": "#FFF",
"width": 300,
"height": 300,
@rihannaKe
rihannaKe / main.dart
Created February 20, 2020 15:35
flutter for web codelab signup page
//flutter for web codelab signup page
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
var balance = 350;
var checkBalance = true;
var isActive = false;
if(checkBalance === true){
if(isActive === true && balance > 0){
console.log("Your balance is $"+ balance +".");
} else {
if(isActive === false){
console.log("Your account is no longer active.");