This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = function simpleDispatchThunkMiddleware({ dispatch, getState }) { | |
| const newDispatch = (type, payload) => { | |
| if (typeof type === 'object') { | |
| dispatch(type); | |
| } else { | |
| dispatch({ type, payload }); | |
| } | |
| }; | |
| return next => action => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function addSimpleDispatch(thunk) { | |
| return ({ dispatch, getState }) => { | |
| function simpleDispatch(type, payload) { | |
| if (typeof type === 'string') { | |
| return dispatch({ type, payload }); | |
| } else { | |
| return dispatch(type); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):"object"==typeof exports?exports.updeep=n():t.updeep=n()}(this,function(){return function(t){function n(e){if(r[e])return r[e].exports;var o=r[e]={exports:{},id:e,loaded:!1};return t[e].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var r={};return n.m=t,n.c=r,n.p="",n(0)}([function(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{"default":t}}n.__esModule=!0;var o=r(21),u=e(o),i=r(42),f=e(i),a=r(41),c=e(a),s=r(43),l=e(s),p=r(44),v=e(p),d=r(45),h=e(d),y=r(7),g=e(y),x=r(46),_=e(x),b=r(47),j=e(b),m=r(9),w=g.default;w.if=c.default(m.placeholder,m.placeholder,{}),w.ifElse=c.default,w.is=f.default,w.freeze=u.default,w.map=l.default,w.omit=v.default,w.reject=h.default,w.update=g.default,w.updateIn=_.default,w.withDefault=j.default,n.default=w,t.exports=n.default},function(t,n){function r(t){var n=typeof t;return!!t&&("object"==n||"function"==n)}t.exports=r},function(t,n |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| var forEach = require('lodash/collection/forEach'); | |
| forEach = 'default' in forEach ? forEach['default'] : forEach; | |
| var mapArray = require('lodash/collection/map'); | |
| mapArray = 'default' in mapArray ? mapArray['default'] : mapArray; | |
| var mapObject = require('lodash/object/mapValues'); | |
| mapObject = 'default' in mapObject ? mapObject['default'] : mapObject; | |
| var _omit = require('lodash/object/omit'); | |
| _omit = 'default' in _omit ? _omit['default'] : _omit; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [18:00] == aaronjensen [4c1c9ce8@gateway/web/freenode/ip.76.28.156.232] has joined #elixir-lang | |
| [18:00] == glosie [[email protected]] has quit [Quit: My Mac has gone to sleep. ZZZzzz…] | |
| [18:00] == btriley [~btriley@2606:6000:6083:5600:60fc:ab73:913d:c716] has quit [Ping timeout: 264 seconds] | |
| [18:00] <aaronjensen> howdy all. Does anyone know the status of edeliver? seems to be somewhat abandoned... | |
| [18:01] == leafybas_ [[email protected]] has quit [Ping timeout: 265 seconds] | |
| [18:02] <aaronjensen> also curious if anyone is doing zero downtime deploys w/o hot code reloading (w/ rolling deploys or such) | |
| [18:02] <chrismccord> msch ping | |
| [18:02] == fawee [[email protected]] has quit [Ping timeout: 246 seconds] | |
| [18:02] <chrismccord> aaronjensen : last I heard it's still used happily in prod | |
| [18:02] == imsys [[email protected]] has quit [Read error: Connection reset by peer] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| deploy@id16784:~$ ps aux | grep edeliver | |
| deploy 12177 1.0 0.2 1671716 40540 pts/0 Sl+ 15:22 0:01 /usr/lib/erlang/erts-7.1/bin/beam.smp -- -root /usr/lib/erlang -progname erl -- -home /home/deploy -- -pa /usr/local/lib/elixir/bin/../lib/eex/ebin /usr/local/lib/elixir/bin/../lib/elixir/ebin /usr/local/lib/elixir/bin/../lib/ex_unit/ebin /usr/local/lib/elixir/bin/../lib/iex/ebin /usr/local/lib/elixir/bin/../lib/logger/ebin /usr/local/lib/elixir/bin/../lib/mix/ebin -noshell -s elixir start_cli -extra /usr/local/bin/mix edeliver build release --branch=master --verbose |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule Foo do | |
| def iterate([]) do | |
| :done | |
| end | |
| def iterate([head | tail]) do | |
| {head, fn -> iterate(tail) end} | |
| end | |
| def reduce(coll, acc, fun) do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (with-eval-after-load 'flycheck | |
| (flycheck-define-checker elixir-dialyzer | |
| "Erlang syntax checker based on dialyzer." | |
| :command ("mix" "dialyzer") | |
| :default-directory (lambda () | |
| (locate-dominating-file default-directory "mix.exs")) | |
| :error-patterns | |
| ((error line-start | |
| (file-name) | |
| ":" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; Related to https://github.com/syl20bnr/spacemacs/issues/5413#issue-139406121 | |
| ;; Before wtf Thu Mar 10 08:44:37 2016 | |
| ;; After redisplay Thu Mar 10 08:44:37 2016 | |
| ;; read-event nil | |
| ;; After wtf Thu Mar 10 08:44:47 2016 | |
| (defun wtf () | |
| (interactive) | |
| (message "Before wtf %s" (current-time-string)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; Modify company so that tab and S-tab cycle through completions without | |
| ;; needing to hit enter. | |
| (defvar-local company-simple-complete--previous-prefix nil) | |
| (defvar-local company-simple-complete--before-complete-point nil) | |
| (defun company-simple-complete-frontend (command) | |
| (when (or (eq command 'show) | |
| (and (eq command 'update) | |
| (not (equal company-prefix company-simple-complete--previous-prefix)))) |