Skip to content

Instantly share code, notes, and snippets.

Avatar

Rihanna Kedir rihannaKe

View GitHub Profile
@rihannaKe
rihannaKe / spec.json
Created Sep 16, 2020
Vega-Lite spec from Wed Sep 16 2020
View spec.json
{
"$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,
View labeled_donut_vaga
{
"$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 Feb 20, 2020
flutter for web codelab signup page
View main.dart
//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(
View gist:f8568348392270939cdf1660774296b4
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.");