and welcome to lissome. I hope you like how simple it is to use! If you have any suggestions for lissome please leave me a note over here
| syntax on | |
| "execute pathogen#infect() "optional | |
| set nocompatible | |
| set backspace=2 | |
| set ignorecase | |
| set smartcase | |
| set autoindent | |
| set number "show line numbers | |
| set ruler "show ruler | |
| set relativenumber "show relative line numbers |
| ,(?![\ ||\n]) |
| sudo tcpflow -p -c -i eth0 port 8010 |
| lower = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"] | |
| upper = ["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"] | |
| num = ["0","1","2","3","4","5","6","7","8","9"] | |
| alphanum = lower ++ upper ++ num | |
| newpass = [] | |
| for x from 1 to 7 # change 7 to length of password you want | |
| index = Math.floor alphanum.length * Math.random() | |
| newpass.push alphanum[index] | |
| console.log newpass.join '' |
| X-Forwarded-Protocol: https | |
| X-Forwarded-Ssl: on | |
| X-Url-Scheme: https | |
| X-Forwarded-Proto: https | |
| Front-End-Https: on | |
| X-FORWARDED-PROTOCOL: https |
| set nocompatible | |
| execute pathogen#infect() | |
| syntax on | |
| set backspace=2 | |
| set ignorecase | |
| set smartcase | |
| set autoindent | |
| set noexpandtab | |
| set tabstop=4 | |
| set shiftwidth=4 |
| #!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby | |
| # This script installs to /usr/local only. To install elsewhere you can just | |
| # untar https://github.com/Homebrew/homebrew/tarball/master anywhere you like or | |
| # change the value of HOMEBREW_PREFIX. | |
| HOMEBREW_PREFIX = '/usr/local' | |
| HOMEBREW_CACHE = '/Library/Caches/Homebrew' | |
| HOMEBREW_REPO = 'https://github.com/Homebrew/homebrew' | |
| module Tty extend self | |
| def blue; bold 34; end |
I've developed a useful feature in KeystoneJS that lets you populate a relationship from either side, while only storing the data on one side, and am looking for feedback on whether it is something that could / should be brought back into mongoose itself. (It might be possible to add as a separate package but I suspect there'd be too much rewriting of mongoose internals for that to be a good idea).
I've added this as an issue in mongoose for consideration: #1888 but am leaving this gist in place because the examples are easier to read.
I've used Posts and Categories as a basic, contrived example to demonstrate what I'm talking about here; in reality you'd rarely load all the posts for a category but there are other real world cases where it's less unreasonable you'd want to do this, and Posts + Categories is an easy way to demo it.
The built-in population feature is really useful; not just for