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
| $(document).ready(function() { | |
| var flickerAPI = "http://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=?"; | |
| $('form').submit(function (evt) { | |
| var $submitButton = $('#submit'); | |
| var $searchField = $('#search'); | |
| evt.preventDefault(); | |
| $searchField.prop("disabled",true); |
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
| .wrap { | |
| width: 250px; | |
| clear: both; | |
| margin:0 auto; | |
| } | |
| .form-wrap input { | |
| width: 100px; | |
| clear: both; | |
| } | |
| label{ |
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
| .logo a { | |
| margin:; 0.4em 0; | |
| background: transparent url(asset_path(#{"logo-name"})) no-repeat center center ; | |
| background-size: contain; | |
| display: block; | |
| height: 34px; | |
| } |
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
| .truncate { | |
| white-space: nowrap; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| } |
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
| EDIT/UPDATE: git add --all (use this instead) | |
| git add -u |
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
| DO NOT INSTALL PG USING THE PGAPP!!! INSTALL VIA BREW. | |
| Then, from the command line, run: | |
| ARCHFLAGS="-arch x86_64" gem install pg |
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
| class ApplicationController < ActionController::Base | |
| # Prevent CSRF attacks by raising an exception. | |
| # For APIs, you may want to use :null_session instead. | |
| protect_from_forgery | |
| before_filter :cors_preflight_check | |
| after_filter :cors_set_access_control_headers | |
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
| @vendorsfound = Vendor.where("first like ? OR last like ?", "%" + params[:first] + "%", "%" + params[:first] + "%").order("LOWER(last) ASC, first") |
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
| $("#searchloading").html("<img src='/assets/loader.gif' alt='loading...' />"); | |
| // then: | |
| $("#searchloading").css("display", "none"); |
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
| Create a local .gitignore | |
| If you create a file in your repository named .gitignore, Git uses it to determine which files and directories to ignore, before you make a commit. | |
| A .gitignore file should be committed into your repository, in order to share the ignore rules with any other users that clone the repository. | |
| GitHub maintains an official list of recommended .gitignore files for many popular operating systems, environments, and languages in the github/gitignore public repository. | |
| In Terminal, navigate to the location of your Git repository. | |
| Enter: touch .gitignore to create a .gitignore file. |