<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[在Github上发现了一个5神教]]></title><description><![CDATA[<p dir="auto">今天在逛Github 的时候发现了一个<a href="https://github.com/jackdcrawford/five" target="_blank" rel="noopener noreferrer">5神教</a>。看了之后笑死我了。这是一个专门给5写的一个库。里面包含了各种写给5用的函数库。</p>
<pre><code class="language-javascript">// 加
five() + five(); // 10
// 减
five() - five(); // 0
// 乘
five() * five();
// 除
five() / five();
</code></pre>
<p dir="auto">还有一些格式转化的函数</p>
<pre><code class="language-javascript">five.upHigh() // ⁵
five.downLow() // ₅
five.tooSlow() // 5, with a ~500 millisecond delay
five.roman() // V
five.morseCode() // .....
five.negative() // -5
five.loud() // FIVE
five.loud('piglatin') // IVEFAY
five.smooth() // S
five.mdFive() // 30056e1cab7a61d256fc8edd970d14f5
</code></pre>
<p dir="auto">看到这个就忍不住想问，这个库到底是干什么的？<br />
这个库就是写着玩的，实际上什么都干不了。</p>
<p dir="auto">看到这个项目的issue的时候，更是好笑了。</p>
<p dir="auto">比如说<a href="https://github.com/jackdcrawford/five/issues/73" target="_blank" rel="noopener noreferrer">这个</a></p>
<p dir="auto"><strong>petty commented on Jul 18, 2014</strong><br />
On the one hand … this is great, quite literally.</p>
<p dir="auto">But after searching Github, I’ve been unable to find the rest of the set. For example, what about three()? and what about constants, like pi()?</p>
<p dir="auto">I understand that making all numbers overly complicated could take time, so what’s the ETA?</p>
<p dir="auto"><strong>Joezo commented on Jul 18, 2014</strong><br />
The beauty of five is that you can make any number you want.</p>
<p dir="auto">Want three()? Well that’s just<br />
(five() * five() - five() - five()) / five() or (five() + five() + five())/five()</p>
<p dir="auto">Want six()? five() + (five()/five())</p>
<p dir="auto">Want zero()? five() - five()<br />
<img src="http://community.bwbot.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f389.png?v=9q7h1n1nrom" class="not-responsive emoji emoji-android emoji--tada" title=":tada:" alt="🎉" /> 1</p>
<p dir="auto"><strong>dufferzafar commented on Jul 18, 2014</strong><br />
@Joezo You left pi <img src="http://community.bwbot.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61c.png?v=9q7h1n1nrom" class="not-responsive emoji emoji-android emoji--stuck_out_tongue_winking_eye" title=":stuck_out_tongue_winking_eye:" alt="😜" /></p>
<p dir="auto"><strong>teuneboon commented on Jul 18, 2014</strong><br />
@dufferzafar we can estimate pi: ( (five() * five() ) - ( ( five() + five() + five() ) / five() ) ) / ( five() + ( ( five() + five() ) / five() ) )</p>
<p dir="auto"><strong>shackpank commented on Jul 18, 2014</strong><br />
@dufferzafar easiest way to get pi is through builtin Math object like this</p>
<pre><code class="language-javascript">var five = require('five');
Math[Buffer(((five() * five()) - (five() / five()) + ((five() * ((five() / five()) + (five() / five()))) * five() * five() * five()) * (five() - (five() / five())) + (five() * five())).toString(), 'hex').toString('utf8')]
</code></pre>
<p dir="auto"><strong>dufferzafar commented on Jul 18, 2014</strong><br />
If this package useful? #82</p>
<p dir="auto"><strong>rex commented on Jun 27, 2015</strong><br />
@shackpank I have tears in my eyes and my belly hurts from laughing. Far and away the best response ever made to any question ever asked in the history of GitHub.</p>
<p dir="auto">May five() live forever</p>
<p dir="auto">现在所有的数字他们都想用5来替换。他们已经找到了用5来替换pi的方式。五号神教已经正式成立了。</p>
<p dir="auto">*<em>May five() live forever</em></p>
<p dir="auto">但是这个还有更好玩的玩法。现在的加减乘除运算还都是用的原来的符号。如果把整个系统改成<a href="https://zh.wikipedia.org/wiki/%CE%9B%E6%BC%94%E7%AE%97" target="_blank" rel="noopener noreferrer">Lamda演算</a>的形式，这些符号都是能够用5来表示的。这样就变成一个彻底的五号神教了。</p>
]]></description><link>http://community.bwbot.org/topic/15/在github上发现了一个5神教</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Jul 2026 03:58:42 GMT</lastBuildDate><atom:link href="http://community.bwbot.org/topic/15.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 26 Mar 2016 03:27:21 GMT</pubDate><ttl>60</ttl></channel></rss>