47

Hands up, who actually uses this shit?

Seriously, this is one of the most innovative apps I've used in the past year. The developer must be having fun torturing hundreds of people every day. But fuck this shit, it works (and most alarm clocks didn't work for me)

Comments
  • 17
    Why do I have the feeling that your one of the devsπŸ€”? and that your promoting you're app? anyway it seems to be a good appπŸ˜… keep up the work.
  • 7
    @Aaronz at 4000 rep, he's been playing the long con and deserves kudos
  • 9
    πŸ–

    Takes me a minimum of five tries to solve a simple math problem in the morning haha..
  • 3
    I should get this though
  • 5
    @hacker
    Quick!
    2 + 2 = ?

    1 / 0.5 = ?

    (4 * 8) % 5 = ?
  • 6
    @Aaronz i wish i were but I'm not android dev (fu java xD) nice tey tho

    @gorsamp yup. xD

    @hacker being a great mathematician requires you to suck at math xD
  • 9
    @coolq Two plus two is for minus one that three! Quick maths!
  • 6
    Sleep as android supports qr code and nfc tag since like forever.
    Saved me a couple of times, as I just can't get out of bed. Now there is a QR code in my bathroom.
  • 9
    With a few phones I couldn't get a keyboard behind the lockscreen so had to force reboot the fucker to get it silently.
  • 5
    @coolq
    let x = 1,
    y = [2, 0, 0];

    let answers = y.map((x) => x + 2);
    console.log(answers);

    // sorry >:)
  • 3
    @ThatDude oh and you're transgender now? ^^

    @xenira good idea

    @linuxxx yup, annoying xD
  • 3
    I think I should really give this app a try.

    But something also tells me that this a reaaaaaly bad idea πŸ˜‚πŸ˜‚πŸ˜‚
  • 5
    @ThatDude that's impressive, I should start learning shit like that
  • 8
    But what happens if you forget about the alarm after waking up early. Like how to find the fridge to take a photo when your in a train. Shit can get embarrassing.
  • 3
    @Hammster true. But Math stuff is possible everywhere. Or shaking your phone for a while. Surely looks funny tho xD
  • 5
    @BambuSource jerking your phone in public like a maniac could get you in even more trouble. Especially as male. xD
  • 2
    @Hammster but if a girl does it, it's fine?
  • 4
    I use it and I love it! Never overslept since I downloaded it!
  • 3
    @BambuSource call me biased, but people would call-out a man shaking his phone in near to kindergarten kids more then a woman would.

    I did not exclude women though since this looks still retarded as fuck :P
  • 2
    oh my. I'm totally gonna install this
  • 3
    I need a reverse alarm clock which forces me to fall asleep on time more than I need an alarm clock.
  • 2
    The app I'm using genereates a 10 digit captcha for me to type in. That works for me ^^
  • 2
    @Kushtrim this app doesn't allow this. you can't even uninstall it if this feature is activated
  • 2
    I just set up a timer instead. Works better for me
  • 4
    βœ‹

    I have a serious oversleeping issue.
  • 3
    @JFK422
    Haha, nice.

    @hacker
    # Lexical Analysis,
    def lex(code):
    code = code.replace('(', ' ( ')
    code = code.replace(')', ' ) ')
    return [x for x in code.split(' ') if x]

    # Parsing stage,
    def parse(tokens):
    tree = []
    stack = []
    work = tree
    for token in tokens:
    if token == '(':
    work += [[]]
    stack += [work]
    work = work[-1]
    elif token == ')':
    work = stack.pop()
    else:
    work += [token]
    return tree

    def evaluate(ast):
    for token in ast:
    if type(token) is list:
    return evaluate(token)
    elif token.isdigit():
    return int(token)
    elif token == '+':
    return sum(evaluate([x]) for x in ast[1:])

    code = '(+ 1 1)'
    print(evaluate(parse(lex(code))))

    # Sorry x)

    P.S: Made this on the spot πŸ‘
  • 5
    @coolq πŸ™‚πŸ”«
  • 2
    @hacker
    Haha.
    Do you know how it works?
  • 4
    @coolq no, man. Care to explain?
  • 2
    @hacker
    So there's three stages going on here.

    1). Lexing(breaking the code up into tokens or symbols)
    2). Parsing (build an abstract syntax tree. For now you can think of it like a multi dimensional array, but each dimension is made from the '(' and ')' )
    3). Evaluation (walk through the abstract syntax tree, and evaluate each symbol recursively)

    The best way to find out how this works is to isolate each function. Find out what each one does and produces. Then try and run though the program like a computer. You'll learn a lot!
  • 4
    @coolq ah, I see. What is the point of "lexical code analysis"?
    What is its objective?
  • 2
    @hacker
    Lexical Analysis is just turning a string:
    "(+ (+ 1 1) 1)"
    into a list:
    ['(', '+', '(', '+', '1', '1', ')', 1', ')']

    Parsing is just turning this:
    ['(', '+', '(', '+', '1', '1', ')', 1', ')']

    Into:
    [
    [
    +,
    [
    +,
    1,
    1
    ],
    1
    ]
    ]

    And for the evaluation stage:
    Sees: [...].
    Runs itself on that.
    Sees: + [...] 1
    Runs itself on argument 1
    Sees: + 1 1
    Adds them together and returns the value
    Sees: + 2(returned value) 1
    Adds them together and returns
    Then we have 3 and we return that into the print statement which then prints the "3" in this case.

    Note that the [...] is just a list, couldn't be bothered to write all the elements πŸ˜›
  • 3
    Probably noone will read this, but actually microsoft had the idea first!
  • 2
    @Mitiko which idea?
    btw thanks xD
  • 3
    @ThatDude Thanks!
    @BambuSource A link: https://play.google.com/store/apps/...
    Also the one you posted is paid in my country
  • 1
  • 1
    @Hammster it happened to me. I was on a bus. I had to remove the battery of my phone πŸ˜‚
Add Comment