node -v > .nvmrc
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
| // connect() is a function that injects Redux-related props into your component. | |
| // You can inject data and callbacks that change that data by dispatching actions. | |
| function connect(mapStateToProps, mapDispatchToProps) { | |
| // It lets us inject component as the last step so people can use it as a decorator. | |
| // Generally you don't need to worry about it. | |
| return function (WrappedComponent) { | |
| // It returns a component | |
| return class extends React.Component { | |
| render() { | |
| return ( |
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
| sudo apt update && sudo apt upgrade | |
| sudo apt-get install build-essential git curl xclip | |
| sudo apt-get install zsh | |
| sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
| # Change the shell to zsh | |
| chsh -s `which zsh` | |
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
| import React, { Component } from "react"; | |
| import GoogleAnalytics from "react-ga"; | |
| GoogleAnalytics.initialize(process.env.REACT_APP_GAID || "UA-115105611-2"); | |
| const withTracker = (WrappedComponent, options = {}) => { | |
| const trackPage = page => { | |
| if (process.env.NODE_ENV !== "production") { | |
| return; | |
| } |
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
| [General] | |
| disabledTrayIcon=false | |
| drawColor=#ff0000 | |
| drawThickness=0 |
| layout | title | date | categories |
|---|---|---|---|
post |
Stateless Email Verification |
2014-04-18 03:20:50 -0700 |
security stateless |
My preference has always been stateless approach, but the approach mentioned needs a bit more work. You want the link to expire in some time - so when you generate the signature, you append a timestamp into it as well.
Stateless email verification should be something like this -
OlderNewer