[ ] Put signed contact in Dropbox [ ] Create Freshbooks invoice for first 2 weeks [ ] Create Freshbooks recurring invoice to start after week 3 (weekly) [ ] Create Campfire room [ ] Create Github Repo [ ] Create Trello Board (for Product Design Sprints or Rails MVPs, use Trello template) [ ] Create recurring calendar invites for weekly planning, retros, and daily standups [ ] Create project in Team [ ] Share Team project page with client [ ] Schedule thirty minute meeting with client to go over systems
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
.photo img { | |
width: 230px; | |
border-radius: 20%; | |
filter: grayscale(100%); | |
-webkit-filter: grayscale(100%); | |
} |
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
.photo img { | |
width: 400px; | |
border-radius: 50%; | |
filter: grayscale(100%); | |
-webkit-filter: grayscale(100%); | |
} | |
.visitor-info { | |
width: 100%; | |
text-align: center; |
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
client.get('/me/activities').collection.each do |track| | |
favorites = track.origin['favoritings_count'] | |
time_ago_in_hours = Time.diff(Time.now, Time.parse(track.created_at))[:hour] | |
score = (favorites / ((time_ago_in_hours + 2)**1.8)).ceil | |
p "#{track.origin['title']} - #{score}" | |
end |
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
WITH monthrollup as ( | |
select count(*) as signups, | |
date_trunc('month', created_at) as date | |
from users | |
WHERE created_at >= current_date - interval '24 months' | |
group by 2 | |
) | |
SELECT date, | |
signups |
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
00 9 * * * curl -F [email protected] [https://signwithenvoy.com/api/configuration/employee_list?api_key=YOUR_API_KEY_HERE](https://signwithenvoy.com/api/configuration/employee_list?api_key=YOUR_API_KEY_HERE) |
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
get "/user_media_feed" do | |
client = Instagram.client(:access_token => session[:access_token]) | |
user = client.user | |
html = "<h1>#{user.username}'s media feed</h1>" | |
page_1 = client.user_media_feed(777) | |
page_2_max_id = page_1.pagination.next_max_id | |
page_2 = client.user_recent_media(777, :max_id => page_2_max_id ) unless page_2_max_id.nil? | |
html << "<h2>Page 1</h2><br/>" | |
for media_item in page_1 |
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
date = Date.parse('january 5 2013') | |
users = User.where(created_at: date..date.end_of_day) |
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
require 'lib/rack_typography' | |
use Rack::Typography |
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
before_filter :authenticate | |
protected | |
def authenticate | |
return true unless ENV['BASIC_AUTH'] | |
authenticate_or_request_with_http_basic do |username, password| | |
username == "" && password == ENV['BASIC_AUTH'] | |
end | |
end |