Skip to content

Instantly share code, notes, and snippets.

View elefantel's full-sized avatar

Mpendulo Ndlovu elefantel

  • MetaMask
  • Cape Town, WC
  • 00:47 (UTC +02:00)
View GitHub Profile
@elefantel
elefantel / CustomCell.swift
Created May 2, 2017 16:18
A custom cell with a title label, a text field and an error label
class CustomCell: UITableViewCell {
var textField: UITextField!
var titleLabel: UILabel!
var errorLabel: UILabel!
static var identifier: String {
return "\(CustomCell.self)"
}
### Keybase proof
I hereby claim:
* I am elefantel on github.
* I am mpendulo (https://keybase.io/mpendulo) on keybase.
* I have a public key ASC0g8nrAOGBgRt4OZX7PHe6FGbDzLlz7e76_u5xAor91go
To claim this, I am signing this object:
@elefantel
elefantel / Theme.swift
Last active September 22, 2021 22:06
A theming protocol for abstracting Luno fonts and colour themes
protocol Theme {
static var isLunoV3Enabled: Bool { get }
}
/**
Theme type dynamically determined based on the `isLunoV3Enabled` flag
*/
extension Theme {
static var color: ThemeColor.Type {
isLunoV3Enabled ? LunoThemeColor.self : LegacyThemeColor.self
protocol Theme {
static var isLunoV3Enabled: Bool { get }
}
/**
A theme type that is dynamically determined based on the `isLunoV3Enabled` flag
*/
extension Theme {
static var color: ThemeColor.Type {
isLunoV3Enabled ? LunoThemeColor.self : LegacyThemeColor.self
2024-03-18 00:29:27.148 12405-12405 MM_ANDROID_SDK com.metamask.dapp D SessionManager:: Session duration extended by: 7.0 days
2024-03-18 00:29:29.732 12405-12405 MM_ANDROID_SDK com.metamask.dapp D Ethereum:: connecting...
2024-03-18 00:29:29.734 12405-12405 MM_ANDROID_SDK com.metamask.dapp D SessionManager:: Session duration extended by: 7.0 days
2024-03-18 00:29:29.748 12405-12405 MM_ANDROID_SDK com.metamask.dapp D Ethereum:: Requesting ethereum accounts
2024-03-18 00:29:29.751 12405-12405 MM_ANDROID_SDK com.metamask.dapp D Ethereum:: Sending request EthereumRequest(id=1710714569751, method=eth_requestAccounts, params=null)
2024-03-18 00:29:29.751 12405-12405 MM_ANDROID_SDK com.metamask.dapp D CommunicationClient:: Queued job
2024-03-18 00:29:29.751 12405-12405 MM_ANDROID_SDK com.metamask.dapp D Communicatio