typ-ahmedsleem / islamic-toolkit-kt Goto Github PK
View Code? Open in Web Editor NEWFree, Open-Source toolkit for most Islamic APIs. Written in pure Kotlin
License: MIT License
Free, Open-Source toolkit for most Islamic APIs. Written in pure Kotlin
License: MIT License
Module: core, praytimes, hijri
Description: Make more support for Functional Prorgamming Style
Request details:
The project needs more support for functional programming style that Kotlin provides
Example:
OOP style
val config = PrayerTimesCalculator.Config(
calcMethod = CalculationMethod.EGYPT
asrMethod = AsrMethod.SHAFII
offsets = PrayerTimesOffsets(
fajr = 10
maghrib = 2
)
)
Functional Programming style
val config = prayerTimesCalcConfig (
calcMethod = CalculationMethod.EGYPT
asrMethod = AsrMethod.SHAFII
offsets = prayerTimesOffsets {
fajr = 10
maghrib = 2
}
}
Module: core
Description: Create a json file placed in resources that contains large set of locations grouped by country code
Request details:
{
"EG": {
"name": "Egypt",
"cities": {
"Cairo": {
"lat": 30.125154578,
"lng": 31.264545548,
"tz": 2.0
},
}
},
}
Create Qibla module
Module: core
Sub-module: location
Description: Add more cities to PopularLocations
Request details:
Add more popular cities and locations usually used by users such as: Makkah
Module: prayertimes
Description: PrayerTimes.current returns same value as PrayerTimes.next
Bug details:
If we have a piece of code like:
val prays = PrayerTimes.getTodayPrays(loc, config)
val currentPray = prays.current
val nextPray = prays.next
// Let's assume that actual current pray is Asr and next pray is Maghrib
print(currentPray.type) // prints: MAGHRIB
print(nextPray.type) // prints: MAGHRIB
it prints the next pray not the current pray as I performed a test but found that both field getters return the same pray
Module: core
Description: Remove countries subcalsses and add more cities in
PopularLocaitons
Request details:
I assume getting Cairo location from PopularLocations
so, instead of calling it this way:
val cairo = PopularLocations.Egypt.CAIRO
it will be this way for more smooth calling:
val cairo = PopularLocations.Cairo
Help wanted here
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.