duboviy / dist Goto Github PK
View Code? Open in Web Editor NEW:world_map: Python/C API extension module that computes distance between two coordinates on the world map
License: MIT License
:world_map: Python/C API extension module that computes distance between two coordinates on the world map
License: MIT License
Hi there Duboviy
I just realized the M_PI is actually binding to the #include made within dist.c
This is a tight coupling of the dist.h with the dist.c
I feel, I shall include the math header inside the dist.h instead.
Line 8 in 965cffe
Hey Duboviy,
I find your projects awesome !
Would like to participate a bit.
Why using those magic numbers here ? Seems to me that we can make that code more generic right ?
Line 28 in dc41696
Hi Duboviy,
Amazing work here.
I have one question though... wouldn't be more interesting to use programmation by contract and protect the function in case the given pointers aren't valid ?
I mean, using something like
assert(self != NULL && args != NULL);
Line 32 in dc41696
Could you please consider to drop python 2 support (and six usage).
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.