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
"============================================================================= | |
" dracula.vim --- dracula theme for SpaceVim | |
" Author: Joseph DelCioppio < joseph.delcioppio@gmail.com > | |
" URL: https://spacevim.org | |
" License: GPLv3 | |
"============================================================================= | |
" The default color palette that Dracula.vim exports | |
" { | |
" 'bgdarker': ['#191A21', 234], | |
" 'bgdark': ['#21222C', 235], |
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
ActBlue | |
Basecamp | |
Big cartel | |
Box | |
Business Insider | |
CNN | |
Cleveland.com | |
Etsy | |
Github | |
Grubhub |
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
class RegistrationsController < ApplicationController | |
def create | |
# Some logic to sign up | |
render json: @user, each_serializer: UserSerializer | |
end | |
end |
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
def notify_user | |
Notification.create text: text do |notification| | |
notificaiton.user = followed_user | |
notification.notable = user | |
end | |
end |
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
require "capybara/rspec" | |
require 'rspec/example_steps' | |
require File.expand_path(File.dirname(__FILE__) + "/../spec_helper") | |
require File.expand_path(File.dirname(__FILE__) + "/support/helpers") | |
require File.expand_path(File.dirname(__FILE__) + "/support/paths") | |
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} | |
include ApplicationHelper | |
include HelperMethods | |
include FacebookAuthHelper |
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
--color -f TmuxNotifier |
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
module DEFT | |
class RemittanceSlip | |
def initialize(*credits) | |
@credits = credits | |
end | |
def print | |
output = print_header_record |
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
form { | |
counter-reset: form-number; | |
.control-group { | |
&:before{ | |
@include border-radius(20px); | |
content: counter(form-number); | |
counter-increment: form-number; |
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
PayableDecorator < ApplicationDecorator | |
decorates :payable | |
def due_date_in_words | |
if payable.due_date > Date.today | |
"#{due_date} (#{h.distance_of_time_in_words(payable.due_date, Date.today)} from now)" | |
elsif payable.due_date < Date.today | |
"#{due_date} (#{h.distance_of_time_in_words(payable.due_date, Date.today)} ago)" | |
else | |
"#{due_date} (today)" |
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
class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController | |
def harvest | |
# You need to implement the method below in your model | |
current_user.update_attributes(:harvest_token = request.env["omniauth.auth"][WHERE EVER THE TOKEN IS IN THE HASH HARVEST RETURNS] | |
redirect_to WHERE YOU WANT TO GO | |
end | |
end |
NewerOlder