Better HN
topnewbestaskshowjobs
Log inSign up

ziad-saab

8 karma · joined Jun 22, 2015 (11y ago) · 4 submissions

Submissions

comment 10y ago · link · parent

You can also write:

a = 1 > 0 ? "Yay" : "Nay"

comment 11y ago · link · parent

When the same thing happened to me, it turned out I had a `ReferenceError` higher up in the code. Tonicdev notebook will stop evaluating code as soon as an error occurs, like any regular JavaScript program would.

Even though your code blocks are separated, and text appears between them, it's all one contiguous block of code.

comment 11y ago · link · parent

One of my favourite ones:

  public static function encryptPassword($password) {
    return strrev(sha1(strtolower($password)).sha1(strtoupper($password)));
  }

4.

Different password encryption implementations(github.com ↗)

2 points · by ziad-saab · 11y ago · 1 comment