I hereby claim:
- I am emilyrose on github.
- I am nexxy (https://keybase.io/nexxy) on keybase.
- I have a public key whose fingerprint is 39F6 A0DF 45CB C625 60CC 5ACE 3498 C624 BB33 8352
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
var trait = require("../../util/trait"); | |
module.exports = trait("UserServiceInterface", [ | |
"createUser", | |
"createUserFromForm", | |
"getUserByEmail", | |
"authenticateUser", | |
"authenticateUserFromForm", | |
"isUserAdmin" | |
]); |
#!/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: |
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:
/** | |
* 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)); |
#!/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> |