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
MATCH (profile:`Profile`{name:”Lonie”})-[:MASTER]->(skills:`Skill`) | |
WHERE skill.name = 'python' OR skill.name = 'linux' | |
RETURN profile, skills |
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
MATCH (profile1:`Profile` {first_name: 'Lonie'})-[:MASTER]->(shared_skills:`Skill`)<-[:MASTER]-(profile2:`Profile` {first_name: 'Colin'}) | |
RETURN shared_skills |
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
ActionMailer::Base.smtp_settings = { | |
:address => "smtp.sendgrid.net", | |
:port => 25, | |
:domain => "yourwebsite.com", | |
:authentication => :plain, | |
:user_name => "username", | |
:password => "password" | |
} |
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
curl -X POST https://api.sendgrid.com/api/mail.send.json \ | |
-d "api_user=USERNAME" \ | |
-d "api_key=KEY" \ | |
-d "to=receiver@gmail.com" \ | |
-d "from=you@gmail.com" \ | |
-d "subject=Hello" \ | |
-d "html=Hello from Sendgrid" |
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
Rails.application.configure do | |
# Your Google tracker code | |
GA.tracker = "Your Tracker Code" | |
# Other settings | |
config.cache_classes = true | |
config.eager_load = true | |
config.consider_all_requests_local = false | |
config.action_controller.perform_caching = true |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Your Application</title> | |
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %> | |
<%= javascript_include_tag "application", "data-turbolinks-track" => true %> | |
<%= csrf_meta_tags %> | |
<%= analytics_init if Rails.env.production? %> | |
</head> | |
<body> |
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
@mixpanel = Mixpanel::Tracker.new MIXPANEL_TOKEN |
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
@mixpanel.track 'Search users', { finder: current_user.full_name, terms: params[:terms], address: params[:address] } | |
@mixpanel.track 'User page view', { viewer: current_user.full_name, page_owner: another_user.full_name } | |
@mixpanel.track 'Message send', { sender: current_user.full_name, recipient: another_user.full_name } |
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
@mixpanel.track event_name, properties, options |
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
$ rails new projectname && cd projectname |
OlderNewer