Skip to content

Instantly share code, notes, and snippets.

wesruv wesruv

Block or report user

Report or block wesruv

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@wesruv
wesruv / gist:9469693
Last active Aug 29, 2015
Dynamic Drupal page preprocessors for taxonomies
View gist:9469693
function TEMPLATE_preprocess_page(&$variables) {
// Set some vars for ease
$node = isset($variables['node']) ? $variables['node'] : '';
$page = &$variables['page'];
// The good bit:
if(arg(0) == 'taxonomy') {
// Preprocess because it's a taxonomy
$function = __FUNCTION__ .'_taxonomy';
if(function_exists($function)) {
@wesruv
wesruv / grid-mixins
Created Jun 23, 2014
Stylus Grid Mixins
View grid-mixins
///
// Makes a column for the grid, assumes fluid colum unless told otherwise
// @param columnSpan integer Number of grid columns this layout column should span
// @param maxWidth unit Maximum with of the entire grid with units, e.g. 960px or 100% or 60em
// @param defaultPadding boolean Whether or not default padding should be included
// @param numberOfColumns integer Can specify the maximum number of columns in the grid, by default it is 12
///
make-column(columnSpan = null, maxWidth = 100%, defaultPadding = true, numberOfColumns = 12)
if defaultPadding
padding-left: 15px
@wesruv
wesruv / SassMeister-input.scss
Created Jul 14, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.0.rc.1)
// Compass (v1.0.0.alpha.20)
// ----
.teacher {
color: red;
font-family: Arial, sans-serif;
&--grade1 {
@extend .teacher;
@wesruv
wesruv / SassMeister-input.scss
Created Jul 14, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.0.rc.1)
// Compass (v1.0.0.alpha.20)
// ----
%teacher {
font-family: Arial, sans-serif;
}
.teacher {
View gist:57487e7e6e7034e82ac9
bundle exec sass scss/style--blue-alpha.scss css/style--blue-alpha.css --require=breakpoint --require=zen-grids --style=expanded --unix-newlines --precision=3 --debug-info --compass
bundle exec sass scss/style--blue-beta.scss css/style--blue-beta.css --require=breakpoint --require=zen-grids --style=expanded --unix-newlines --precision=3 --debug-info --compass
bundle exec sass scss/style--gold.scss css/style--gold.css --require=breakpoint --require=zen-grids --style=expanded --unix-newlines --precision=3 --debug-info --compass
bundle exec sass scss/style--green.scss css/style--green.css --require=breakpoint --require=zen-grids --style=expanded --unix-newlines --precision=3 --debug-info --compass
bundle exec sass scss/style--mint.scss css/style--mint.css --require=breakpoint --require=zen-grids --style=expanded --unix-newlines --precision=3 --debug-info --compass
bundle exec sass scss/style--olive.scss css/style--olive.css --require=breakpoint --require=zen-grids --style=expanded --unix-newlines --precision=3 -
View gist:32f95191c6c25a6a79f8
<ul>
<li>
<a class="addthis_button_facebook_follow social-links__facebook" fb:like:layout="button" fb:like:action="like" fb:like:href="https://www.facebook.com/BelowDeckBravo">Facebook</a>
</li>
<li>
<a class="addthis_button_twitter_follow addthis_button_preferred_1 social-links__twitter" tw:count="none" tw:screen_name="wesruv">Twitter</a>
</li>
<li>
<a class="addthis_button_tumblr_follow" href="http://tumblr.com/follow/wesruv">Tumblr</a>
</li>
View gist:1e827d6c61c4085732ae
In Markup:
<ul>
<li>
<a class="addthis_button_facebook_follow social-links__facebook" addthis:user="BelowDeckBravo"></a>
</li>
<li>
<a class="addthis_button_twitter_follow social-links__twitter" addthis:user="wesruv"></a>
</li>
<li>
<a class="addthis_button_tumblr_follow social-links__tumblr" addthis:user="wesruv"></a>
View pre-commit
#!/usr/bin/php
<?php
/**
* @file
* This is a Git pre-commit hook that informs you when you are
* about to commit whitespace or a debug function.
* From https://gist.github.com/naxoc/4150599
*/
$red = "\033[1;31m";
View ADBLOCKED ascension--videos--101_chapter_one
js_yve-ConhFzLauD78ueBazNHPHl3KjDrnyWfTH8q-NRE.js:318 Uncaught TypeError: undefined is not a function
101_chapter_one:64 GET http://940.test.syfy.com/sites/syfy/files/js/angular-touch.min.js.map 404 (Not Found)
tpPdk.js:2345 thePlatform PDK
tpPdk.js:2346 5.5.6.362723 (2014-09-19 2:25 PM)
syfyFW.js:24 :::::JOSH:::::
syfyFW.js:25 [prevObject: p.fn.p.init[1], context: document, selector: "body", constructor: function, init: function…]
MetricsPlugin-min.js:43 domainName : 940.test.syfy.com
MetricsPlugin-min.js:43 key bravo domain 940.test.syfy.com
MetricsPlugin-min.js:43 key cnbc domain 940.test.syfy.com
MetricsPlugin-min.js:43 key eonline domain 940.test.syfy.com
View ascension--videos--101_chapter_one
tpPdk.js:2345 thePlatform PDK
tpPdk.js:2346 5.5.6.362723 (2014-09-19 2:25 PM)
101_chapter_one:1 GET http://940.test.syfy.com/sites/syfy/files/js/angular-touch.min.js.map 404 (Not Found)
syfyFW.js:24 :::::JOSH:::::
syfyFW.js:25 [prevObject: p.fn.p.init[1], context: document, selector: "body", constructor: function, init: function…]
MetricsPlugin-min.js:43 domainName : 940.test.syfy.com
MetricsPlugin-min.js:43 key bravo domain 940.test.syfy.com
MetricsPlugin-min.js:43 key cnbc domain 940.test.syfy.com
MetricsPlugin-min.js:43 key eonline domain 940.test.syfy.com
MetricsPlugin-min.js:43 key e! domain 940.test.syfy.com
You can’t perform that action at this time.