start new:
tmux
start new with session name:
tmux new -s myname
#!/bin/bash | |
# | |
# Homepage: http://www.debian-tutorials.com | |
# Email: [email protected] | |
# Bash script to download and install or upgrade wordpress to specified directory. | |
install_wp () | |
{ | |
cd ~</pre> | |
<!--more--> | |
<pre> |
/** | |
* An implementation for Quicksort. Doesn't | |
* perform as well as the native Array.sort | |
* and also runs the risk of a stack overflow | |
* | |
* Tests with: | |
* | |
* var array = []; | |
* for(var i = 0; i < 20; i++) { | |
* array.push(Math.round(Math.random() * 100)); |
The reflow appens as many times as there are frames per seconds. It recalculate all positions that change in order to diplay them. Basically, when you scroll you execute a function where you move things between two reflows. But there are functions that triggers reflows such as jQuery offset, scroll... So there are two things to take care about when you dynamically change objects in javascript to avoid too many reflows:
#!/usr/bin/env zsh | |
git show-branch -a \ | |
| grep '\*' \ | |
| grep -v `git rev-parse --abbrev-ref HEAD` \ | |
| head -n1 \ | |
| sed 's/.*\[\(.*\)\].*/\1/' \ | |
| sed 's/[\^~].*//' | |
# How it works: |
var trait = require("../../util/trait"); | |
module.exports = trait("UserServiceInterface", [ | |
"createUser", | |
"createUserFromForm", | |
"getUserByEmail", | |
"authenticateUser", | |
"authenticateUserFromForm", | |
"isUserAdmin" | |
]); |
I hereby claim:
To claim this, I am signing this object:
Note: if you want to skip history behind this, and just looking for final result see: rx-react-container
When I just started using RxJS with React, I was subscribing to observables in componentDidMount
and disposing subscriptions at componentWillUnmount
.
But, soon I realised that it is not fun to do all that subscriptions(that are just updating property in component state) manually, and written mixin for this...
Later I have rewritten it as "high order component" and added possibility to pass also obsarvers that will receive events from component.