Skip to content

Instantly share code, notes, and snippets.

View Ravenna's full-sized avatar

Ravenna Ravenna

View GitHub Profile
<?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");
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');
#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
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');
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(
<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>
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>
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}"
/*
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/ */
<?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');