Skip to content

Instantly share code, notes, and snippets.

/***
*
* I want to execute someFunc() if the variable x is greater than 5
* how would you rewrite the below to NOT use a conditional? (EG no "if" used)
*
* **/
if(x > 5) {
someFunc():
}
@latentflip
latentflip / lesson.md
Created September 2, 2013 10:24 — forked from tef/lesson.md

I hate markdown

  1. Here is a list. I can do numbered lists.

  2. I can do a list entry followed by two spaces.
    This means this is in the same paragraph

  3. If I want a code block (with syntax highlighting, inside a list, something breaks:

body
nav.navbar.navbar-default
div.container-fluid
div.navbar-header
a.navbar-brand(href='/') Wolves
ul.nav.navbar-nav(role="main-nav")
li
a(href='/howls') Howls
.container
main(role="page-container")
//
// Lame implementation of a channel
function channel() {
return new Channel();
}
var id = 0;
function Channel(opts) {
this._queue = [];