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
// animate scroll put this on (PAGE B) | |
var elementClick = window.location.hash | |
var destination = $(elementClick).offset().top; | |
$("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination}, 1100, function() { | |
window.location.hash = elementClick | |
}); |
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
<div class="record" data-id="<%= user.id %>"> | |
<p><b>ID: </b> <%= user.id %></p> | |
<p><b>Name: </b> <%= user.name %></p> | |
<p><b>Location: </b> <%= user.location %> </p> | |
<p><%= link_to 'Show', user %> | <%= link_to 'Edit', edit_user_path(user) %> | <%= link_to 'Destroy', user, method: :delete, data: { confirm: 'Are you sure?' } %> </p> | |
</div> |
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
<!-- before --> | |
<script src="https://gist.github.com/username/gist_id.js"></script> | |
<script src="https://gist.github.com/username/gist_id.js?file=file_name"></script> | |
<!-- after --> | |
<div class="gist" data-src="https://gist.github.com/username/gist_id.json"></div> | |
<div class="gist" data-src="https://gist.github.com/username/gist_id.json" data-file="file_name"></div> |
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
# add paperclip | |
gem 'paperclip', '~>3.4.2' | |
# add vestal versions | |
gem 'vestal_versions', :git => 'git://github.com/laserlemon/vestal_versions' |
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
/* | |
* This is a manifest file that'll be compiled into application.css, which will include all the files | |
* listed below. | |
* | |
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, | |
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path. | |
* | |
* You're free to add application-wide styles to this file and they'll appear at the top of the | |
* compiled file, but it's generally better to create a new file per style scope. | |
* |
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
source 'https://rubygems.org' | |
# default gems here | |
#--------------------------- | |
# add paperclip and bootstrap | |
gem "paperclip", "~> 4.1" | |
gem 'bootstrap-sass', '~> 3.1.1' |
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
# Modems configuration | |
# | |
# Example and default values | |
# | |
# group = modems | |
# id = "my-id" | |
# name = "my-name" | |
# detect-string = "MODEM" | |
# detect-string2 = "" [Default] | |
# init-string = "AT+CNMI=1,2,0,0,0" [Default] |
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
// turbolinks addthis | |
var initAdthis; | |
initAdthis = function(){ | |
// Remove all global properties set by addthis, otherwise it won't reinitialize | |
for (var i in window) { | |
if (/^addthis/.test(i) || /^_at/.test(i)) { | |
delete window[i]; | |
} | |
} |
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
gem 'faker', github: 'stympy/faker' | |
gem 'rack-contrib' | |
gem 'soulmate', :require => 'soulmate/server' |
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
100 = :continue | |
101 = :switching_protocols | |
102 = :processing | |
200 = :ok | |
201 = :created | |
202 = :accepted | |
203 = :non_authoritative_information | |
204 = :no_content | |
205 = :reset_content | |
206 = :partial_content |
OlderNewer