- Redux course by Dan Abramov: https://egghead.io/series/getting-started-with-redux
- Help understand the app's state, install redux devtools chrome extension
- Crazy big collection of resources
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
<!-- remodal --> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/remodal/1.1.0/remodal.min.js"></script> | |
<!-- remodal - youtube API --> | |
<script> | |
var tag = document.createElement("script"); | |
tag.src = "https://www.youtube.com/iframe_api"; | |
var firstScriptTag = document.getElementsByTagName("script")[0]; | |
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); | |
// 3. This function creates an <iframe> (and YouTube player) |
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
/* | |
Based on: | |
- https://www.simoahava.com/gtm-tips/implement-referral-exclusions-via-gtm/ | |
- https://medium.com/@postman31/dont-let-oauth-fools-your-analytics-88d56523f6b1 | |
- https://www.thyngster.com/tip-maintaining-proper-session-attribution-in-ga-when-using-oauth-providers-with-google-tag-manager/ | |
*/ | |
function() { | |
/* When the user goes thru oauth, the referrer is FB so the session is restarted | |
See: https://medium.com/@postman31/dont-let-oauth-fools-your-analytics-88d56523f6b1 |
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
alias gbD="git branch -D " | |
alias gcom="git checkout origin/master" |
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
#!/bin/sh | |
# Place this file in the `.git/hooks` directory | |
HITS=0 | |
for FILE in `git diff origin/HEAD --name-only`; do | |
grep 'TODO' $FILE 2>&1 >/dev/null | |
if [ $? -eq 0 ]; then | |
echo 'New TODO found in file: ' $FILE | |
((HITS++)) | |
exit 1 |
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
body.rtl #intercom-container .intercom-app.intercom-app-left-aligned [class^=intercom-] { | |
right: auto; | |
} |
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 from 'react'; | |
interface IProps { | |
} | |
export class {$NAME} extends React.Component<IProps, IState> { | |
public 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
/* Based on http://www.html5rocks.com/en/tutorials/pagevisibility/intro/ */ | |
class PageVisibilityService { | |
constructor(store) { | |
this.store = store; | |
this.prop = this.getHiddenProp(); | |
this.register(); | |
} | |
getHiddenProp(){ |
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 from 'react'; | |
import _ from 'lodash'; | |
const UserVoiceTrigger = React.createClass({ | |
propTypes: { | |
id: React.PropTypes.string.isRequired | |
}, | |
getDefaultProps() { |
NewerOlder