Skip to content

Instantly share code, notes, and snippets.

@tuffs
tuffs / todos-goals.html
Last active Aug 19, 2018
React + Redux
View todos-goals.html
<!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/react@16.3.0-alpha.1/umd/react.development.js'></script>
<script src='https://unpkg.com/react-dom@16.3.0-alpha.1/umd/react-dom.development.js'></script>
<script src='https://unpkg.com/babel-standalone@6.15.0/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 Jun 14, 2018
DKS Sublime Text 3 Mac OS X Settings File
View sublime_text_3_settings.json
{
"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 Jun 3, 2018
RSpec with Capybara spec_helper.rb
View 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 Jun 3, 2018
RSpec with Capybara rails_helper.rb
View 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 Mar 9, 2016 — forked from mnewt/bootstrap-tabs.html
bootstrap tabs example
View bootstrap-tabs.html
<!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>