(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
location /webhook/17cbb307-94ec-446b-a17b-ab82594c974c { | |
if ($request_method != 'POST') { | |
return 405; | |
} | |
content_by_lua 'ngx.print(io.popen("/path/to/script.sh"):read("*a"))'; | |
} |
(function (ko, handlers, unwrap, extend) { | |
"use strict"; | |
extend(handlers, { | |
href: { | |
update: function (element, valueAccessor) { | |
handlers.attr.update(element, function () { | |
return { href: valueAccessor() }; | |
}); | |
} | |
}, |
This puzzle has 3 parts:
Additional configuration:
FROM ubuntu | |
RUN sed -i 's/main/main universe multiverse/' /etc/apt/sources.list | |
RUN apt-get update -q | |
RUN apt-get install -qy build-essential python-dev python-pip curl | |
#RUN apt-get install -qy autoconf | |
RUN pip install ansible | |
RUN mkdir -p /etc/ansible | |
RUN curl -L https://github.com/gc3-uzh-ch/ansible-playbooks/archive/cloud.tar.gz | tar -zxf- | |
RUN /bin/echo -e "[slurm_master]\nlocalhost" > /etc/ansible/hosts | |
RUN cp /bin/true /bin/hostname |
# Set bluetooth power up | |
ACTION=="add", KERNEL=="hci0", RUN+="/usr/bin/hciconfig hci0 up" |
// easing functions http://goo.gl/5HLl8 | |
Math.easeInOutQuad = function (t, b, c, d) { | |
t /= d/2; | |
if (t < 1) { | |
return c/2*t*t + b | |
} | |
t--; | |
return -c/2 * (t*(t-2) - 1) + b; | |
}; |
I use tmux splits (panes). Inside one of these panes there's a Vim process, and it has its own splits (windows).
In Vim I have key bindings C-h/j/k/l
set to switch windows in the given direction. (Vim default mappings for windows switching are the same, but prefixed with C-W
.) I'd like to use the same keystrokes for switching tmux panes.
An extra goal that I've solved with a dirty hack is to toggle between last active panes with C-\
.
Here's how it should work:
From https://gist.github.com/3050224
From http://blog.smartcore.net.au/smartos-the-basics/