- Update Facebook app to reflect new name and log (InterAppt vs SpeaQ)
- Create new logo for SpeaQ
- Figure out why Facebook login fails sometimes
- When initial location search fails and user retries, it should work if if location is found
- Questions
- Better layout for questions view, maybe resemble login screen
- Smoother transition of question text view when location is pulled up. Had a nice swing in animation but was lost in an update somewhere. Might not be needed if layout is changed in above item.
- Need better feedback when question is answered
- Stats on percentages of answer picked, right vs wrong, etc
- Show text explaining answer, e.g., for running back one, state how many yards he earned over career
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
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d |
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
Hello, hello! It was suggested to me by some Nashville colleagues to check out your site. I can tell from looking at some of the case studies that your work is high quality. I especially enjoyed the track and field one having run myself in college (I wasn't very good). I also see that you are hiring front-end and Rails developers and am interested since my contract with Onlife Health will be ending soon. I would love to see if I would be a good fit for your company if you have time. |
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
# Create Twitter followers | |
# Class: NewTwitterFriendAccumulator | |
File.open(Rails.root.join('db/follower_ids.txt'), 'wb') {|f| WistfulIndie::Twitter::Client.client.follower_ids.each { |fid| f << "#{fid}\n" } } | |
File.open(Rails.root.join('db/friend_ids.txt'), 'wb') {|f| WistfulIndie::Twitter::Client.client.friend_ids.each { |fid| f << "#{fid}\n" } } | |
# Class: TwitterFriendsFollower | |
File.read(Rails.root.join('db/friend_ids.txt')).split("\n").each { |id| TwitterFollow.create(twitter_id: id) } | |
# Class: TwitterFollowCreator |
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
# RecentInteractors | |
client = WistfulIndie::Twitter::Client.client | |
page = Nokogiri::HTML(open('https://favstar.fm/users/wistfulindie/recent')) | |
interactor_screen_names = page.css('a.fs-avatar').map { |el| el.attr('title').tr('@', '') }.select { |sn| !sn.empty? }.uniq | |
# RecentInteractorFollower | |
interactor_screen_names = interactor_screen_names - TwitterFollow.pluck(:screen_name) | |
interactor_screen_names.each do |screen_name|jk | |
begin |
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
# HighlightedAlbumRelatedTweets | |
last_album_highlighted = HighlightedAlbum.last.album | |
artist_hashtag = "##{album.artist.name.gsub(/[^a-zA-Z]*/, '')}" | |
artist_mentioned_tweets = client.search("#{artist_hashtag} -rt") | |
related_tweets = artist_mentioned_tweets.select { |t| t.user.id != 704175249202540544 } | |
# TweetsFavoriter | |
related_tweets.each { |t| client.favorite(t) } |
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
highlighted_album = RecentHighlightedAlbum.find | |
# PopularAlbumTrack | |
highlighted_album = Album.find_by(name: 'Fall Be Kind') | |
artist = highlighted_album.artist | |
album = RSpotify::Artist.search(artist.name).first.albums.detect { |album| album.name == highlighted_album.name } | |
return unless album | |
top_track = album.tracks.sort(&:popularity).reverse.first | |
spotify_url = top_track.external_urls['spotify'] | |
artist_hashtag = "##{artist.name.gsub(/[^a-zA-Z]*/, '')}" |
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 weekly top tracks | |
albums = WeeklyAnniversaryQuery.new.find_all | |
# Schedule tweets | |
# Create task that runs once a week at the beginning to schedule track tweets | |
albums.each do |album| | |
# Get Random Datetime | |
random_day_of_week = (0..6).to_a.sample | |
random_hour_in_day = (8..20).to_a.sample | |
random_scheduled_at = Week.current.start + random_day_of_week.days + random_hour_in_day.hours |