Skip to content

Instantly share code, notes, and snippets.

View jetrubyshared's full-sized avatar

JetRuby Agency jetrubyshared

View GitHub Profile
MATCH (profile:`Profile`{name:”Lonie”})-[:MASTER]->(skills:`Skill`)
WHERE skill.name = 'python' OR skill.name = 'linux'
RETURN profile, skills
@jetrubyshared
jetrubyshared / blog_2_gist_2
Created March 9, 2015 14:27
Shared skills neo4j cypher query
MATCH (profile1:`Profile` {first_name: 'Lonie'})-[:MASTER]->(shared_skills:`Skill`)<-[:MASTER]-(profile2:`Profile` {first_name: 'Colin'})
RETURN shared_skills
ActionMailer::Base.smtp_settings = {
:address => "smtp.sendgrid.net",
:port => 25,
:domain => "yourwebsite.com",
:authentication => :plain,
:user_name => "username",
:password => "password"
}
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"
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
<!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>
@mixpanel = Mixpanel::Tracker.new MIXPANEL_TOKEN
@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 }
@mixpanel.track event_name, properties, options
$ rails new projectname && cd projectname