Skip to content

Instantly share code, notes, and snippets.

View rabellamy's full-sized avatar

Robert Anthony Bellamy rabellamy

View GitHub Profile
<?php
/**
* @file
* Default theme implementation to display a region.
*
* Available variables:
* - $content: The content for this region, typically blocks.
* - $classes: String of classes that can be used to style contextually through
* CSS. It can be manipulated through the variable $classes_array from
function getDirection(e, t) {
var n = e.width(), r = e.height(), i = (t.x - e.offset().left - n / 2) * (n > r ? r / n : 1), s = (t.y - e.offset().top - r / 2) * (r > n ? n / r : 1), o = Math.round((Math.atan2(s, i) * (180 / Math.PI) + 180) / 90 + 3) % 4;
switch (o) {
case 0:
return "top";
case 1:
return "right";
case 2:
return "bottom";
default:
[xdebug]
zend_extension="/usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so";
xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_dir="/Users/buscay/Sites/logs/xdebug/"
;xdebug.idekey="macgdbp"
;xdebug.remote_handler="dbgp";
;xdebug.remote_mode=req
;xdebug.remote_enable=1
<?php
/**
* @file
* Contains \Drupal\aggregator_test\Controller\AggregatorTestRssController.
*/
namespace Drupal\aggregator_test\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;
{
"rulers": [80],
"tab_size": 2,
"translate_tabs_to_spaces": true,
"use_tab_stops": true,
"trim_automatic_white_space": true,
"trim_trailing_white_space_on_save": true,
"ensure_newline_at_eof_on_save": true,
"fallback_encoding": "UTF-8",
"default_line_ending": "unix",
@rabellamy
rabellamy / mixin.scss
Last active December 21, 2015 20:18
Hackety Hack
@mixin button-learnmore {
@include sassy-button(flat, 0.5em, 1.4em, #97d1d9, false, #dff6f9, none, false);
@include box-shadow(rgb(82, 144, 152) .01em 0.1em 0px, rgb(82, 144, 152) 0 .5px 0 inset);
font-family: 'BookSC';
letter-spacing: 0.1em;
padding-top: 0.4em;
padding-bottom: 0.55em;
padding-left: 1em;
padding-right: 1em;
position: relative;
//About What Toggle
(function($){
$(document).ready(function($) {
$('.about-what-overview-button-txt-000').click(function(event) {
event.preventDefault();
if($(this).parentsUntil('.about-what-region1').find('.about-what-overview-block-320-bottom').hasClass('about-what-toggle-display')) {
$(this).parentsUntil('.about-what-region1').find('.about-what-overview-block-320-bottom').removeClass('about-what-toggle-display');
} else {
$(this).parentsUntil('.about-what-region1').find('.about-what-overview-block-320-bottom').addClass('about-what-toggle-display');
}
@mixin nav-padding-menuitem($menu-class, $header-viewport, $menuitem-padding) {
@while $header-viewport < $viewport-max {
@include breakpoint(#{$header-viewport}) {
@if $menu-class == site-header-navigation-menuitem2-txt-000 {
padding: 0 0 0 #{$menuitem-padding};
} @else if $menu-class == site-header-navigation-menuitem3-txt-000 {
padding: 0 #{$menuitem-padding} 0 #{$menuitem-padding};
} @else if $menu-class == site-header-navigation-menuitem4-txt-000 {
padding: 0 #{$menuitem-padding} 0 0;
}
// Small Font Size Scaling
font-size: 12pt;
text-rendering: optimizeLegibility;
@for $i from 1 through 15 {
@include breakpoint((240px + 20px * $i)) {
font-size: 12pt + 0.75pt * $i;
}
}
// Medium Font Size Scaling
@rabellamy
rabellamy / bowerNpmInstall
Created December 4, 2013 16:10
Here are the errors that I am receiving. I hope this helps. Thanks in advance.
╭─@rabellamy.pme.penton.com ~/Sites/NextAccelerator-style-prototype ‹system› ‹master*›
╰─ bower install & npm install 3 ↵
[2] 4983
npm WARN package.json next-accelerator-styleguide@0.0.0 No description
npm WARN package.json next-accelerator-styleguide@0.0.0 No repository field.
npm WARN package.json next-accelerator-styleguide@0.0.0 No README data