This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet
SPC q q- quitSPC w /- split window verticallySPC w- - split window horizontallySPC 1- switch to window 1SPC 2- switch to window 2SPC w c- delete current window
| defprotocol Functor do | |
| def fmap(data, func) | |
| end | |
| defprotocol Applicative do | |
| def pure(data) | |
| def run(wrapped_func, data) | |
| end | |
| defprotocol Monad do |
This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet
SPC q q - quitSPC w / - split window verticallySPC w - - split window horizontallySPC 1 - switch to window 1SPC 2 - switch to window 2SPC w c - delete current window| # On slow systems, checking the cached .zcompdump file to see if it must be | |
| # regenerated adds a noticable delay to zsh startup. This little hack restricts | |
| # it to once a day. It should be pasted into your own completion file. | |
| # | |
| # The globbing is a little complicated here: | |
| # - '#q' is an explicit glob qualifier that makes globbing work within zsh's [[ ]] construct. | |
| # - 'N' makes the glob pattern evaluate to nothing when it doesn't match (rather than throw a globbing error) | |
| # - '.' matches "regular files" | |
| # - 'mh+24' matches files (or directories or whatever) that are older than 24 hours. | |
| autoload -Uz compinit |
| defmodule Chain do | |
| def counter(pid) do | |
| receive do | |
| n -> | |
| send pid, n+1 | |
| end | |
| end | |
| def create_processes(n) do | |
| last = Enum.reduce 1..n, self(), fn (_, pid) -> |
| var _ = require("lodash"); | |
| var R = require("ramda"); | |
| var companies = [ | |
| { name: "tw", since: 1993 }, | |
| { name: "pucrs", since: 1930 }, | |
| { name: "tw br", since: 2009 } | |
| ]; | |
| var r1 = _(companies).chain() |
| - 我想要挑戰isomorphic,但目前好像比較少redux配isomorphic又配上webpack的方案 | |
| - 這個範例可看,最近全部改寫過 | |
| - https://github.com/coodoo/react-redux-isomorphic-example | |
| - 注意下面幾點 | |
| - js/bootClient.js 與 js/bootServer.js | |
| - bootServer.js 負責做 server-render |
| \documentclass[10pt,landscape]{article} | |
| \usepackage{multicol} | |
| \usepackage{calc} | |
| \usepackage{ifthen} | |
| \usepackage[landscape]{geometry} | |
| \usepackage{hyperref} | |
| % based on latex cheat sheet https://wch.github.io/latexsheet/ | |
| % | |
| % To make this come out properly in landscape mode, do one of the following |
This guide assumes that you recently run brew upgrade postgresql and discovered to your dismay that you accidentally bumped from one major version to another: say 9.3.x to 9.4.x. Yes, that is a major version bump in PG land.
First let's check something.
brew info postgresqlThe top of what gets printed as a result is the most important:
React now supports the use of ES6 classes as an alternative to React.createClass().
React's concept of Mixins, however, doesn't have a corollary when using ES6 classes. This left the community without an established pattern for code that both handles cross-cutting concerns and requires access to Component Life Cycle Methods.
In this gist, @sebmarkbage proposed an alternative pattern to React mixins: decorate components with a wrapping "higher order" component that handles whatever lifecycle methods it needs to and then invokes the wrapped component in its render() method, passing through props.
While a viable solution, this has a few drawbacks:
emacs --daemon to run in the background.
emacsclient.emacs24 <filename/dirname> to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
C-/C-?M-c
2. Upper Case : M-uM-l