Skip to content

Instantly share code, notes, and snippets.

View rabellamy's full-sized avatar

Robert Anthony Bellamy rabellamy

View GitHub Profile
@rabellamy
rabellamy / corinne.js
Last active December 13, 2015 18:18
Nice scroll
(function($){
$(document).ready(function($){
// Scroll from header to menu in footer for small-screen devices
$("#bye").click(function(event) {
event.preventDefault();
var full_url = this.href;
var parts = full_url.split('#');
var trgt = parts[1];
var target_offset = $('#'+trgt).offset();
$view = new view();
$view->name = 'the_academy_of_vocal_arts';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Gallery';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
@rabellamy
rabellamy / gist:6016560
Created July 17, 2013 00:27
Claudina's jekyll command
jekyll serve --baseurl '' --watch
(function($){
$(document).ready(function($) {
$('.about-what-toggle').click(function(event) {
event.preventDefault();
if($(this).parent().find('.about-what-bullet_bottom6').hasClass('show-about-bottom')){
$(this).parent().find('.about-what-bullet_bottom6').removeClass('show-about-bottom');
} else {
$(this).parent().find('.about-what-bullet_bottom6').addClass('show-about-bottom');
}
});
{
"username": "",
"password": ""
}
@rabellamy
rabellamy / singularity_clear_syntax.scss
Created August 15, 2013 21:13
singularity clear syntax
ul {
@include breakpoint(max-width 48em) {
@include grid-span(1, 1, $options: "both");
margin-bottom: 1.9em;
}
}
diff --git a/core/modules/aggregator/tests/modules/aggregator_test/aggregator_test.module b/core/modules/aggregator/tests/modules/aggregator_test/aggregator_test.module
index 4427a3a..b3d9bbc 100644
--- a/core/modules/aggregator/tests/modules/aggregator_test/aggregator_test.module
+++ b/core/modules/aggregator/tests/modules/aggregator_test/aggregator_test.module
@@ -1,75 +1 @@
<?php
-
-use Drupal\Component\Utility\Crypt;
-use Symfony\Component\HttpFoundation\RedirectResponse;
-
diff --git a/core/modules/aggregator/tests/modules/aggregator_test/aggregator_test.routing.yml b/core/modules/aggregator/tests/modules/aggregator_test/aggregator_test.routing.yml
index 97e91d4..58017c9 100644
--- a/core/modules/aggregator/tests/modules/aggregator_test/aggregator_test.routing.yml
+++ b/core/modules/aggregator/tests/modules/aggregator_test/aggregator_test.routing.yml
@@ -1,7 +1,10 @@
aggregator_test_feed:
- pattern: 'aggregator/test-feed'
+# pattern: '/aggregator/test-feed/{use_last_modified}/{use_etag}'
+ pattern: '/aggregator/test-feed'
defaults:
[alias]
hist = log --pretty=format:\"%C(cyan)%h %C(green)%ad%Creset | %s %C(yellow)%d %C(magenta)[%an]\" --graph --date=short
st = status
stat = status
ci = commit
co = checkout
[color]
branch = auto
diff = auto
<?xml version="1.0" encoding="UTF-8"?>
<rss version="0.91">
<channel>
<title>Example</title>
<link>http://example.com</link>
<description>Example updates</description>
<language>en-us</language>
<copyright>Copyright 2000, Example team.</copyright>
<managingEditor>editor@example.com</managingEditor>
<webMaster>webmaster@example.com</webMaster>