This file contains 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
var url = (function(){ | |
var getUTC = function(date_str){ | |
var date = new Date(date_str); | |
return date.getUTCFullYear() + | |
zerofill(date.getUTCMonth()+1) + | |
zerofill(date.getUTCDate()) + | |
'T' + | |
zerofill(date.getUTCHours()) + | |
zerofill(date.getUTCMinutes()) + |
This file contains 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
https://github.com/yoshiko-pg/dotfiles/blob/master/.vimrc | |
に移動 |
This file contains 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
https://github.com/yoshiko-pg/dotfiles/blob/master/.zshrc | |
に移動 |
This file contains 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
; colon & semicolon swap | |
$vkBAsc027::Send, : | |
+$vkBAsc027::Send, `; | |
; Alt -> IME | |
LAlt::IME_SET(0) | |
LWin::IME_SET(0) | |
RAlt::IME_SET(1) | |
; iTunes |
This file contains 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 from 'react'; | |
import { BrowserRouter as Router, Route, Switch, Redirect } from 'react-router-dom'; | |
import App from 'components/app'; | |
import Signup from 'components/signup'; | |
import Signin from 'components/signin'; | |
import Signout from 'components/signout'; | |
const userOnly = (Component) => ({ history, match }) => | |
isAuthenticated() ? <Component history={history} match={match}/> : <Redirect to="/signin"/>; |