// jQuery
$(document).ready(function() {
// code
})
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/bash | |
echo 'checking for package.json updates using npmjs.com/package/npm-check-updates' >&2 | |
# define some fun output colors - https://stackoverflow.com/questions/5947742 | |
RED='\033[0;31m' | |
BLUE='\033[0;34m' | |
YELLOW='\033[1;33m' | |
GREEN='\033[0;32m' | |
NC='\033[0m' # No Color |
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
(function(def){ | |
def('myModule', ['someDependency', 'somethingElse'], function(someDependency, somethingElse){ | |
//return the module's API | |
return {}; | |
}); | |
}( | |
// wrapper to run code everywhere | |
typeof define === 'function' && define.amd? |
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
open -a Google\ Chrome --args --disable-web-security --allow-running-insecure-content |
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
var nextLink; | |
function open_page(url) { | |
console.log("Opening " + url); | |
osmosis.get(url) | |
.find('#nav td:last a') | |
.set({ | |
'nextLink': '@href' | |
}) | |
.find('.g') | |
.set({ |
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
var nextLink; | |
function open_page(url) { | |
console.log("Opening " + url); | |
osmosis.get(url) | |
.find('#nav td:last a') | |
.set({ | |
'nextLink': '@href' | |
}) | |
.find('.g') | |
.set({ |
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] | |
cleanfeature = branch --merged | grep "feature/" | xargs -n 1 git branch -d | |
[merge] | |
tool = p4mergetool | |
renameLimit = 8000 | |
[mergetool "p4mergetool"] | |
cmd = /Applications/p4merge.app/Contents/Resources/launchp4merge $PWD/$BASE $PWD/$REMOTE $PWD/$LOCAL $PWD/$MERGED | |
trustExitCode = false | |
[mergetool] | |
keepBackup = false |
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
git branch --remote --merged | | |
grep origin | | |
grep -v '>' | | |
grep -v master | | |
grep -v develop | | |
# grep -v <any-other-branch-name-you-want-to-keep> | | |
xargs -L1 | | |
cut -d"/" -f2- | | |
xargs git push origin --delete |
Another big ol' list of React resources
Tutorials
- https://medium.com/@firasd/quick-start-tutorial-using-redux-in-react-apps-89b142d6c5c1
- https://github.com/firasd/react-redux-tutorial
- https://github.com/reactjs/react-redux
- http://www.youhavetolearncomputers.com/blog/2015/9/15/a-conceptual-overview-of-redux-or-how-i-fell-in-love-with-a-javascript-state-container
React redux project structure