Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.
You've got two main options:
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" VIM SETTINGS | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" TURNS LINE NUMBERING ON | |
set nu | |
" TRIGGER `autoread` WHEN FILES CHANGES ON DISK | |
set autoread | |
autocmd FocusGained,BufEnter,CursorHold,CursorHoldI * if mode() != 'c' | checktime | endif |
So there were a few threads going around recently about a challenge to write the longest sequence of keywords in Javascript:
There are, however, a few problems:
* **Takeaways** | |
* Share test utilities | |
* Use a lint rule when people don't follow best practices | |
* Not sure this is worth the effort for us | |
* It's easy to start writing tests, it's hard to continuously maintain tests and consistently keep coverage high | |
* How do you test a module? | |
* In isolation | |
* With integrations | |
* Mock integrations | |
* Test app but mock external dependencies |
If you have your code defined in classes in lib/ folder you may have problems to load that code in production.
Autoloading is disabled in the production environment by default because of thread safety.
Change config/application.rb:
config.autoload_paths << Rails.root.join("lib")
config.eager_load_paths << Rails.root.join("lib")
mkcd() { | |
dir="$*" | |
mkdir -p "$dir" && cd "$dir" | |
} | |
cpwd() { | |
pwd | pbcopy | |
} | |
alias gcne='git commit --amend --no-edit' |
import React from "react" | |
import { Route, Switch } from "react-router-dom" | |
const AppRoute = ({ component: Component, layout: Layout, ...rest }) => ( | |
<Route {...rest} render={props => ( | |
<Layout> | |
<Component {...props} /> | |
</Layout> | |
)} /> | |
) |
# import config. | |
# You can change the default config with `make cnf="config_special.env" build` | |
cnf ?= config.env | |
include $(cnf) | |
export $(shell sed 's/=.*//' $(cnf)) | |
# import deploy config | |
# You can change the default deploy config with `make cnf="deploy_special.env" release` | |
dpl ?= deploy.env | |
include $(dpl) |
Official setup | Deploying to Heroku | Rails app guide
#!/bin/sh | |
# Clone multiple repositories. | |
echo "=== CLONENATOR ===" | |
array=( "https://github.com/angular/angular.git" | |
"https://github.com/nodejs/node.git" ) | |
for element in ${array[@]} |