Skip to content

Instantly share code, notes, and snippets.

View Ravenna's full-sized avatar

Ravenna Ravenna

View GitHub Profile
<div class="tax-nav-wrapper tax-nav-open">
<div class="tax-nav" style="float:left; wisdth: 25%;">
<div style="padding: 0 5px;">
<a href="#">Gold Coins</a>
<ul height:0; display: none;>
<li>Product 1</li>
</ul>
</div>
</div>
<div class="tax-nav-wrapper">
<div class="tax-nav" style="float:left;">
<a href="#">Gold Coins</a>
<ul>
<li>Product 1</li>
</ul>
</div>
<div class="tax-nav"></div>
<div class="tax-nav"></div>
<?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');
/*
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/ */
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(
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');
#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
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');
<?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");
<?php
$GIF_SIZE_WIDTHxHEIGHT = "80x45";
$DURATION_SECS = 6;
$FIRST_FRAME_NUM = 41;
$FRAME_SKIP = 1;
$PREROLL_SECS = 2;
foreach (glob("*.{mp4}", GLOB_BRACE) as $named)
{