Skip to content

Instantly share code, notes, and snippets.


Edward Njoroge codingedward

View GitHub Profile
codingedward / countries.js
Last active Sep 9, 2020
ISO 3166-1 alpha-3 codes
View countries.js
const countries = {
ABW: "Aruba",
AFG: "Afghanistan",
AGO: "Angola",
AIA: "Anguilla",
ALA: "Åland Islands",
ALB: "Albania",
AND: "Andorra",
ARE: "United Arab Emirates",
ARG: "Argentina",
codingedward / EmojiRichText.dart
Created Jul 22, 2019
Using a custom emoji font to solve emoji compatibility issues on flutter.
View EmojiRichText.dart
import 'package:flutter/material.dart';
class EmojiRichText extends StatelessWidget {
const EmojiRichText({
Key key,
@required this.text,
this.textAlign = TextAlign.start,
this.softWrap = true,
this.overflow = TextOverflow.clip,
this.textScaleFactor = 1.0,
""" File location: authors/apps/authentication/
Description: tests that a user cannot login with an invalid email address format.
from django.test import TestCase, Client
from .models import UserManager
class AuthenticationTest(TestCase):
""" Tests authentication functionality of the application such as registration,
logging in, log out and refreshing of JWT tokens.