TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: isEven API – tell if a number is even SaaS

25 点作者 tannercollin大约 5 年前

11 条评论

ecaron大约 5 年前
This would be much easier to adopt if there was an NPM package or Rubygem to simplify our company's integration with their platform.
nivertech大约 5 年前
I&#x27;d rather pay with with utility isEvenCoins, rather than with USD.<p>Also, our entire stack is GraphQL-based, so we must have a GraphQL API according to this schema:<p><pre><code> schema { query: Query mutation: Mutation subscription: Subscription } type Query { balance: Int! isEven(input: isEvenInput!): isEvenPayload! } type Mutation { depositCoins(amount: Int!): DepositPayload! withdrawCoins(amount: Int!): WithdrawPayload! } type Subscription { coinsDeposited: Int! coinsWithdrawn: Int! coinsSpent: Int! } input isEvenInput { number: Int! gas: Int! } type isEvenPayload { result: bool balanceLeft: Int! isError: bool! errMsg: String } type DepositPayload { newBalance: Int! isError: bool! errMsg: String } type WithdrawPayload { newBalance: Int! isError: bool! errMsg: String }</code></pre>
评论 #22531958 未加载
LukeBMM大约 5 年前
I think you need a dashboard with animated graphs (preferably in bright colors on a dark background with thin text that has just enough color contrast to indicate that there&#x27;s text there at all) to help track KPIs. With push notifications if even&#x2F;odd distributions veer outside of a user-defined threshold, which is cunningly defined as an index value with a more impressive sounding name and handy three letter abbreviation.<p>That should really help distinguish yourself in this hotly contested market space.
评论 #22507824 未加载
tannercollin大约 5 年前
I got tired of seeing programmers struggle to tell if a given number is even, so I built this solution.<p>You can see an example here: <a href="https:&#x2F;&#x2F;github.com&#x2F;BraydonKains&#x2F;is-even&#x2F;blob&#x2F;master&#x2F;python.md#iseven-api" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;BraydonKains&#x2F;is-even&#x2F;blob&#x2F;master&#x2F;python.m...</a><p>I&#x27;ll be around for questions!
评论 #22512177 未加载
gitgud大约 5 年前
It&#x27;s scary how convincing this is, kind of like an SNL skit which is too real...
ultrarunner大约 5 年前
It appears that the API is unversioned, which concerns me as my company is very future-looking and will need to support numbers as they modernize. How will you handle version migrations?
Dicey84大约 5 年前
This is much more practical than learning maths.<p>Hopefully, it has support for imperial numbers one day
jitendrakkkk大约 5 年前
I am fine as long as the ads in api response are not personalized.
throw03172019大约 5 年前
Joke or not. This will look great on a resume. :)
enos_feedler大约 5 年前
productization of everything
planetzero大约 5 年前
I will be looking forward to your next project: isBool