Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| install PostgreSQL 9 in Mac OSX via Homebrew | |
| Mac OS X Snow Leopard | |
| System Version: Mac OS X 10.6.5 | |
| Kernel Version: Darwin 10.5.0 | |
| Install notes for PostgreSQL 9.0.1 install using Homebrew: | |
| sh-3.2# brew install postgresql |
| /* | |
| * This work is free. You can redistribute it and/or modify it under the | |
| * terms of the Do What The Fuck You Want To Public License, Version 2, | |
| * as published by Sam Hocevar. See the COPYING file for more details. | |
| */ | |
| /* | |
| * Easing Functions - inspired from http://gizma.com/easing/ | |
| * only considering the t value for the range [0, 1] => [0, 1] | |
| */ | |
| EasingFunctions = { |
| img.grayscale.disabled { | |
| filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0\'/></filter></svg>#grayscale"); | |
| -webkit-filter: grayscale(0%); | |
| } |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| ;; Set up slime-js | |
| ;; | |
| ;; To install, see https://github.com/swank-js/swank-js/wiki/Installation | |
| ;; | |
| ;; This is what I did: | |
| ;; | |
| ;; npm install swank-js -g | |
| ;; M-x package-install slime-js | |
| ;; | |
| ;; The slime-js version in marmalade requires swank 2010.04.04, or at least |
Cheat sheet extracted from https://www.youtube.com/watch?v=2zmUSoVMyRU by That JS Dude.
If you pass any of the CSS selectors to $(<identifier>) you get the first element.
> $('a')When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
const Article = require('../../../../app/models/article');Those suck for maintenance and they're ugly.
| import java.util.Arrays; | |
| public class MakeChange | |
| { | |
| // Returns the count of all possible ways to make exact change for the | |
| // given total using the coin denominations in the coins[] array. | |
| // | |
| // Each coin can be used more than once, but the order of the coins is | |
| // irrelevant (in other words, "1, 1, 2" and "1, 2, 1" count as a | |
| // single possibility.) |
| import java.util.Arrays; | |
| public class MakeChange | |
| { | |
| // Returns the count of all possible ways to make exact change for the | |
| // given total using the coin denominations in the coins[] array. | |
| // | |
| // Each coin can be used more than once, but the order of the coins is | |
| // irrelevant (in other words, "1, 1, 2" and "1, 2, 1" count as a | |
| // single possibility.) |
| #!/bin/bash | |
| # Put additional ignore patterns (one by line) in .grepignore | |
| # | |
| git-ag () { | |
| if [[ "$1" = "-a" ]] | |
| then | |
| all=1 | |
| shift |