Skip to content

Instantly share code, notes, and snippets.

View mobileappconsultant's full-sized avatar

Arkangel mobileappconsultant

  • Mobile Paradigm
View GitHub Profile
@mobileappconsultant
mobileappconsultant / brute_force.py
Last active January 29, 2019 10:47
Simple demo of library that arranges all characters of a string in max number of possible ways
import itertools
count =0;
stringInput = input(("Enter a string: "))
for p in itertools.permutations(stringInput):
count = count +1
print("{},{}".format(count,p))
@mobileappconsultant
mobileappconsultant / MVI problem
Created December 2, 2020 09:19
This is an MVI implementation that has a bug. Onclick in the from the MVIFragment isn't firing off any action.
sealed class MoneyBoxIntent : MviIntent {
data class LoginIntent(val loginRequestBody: LoginRequestBody) : MoneyBoxIntent()
object GetAllInvestorProductsIntent : MoneyBoxIntent()
object MakeOneOffPaymentIntent : MoneyBoxIntent()
}
****************************************************************************************************************************************
package com.android.moneybox.presentation
import androidx.lifecycle.ViewModel
import com.android.moneybox.domain.mvi.moneyboxactions.MoneyBoxAction
//
// RecipeListScreen.swift
// FoodToForkApple
//
// Created by samson akisanya on 19/01/2023.
// Copyright © 2023 orgName. All rights reserved.
//
import SwiftUI
import shared