duplicates = multiple editions
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
| # This is the nuclear option. Use with extreme care | |
| # Works up to and including Mountain Lion (10.8.x) | |
| # Show all extended attributes | |
| ls -lOe ~/dir-to-fix | |
| # Remove no-change attributes | |
| sudo chflags nouchg ~/dir-to-fix | |
| # Recursively clear all entended attributes |
| unbind C-b | |
| set-option -g prefix ` | |
| bind ` send-prefix |
| [program:redmine] | |
| command=/home/redmine/start_redmine.sh | |
| user=redmine | |
| directory=/home/redmine | |
| stderr_logfile=/var/log/supervisor/redmine_error.log | |
| stdout_logfile=/var/log/supervisor/redmine_out.log | |
| environment=HOME="/home/redmine" |
| # config valid only for Capistrano 3.1 | |
| lock '3.1.0' | |
| set :application, '<application_name>' | |
| set :repo_url, '<url.git>' | |
| set :deploy_via, :remote_cache | |
| # Default branch is :master | |
| # ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp } |
| terminal = require('color-terminal') | |
| log = (error, stdout, stderr, cb) -> | |
| if error | |
| terminal.color('red').write stdout | |
| else | |
| terminal.color('green').write stdout | |
| cb() | |
| require 'json' | |
| require 'optparse' | |
| require 'net/http' | |
| require 'net/https' | |
| def parse_options(argv) | |
| ####################################### | |
| # Please change the following as needed | |
| ####################################### |
| <? | |
| ///////////////////// | |
| // slack2html | |
| // by @levelsio | |
| ///////////////////// | |
| // | |
| ///////////////////// | |
| // WHAT DOES THIS DO? | |
| ///////////////////// | |
| // |
| 1. User.timezone comes from momentjs moment().format("Z") | |
| 2. Everytime user logs in, we pass the browser's timezone | |
| 3. Session controller updates user timezone |
https://gist.github.com/ljharb/58faf1cfcb4e6808f74aae4ef7944cff
While attempting to explain JavaScript's reduce method on arrays, conceptually, I came up with the following - hopefully it's helpful; happy to tweak it if anyone has suggestions.
JavaScript Arrays have lots of built in methods on their prototype. Some of them mutate - ie, they change the underlying array in-place. Luckily, most of them do not - they instead return an entirely distinct array. Since arrays are conceptually a contiguous list of items, it helps code clarity and maintainability a lot to be able to operate on them in a "functional" way. (I'll also insist on referring to an array as a "list" - although in some languages, List is a native data type, in JS and this post, I'm referring to the concept. Everywhere I use the word "list" you can assume I'm talking about a JS Array) This means, to perform a single operation on the list as a whole ("atomically"), and to return a new list - thus making it mu