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
# Update Homebrew | |
brew update | |
brew doctor | |
# RUBY: brauchen 2.3.1 | |
ruby -v | |
brew install gpg | |
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB | |
curl -L get.rvm.io | bash -s stable |
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
class DarkLaunch | |
def self.feature_visible(feature_id, current_user) | |
if !current_user | |
# Only logged in users should have access to Dark Launch features | |
return false | |
end | |
if Rails.env.development? || Rails.env.test? |
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
# I found 2 cool links that do most of the work. I just added a few lines that I needed to do on my machine to make it work | |
# From http://makandracards.com/makandra/15901-howto-create-a-self-signed-certificate | |
openssl req -new -newkey rsa:2048 -sha1 -days 365 -nodes -x509 -keyout server.key -out server.crt | |
mkdir /Users/NAME/.ssl | |
cp server.key /Users/NAME/.ssl | |
cp server.crt /Users/NAME/.ssl | |
# From http://makandracards.com/makandra/15903-using-thin-for-development-with-ssl |
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
$('#murm').murm(MY_AUTHENTICATION_KEY, | |
{ | |
tag: "My first example", | |
user: "My user, e.g. an ID that helps you to see who it was", | |
email: "The email of your customer", | |
transaction: "A transcation ID, e.g. an order ID", | |
object: "Some object reference, e.g. to a product or a helpdesk article (if that applies)" | |
} | |
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
<div id="murm"></div> | |
<script src="https://preview.murm.io/sdk/murmio.js"></script> | |
<script> | |
$('#murm').murm(MY_AUTHENTICATION_KEY, | |
{ | |
tag: "My first example" | |
} | |
); | |
</script> |
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
MurmConfig.setUserId(SessionManager.getLoggedInUser().getUserId()); |
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
Murm m = (Murm) findViewById(R.id.my_first_murm); | |
m.setUserId("John Doe"); | |
m.setTransactionId("123456"); |
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
<io.murmio.android.sdk.Murm | |
android:id="@+id/my_first_murm" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
murm.io:tag="My first example" /> |
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
xmlns:murm.io="http://schemas.android.com/apk/res-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
repositories { | |
maven { url 'https://raw.githubusercontent.com/hendrikbeck/mvn_repo/master/' } | |
} | |
dependencies { | |
// Your other dependencies go here... | |
compile 'io.murm.android:sdk:0.0.5+@aar' | |
} |
NewerOlder