Sublime Text CoffeeScript build system: `env: node: No such file or directory`

In Terminal, type which node, then create a symlink to that location in /usr/bin. For example, if node lives in /usr/local/bin, create the symlink like so: sudo ln -s /usr/local/bin/node /usr/bin/node If you look at the source of your coffee script, you’ll probably find that the first line is something along the lines of: #!/usr/bin/env … Read more

Default function parameter ordering

fill = ({container, liquid} = {}) -> container ?= “mug” liquid ?= “coffee” “Filling the #{container} with #{liquid}…” alert fill(liquid: “juice”, container: “glass”) alert fill() fill = (quantity=”500 mL”, {container, liquid} = {}) -> container ?= “mug” liquid ?= “coffee” “Filling the #{container} with #{quantity} of #{liquid}…” alert fill(“1L”, liquid: “juice”, container: “glass”) alert fill() … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)