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
<?php | |
// Please specify your Mail Server - Example: mail.yourdomain.com. | |
ini_set("SMTP","mail.tridentseafoods.com"); | |
// Please specify an SMTP Number 25 and 8889 are valid SMTP Ports. | |
ini_set("smtp_port","25"); |
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
Controller: | |
@hash = Gmaps4rails.build_markers(@users) do |user, marker| | |
marker.lat user.location.latitude | |
marker.lng user.location.longitude | |
marker.infowindow user.email | |
end | |
View: | |
<script> | |
handler = Gmaps.build('Google'); |
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
#controller | |
def users_list | |
@users = User.all | |
@close = Location.near(current_user.location.address, 5) | |
@hash = Gmaps4rails.build_markers(@users) do |user, marker| | |
marker.lat user.location.latitude | |
marker.lng user.location.longitude | |
marker.infowindow user.email |
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
var lastTop; | |
$('a.ai1ec-event-container').each(function(i){ | |
var top = $(this).css('top'); | |
console.log(top); | |
var index; | |
if(top = lastTop){ | |
console.log('exception'); | |
var mulitple = index * 200; | |
$(this).css('margin-left', mulitple+'px'); |
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
function customize_groups_custom_fields( $groups_mapping = array() ) { | |
$groups_mapping['group_assistant_leaders'] = array( | |
'api_mapping' => 'leaders', | |
'data_type' => 'object', | |
'child_object' => array( | |
'group_assistant_leader' => array( | |
'api_mapping' => 'leader', | |
'data_type' => 'object', | |
'child_object' => array( |
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
<h1>New piece</h1> | |
<% form_for @piece, :html => { :multipart => true } do |f| %> | |
<%= f.error_messages %> | |
<p> | |
<%= f.label :title %><br /> | |
<%= f.text_field :title %> | |
</p> | |
<p> |
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
SyntaxError in Pieces#new | |
Showing app/views/pieces/new.html.erb where line #11 raised: | |
/Users/tjs/Sites/goodtest/app/models/photo.rb:15: syntax error, unexpected kEND, expecting $end | |
Extracted source (around line #11): | |
8: <%= f.text_field :title %> | |
9: </p> |
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 'capistrano/ext/multistage' | |
set :application, "Dixie Stark Home" | |
set :repository, "git://github.com/Ravenna/Dixie-Stark-Home.git" | |
# If you aren't deploying to /u/apps/#{application} on the target | |
# servers (which is the default), you can specify the actual location | |
# via the :deploy_to variable: | |
# set :deploy_to, "/var/www/#{application}" |
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
/* | |
Theme Name: THEME NAME | |
Theme URI: http://theme-url.com/ | |
Author: Ravenna | |
Author URI: http://ravennainteractive.com/ | |
Description: BASIC DESCRIPTION OF THEME OR SITE | |
Version: 1.0 | |
*/ | |
/* DO NOT PUT ANTHING ELSE IN THIS FILE. USE /assets/sass/ */ |
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
<?php | |
function fonts(){ | |
wp_enqueue_style( 'FontAwesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css'); | |
wp_enqueue_style( 'roboto', 'http://fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic,700'); | |
} | |
function styles(){ | |
wp_enqueue_style( 'bootstrap', '//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css'); |
OlderNewer