(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.
/** | |
* fullscreenify() | |
* Stretch canvas to size of window. | |
* | |
* Zachary Johnson | |
* http://www.zachstronaut.com/ | |
* | |
* See also: https://gist.github.com/1178522 | |
*/ |
(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.
= Arch Linux step-by-step installation = | |
= http://blog.fabio.mancinelli.me/2012/12/28/Arch_Linux_on_BTRFS.html = | |
== Boot the installation CD == | |
== Create partition == | |
cfdisk /dev/sda | |
* Create a partition with code 8300 (Linux) |
class PasswordsController < Devise::PasswordsController | |
# here we need to skip the automatic authentication based on current session for the following two actions | |
# edit: shows the reset password form. need to skip, otherwise it will go directly to root | |
# update: updates the password, need to skip otherwise it won't even reset if already logged in | |
skip_before_filter :require_no_authentication, :only => [:edit, :update] | |
# we need to override the update, too. | |
# After a password is reset, all outstanding sessions are gone. | |
# When already logged in, sign_in is a no op, so the session will expire, too. | |
# The solution is to logout and then re-login which will make the session right. |
Plain JavaScript objects are better than classes when they can be used, and many popular modern frameworks have adopted their use.
Consider that in React a component can be created as either a class or as an object.
// using a class
class Welcome extends React.Component {
render() {
Hello, {this.props.name}
adb help // List all comands | |
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader |
#!/bin/sh | |
# This is a simple hack to fix the pnpm module resolution, if you encounter "Module not found" in some deep dependency of your | |
# project, then use this script to add those not founded dependencies as a direct dev dependency. | |
# All credit goes to flaviut https://github.com/pnpm/pnpm/issues/1261 | |
while true; do pnpm install -D $(pnpm start 2>&1 | grep 'Error: Cannot find module' | sed "s/Error: Cannot find module '\([a-z.-]\+\)'/\1/g"); done |