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, { useState, useEffect } from "react"; | |
import Auth from "@aws-amplify/auth"; | |
import useNotification from "hooks/useNotification"; | |
const URLSearchParams = require("url-search-params"); | |
import { useHistory } from "react-router-dom"; | |
const CompleteNewPassword = props => { | |
const history = useHistory(); |
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
/** | |
* Add a weekly email report that summarizes which domains that | |
* your products are being used on. | |
*/ | |
add_filter( 'cron_schedules', function( $schedules ) { | |
$schedules['weekly'] = array( | |
'interval' => 604800, | |
'display' => __('Once Weekly') | |
); |
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
/** | |
* Redirect the user to the appropriate page upon login. | |
*/ | |
add_filter( 'login_redirect', function( $url, $query, $user ) { | |
if ( is_wp_error( $user ) ) { | |
return $url; | |
} | |
if ( current_user_can('administrator') ) { | |
return $url; |
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, { PropTypes } from 'react' | |
import { Transition } from 'react-move' | |
const RouteTransition = React.createClass({ | |
propTypes: { | |
pathname: PropTypes.string.isRequired | |
}, | |
render() { | |
return ( |
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 { takeEvery } from 'redux-saga'; | |
import { put, select } from 'redux-saga/effects'; | |
/* | |
* Select data from state. The return object depends on your state shape | |
*/ | |
export const getLessons = state => state.lessons; | |
/* | |
* Our worker Saga: will perform the async lessons/EDIT task |
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
Moom | |
Chrome | |
Alfred | |
Nylas N1/Spark | |
Dropbox | |
iTerm2 | |
Homebrew | |
nvalt | |
Node | |
1password |
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
Show hidden characters
{ | |
"auto_complete_commit_on_tab": true, | |
"color_scheme": "Packages/Theme - Afterglow/Afterglow.tmTheme", | |
"enable_tab_scrolling": false, | |
"font_size": 12, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"open_files_in_new_window": false, |
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
# Paste into Gmail's "Has the Words" Filter Input to move | |
# all newsletters under their own label | |
"opt-out" OR unsubscribe OR "viewing the newsletter" OR "privacy policy" OR enews OR "edit your preferences" OR "email notifications" OR "update profile" OR smartunsubscribe OR secureunsubscribe OR yahoogroups OR "manage your account" OR "group-digests" |
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
#1. Update Bootstrap compatibility in /assets/scripts/main.js | |
// Import npm dependencies | |
// import 'bootstrap/dist/js/umd/util.js'; | |
// import 'bootstrap/dist/js/umd/alert.js'; | |
// import 'bootstrap/dist/js/umd/button.js'; | |
// import 'bootstrap/dist/js/umd/carousel.js'; | |
// import 'bootstrap/dist/js/umd/collapse.js'; | |
// import 'bootstrap/dist/js/umd/dropdown.js'; | |
// import 'bootstrap/dist/js/umd/modal.js'; |
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
# Postgresql fancy datatypes! | |
* array | |
* hstore (=~ hash) | |
* json | |
* jsonb | |
Philippe Creux - [@pcreux](http://twitter.com/pcreux) |
NewerOlder