Skip to content

Instantly share code, notes, and snippets.

View tuffs's full-sized avatar
🌎
Ready for work! NextJS, React, Ruby on Rails and Postgres

Devon Kiss tuffs

🌎
Ready for work! NextJS, React, Ruby on Rails and Postgres
View GitHub Profile

Add Font-Awesome 4.7 to Rails 7 App

Add the correct NPM package

We will be using the following: fontawesome-4.7 NPM package (https://www.npmjs.com/package/fontawesome-4.7)

yarn add fontawesome-4.7

Import FontAwesome Stylesheets to SCSS

#application.bootstrap.scss

@tuffs
tuffs / todos-goals.html
Last active August 19, 2018 03:43
React + Redux
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Todos/Goals</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/4.0.0/redux.min.js"></script>
<script src='https://unpkg.com/[email protected]/umd/react.development.js'></script>
<script src='https://unpkg.com/[email protected]/umd/react-dom.development.js'></script>
<script src='https://unpkg.com/[email protected]/babel.min.js'></script>
<script type="text/javascript" src="https://tylermcginnis.com/goals-todos-api/index.js"></script>
@tuffs
tuffs / sublime_text_3_settings.json
Last active June 14, 2018 01:10
DKS Sublime Text 3 Mac OS X Settings File
{
"auto_complete_with_fields": true,
"bold_folder_labels": true,
"caret_extra_width": 10,
"caret_style": "phase",
"color_scheme": "Packages/Color Scheme - Chromodynamics/Chromodynamics.tmTheme",
"font_face": "Monaco",
"font_size": 18,
"highlight_line": true,
"ignored_packages":
@tuffs
tuffs / spec_helper.rb
Created June 3, 2018 15:45
RSpec with Capybara spec_helper.rb
RSpec.configure do |config|
config.expect_with :rspec do |expectations|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
end
config.mock_with :rspec do |mocks|
mocks.verify_partial_doubles = true
end
config.shared_context_metadata_behavior = :apply_to_host_groups
end
@tuffs
tuffs / rails_helper.rb
Created June 3, 2018 15:42
RSpec with Capybara rails_helper.rb
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
abort("The Rails environment is running in production mode!") if Rails.env.production?
require 'spec_helper'
require 'rspec/rails'
require 'capybara/rails'
#WARDEN SETUP
# include Warden::Test::Helpers
@tuffs
tuffs / bootstrap-tabs.html
Created March 9, 2016 10:14 — forked from mnewt/bootstrap-tabs.html
bootstrap tabs example
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Le styles -->
<link href="../bootstrap/css/bootstrap.css" rel="stylesheet">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script>
</head>
<body>