Change your Github Settings > Appearance > Theme (light to dark, or dark to light) and reload this page! You will note that none of these solutions work!
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
web: bundle exec rails server puma -p $PORT -e $RACK_ENV | |
critical: env HEROKU_PROCESS=critical bundle exec sidekiq -c 2 -q critical,4 | |
default: env HEROKU_PROCESS=default bundle exec sidekiq -c 4 -q default,2 | |
low: env HEROKU_PROCESS=low bundle exec sidekiq -c 1 -q low,1 |
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
source 'https://rubygems.org' | |
# Follows the bundler group pattern described here: | |
# http://iain.nl/getting-the-most-out-of-bundler-groups | |
# Gemfile.mine in root dir allows locally custom gems. | |
# NOTE: Doing this will change the Gemfile.lock - commit with care. | |
eval File.read(File.join(File.dirname(__FILE__), 'Gemfile.mine')) if File.exists? File.join(File.dirname(__FILE__), 'Gemfile.mine') | |
ruby '1.9.3' |
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
# frozen_string_literal: true | |
require "colorized_string" | |
String.class_eval do | |
# Adapted from the Rails highlight text helper. | |
# http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#method-i-highlight | |
# | |
# NOT FOR USE WITH HTML (use the Rails standard one for that) | |
# |
A markdown table that I want to be aligned; alas, it is impossible!
👷👷👷 | 📬📬📬 | 💚💚💚 | 🚢🚢🚢 | ✅✅✅ | 🔀🔀🔀 | 🚀🚀🚀 | ⬇️⬇️⬇️ | 💨💨💨 |
---|---|---|---|---|---|---|---|---|
123456 | 123456 | 123456 | 123456 | 123456 | 123456 | 123456 | 123456 | 123456 |
Not even an attempt to pad with other characters works because the emoji are not even a multiple of the monospaced width.
| 👷👷👷0 | 📬📬📬0 | 💚💚💚0 | 🚢🚢🚢0 | ✅✅✅0 | 🔀🔀🔀0 | 🚀🚀🚀0 | ⬇️⬇️⬇️0 | 💨💨💨0 |
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
var isDev = false; | |
if (window.__env.NODE_ENV === 'development') { | |
isDev = true; | |
} | |
if (isDev) { | |
var MixpanelMock; | |
MixpanelMock = (function() { | |
function MixpanelMock() { | |
this.init = function() { |
Install phantomjs (http://phantomjs.org)
brew
has a recipe for phantomjs, but it has moved on to version 2.0.0, and we still require 1.8.2 (at newest), and we can't get that old and dirty with brew
anymore.
On a Mac:
mkdir -p ~/root
wget https://phantomjs.googlecode.com/files/phantomjs-1.8.2-macosx.zip -O ~/root/phantomjs-1.8.2-macosx.zip
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
begin | |
require "bundler/inline" | |
rescue LoadError => e | |
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler" | |
raise e | |
end | |
gemfile(true) do | |
source "https://rubygems.org" |
I hereby claim:
- I am pboling on github.
- I am pboling (https://keybase.io/pboling) on keybase.
- I have a public key ASC8gzP9Mb-g0_M06lihOvgkD5uFbTrPooaUCSxRT9fIGgo
To claim this, I am signing this object:
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
# Mixin to (i.e. include in) any worker class that does FB API calls and should be throttled. | |
module FacebookThrottle | |
def perform_throttled(*args, &block) | |
options = args.extract_options! | |
user = User.find_by_fb_uid(options[:fb_uid]) | |
if user | |
if !user.valid_facebook_token? # A bitwise flag managed by flag_shih_tzu gem | |
puts "Skipping #{self.class} #{user.fb_uid}: Invalid Oauth Token for #{user}" | |
return false |