ROS交流群
ROS Group
产品服务
Product Service
开源代码库
Github
官网
Official website
技术交流
Technological exchanges
激光雷达
LIDAR
ROS教程
ROS Tourials
深度学习
Deep Learning
机器视觉
Computer Vision

在Github上发现了一个5神教



  • 今天在逛Github 的时候发现了一个5神教。看了之后笑死我了。这是一个专门给5写的一个库。里面包含了各种写给5用的函数库。

    // 加
    five() + five(); // 10
    // 减
    five() - five(); // 0
    // 乘
    five() * five();
    // 除
    five() / five();
    

    还有一些格式转化的函数

    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
    

    看到这个就忍不住想问,这个库到底是干什么的?
    这个库就是写着玩的,实际上什么都干不了。

    看到这个项目的issue的时候,更是好笑了。

    比如说这个

    petty commented on Jul 18, 2014
    On the one hand … this is great, quite literally.

    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()?

    I understand that making all numbers overly complicated could take time, so what’s the ETA?

    Joezo commented on Jul 18, 2014
    The beauty of five is that you can make any number you want.

    Want three()? Well that’s just
    (five() * five() - five() - five()) / five() or (five() + five() + five())/five()

    Want six()? five() + (five()/five())

    Want zero()? five() - five()
    🎉 1

    dufferzafar commented on Jul 18, 2014
    @Joezo You left pi 😜

    teuneboon commented on Jul 18, 2014
    @dufferzafar we can estimate pi: ( (five() * five() ) - ( ( five() + five() + five() ) / five() ) ) / ( five() + ( ( five() + five() ) / five() ) )

    shackpank commented on Jul 18, 2014
    @dufferzafar easiest way to get pi is through builtin Math object like this

    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')]
    

    dufferzafar commented on Jul 18, 2014
    If this package useful? #82

    rex commented on Jun 27, 2015
    @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.

    May five() live forever

    现在所有的数字他们都想用5来替换。他们已经找到了用5来替换pi的方式。五号神教已经正式成立了。

    *May five() live forever

    但是这个还有更好玩的玩法。现在的加减乘除运算还都是用的原来的符号。如果把整个系统改成Lamda演算的形式,这些符号都是能够用5来表示的。这样就变成一个彻底的五号神教了。