Skip to content

Instantly share code, notes, and snippets.

@brettmcintosh
brettmcintosh / query.js
Last active February 2, 2018 19:14
Hacker News Keyword Search
/* Hacker News Search Script
*
* Original Script by Kristopolous:
* https://gist.github.com/kristopolous/19260ae54967c2219da8
*
* Usage:
* First, copy the script into your browser's console whilst on the Hacker News
* jobs page. Then, you can use the query function to filter the results.
*
* For example,

Keybase proof

I hereby claim:

  • I am brettmcintosh on github.
  • I am brainwash (https://keybase.io/brainwash) on keybase.
  • I have a public key ASD0boXAlL1Iw7erL59h9nSflBb8tWLjjfhDtt-3Rbqaggo

To claim this, I am signing this object:

@brettmcintosh
brettmcintosh / f_expression.py
Created October 20, 2016 01:13
Do you know how to use F expressions? I don't
>>> models.F(None)
F(None)
>>> models.F(None) >= 1
True
>>> models.F(None) + 1 >= 1
True
>>> models.F(None) + 1
<CombinedExpression: F(None) + Value(1)>
"""