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 FbApp = { | |
init: { | |
appId: '144919695582243', | |
cookie: true, | |
xfbml: true, | |
version: 'v2.1' | |
}, | |
// called when user is currently logged-in and already authorized the app | |
onConnected: function() { | |
$("#fblogin").hide(); |
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
docker run -d -p 9200:9200 --name elasticsearch -e "http.host=0.0.0.0" -e "transport.host=127.0.0.1" -e "xpack.security.enabled=false" docker.elastic.co/elasticsearch/elasticsearch:5.2. |
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
#!/bin/sh | |
# This hook will make sure that the commit message contains a JIRA issue. | |
# | |
# To enable this hook, rename this file to ".git/hooks/commit-msg". | |
# Make sure to add execution permissions to the file. | |
export MESSAGE=$(<$1) | |
export JIRA_ISSUE_TAG='ISSUETAG-([0-9]*)' | |
if [[ $MESSAGE =~ $JIRA_ISSUE_TAG ]]; then |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |