This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media screen { | |
%icon { | |
transition: background-color ease .2s; | |
margin: 0 .5em; | |
} | |
} | |
@mixin icon($color, $url) { | |
@extend %icon; | |
background-color: $color; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT DISTINCT node.nid AS nid | |
FROM | |
node node | |
INNER JOIN field_data_field_academic_area_unlimited field_data_field_academic_area_unlimited ON node.nid = field_data_field_academic_area_unlimited.entity_id AND (field_data_field_academic_area_unlimited.entity_type = 'node' AND field_data_field_academic_area_unlimited.deleted = '0') | |
INNER JOIN field_data_field_region_of_interest field_data_field_region_of_interest ON node.nid = field_data_field_region_of_interest.entity_id AND (field_data_field_region_of_interest.entity_type = 'node' AND field_data_field_region_of_interest.deleted = '0') | |
WHERE (( (node.status = '1') AND (node.type IN ('announcement')) )AND( (field_data_field_academic_area_unlimited.field_academic_area_unlimited_tid = '10001') OR (field_data_field_region_of_interest.field_region_of_interest_tid = '26551') )) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Code for the GSB Resources feature. | |
*/ | |
include_once 'gsb_resources.features.inc'; | |
require_once dirname(__FILE__) . '/gsb_resources.formatters.inc'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_views_pre_execute(). | |
*/ | |
function gsb_feature_alumni_reunion_agenda_item_display_views_pre_execute(view &$view) { | |
if ($view->name == 'gsb_event') { | |
dpm($view); | |
dpm('view name: ' . $view->name); | |
$query = &$view->build_info['query']; | |
$query_string = (string)$query; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Gets the custom section titles - with separated paths. | |
* | |
* @return array | |
* An array of custom section titles - with separated paths (cause you 'gotta keep'em separated). | |
*/ | |
function gsb_custom_section_title_get_sections_separate_paths() { | |
$section_titles = gsb_custom_section_title_get_sections(); | |
$titles_out = array(); | |
foreach($section_titles as $title) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _wrapper_debug($w) { | |
$values = array(); | |
foreach ($w->getPropertyInfo() as $key => $val) { | |
$values[$key] = $w->$key->value(); | |
} | |
return $values; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Implements hook_views_pre_execute(). | |
*/ | |
function gsb_feature_news_display_views_pre_execute(view &$view) { | |
if ($view->name == 'news_two') { | |
dpm($view); | |
$query1 = &$view->build_info['query']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function example() { | |
var o = {}, i = 0; | |
for (i = 0; i < 3; i++) { | |
o[i] = function() { | |
console.log(i); | |
}; | |
} | |
o[0](); | |
o[1](); | |
o[2](); |
OlderNewer