This file contains hidden or 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
<div id="{{block_html_id}}" class="{{classes}}" {{attributes}}> | |
{% render(title_prefix) %} | |
{% if block.subject %} | |
<h2{{title_attributes}}>{{block.subject}}</h2> | |
{% endif %} | |
{% render(title_suffix) %} | |
{{content}} | |
</div> |
This file contains hidden or 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
class Prime23(object): | |
step = 0 | |
prime = 1 | |
cases = { | |
1 : 2, | |
2 : 3, | |
3 : 5 | |
} | |
@classmethod |
This file contains hidden or 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
[ | |
{ | |
"id": "lifelong-partnership", | |
"component": "frame", | |
"layout": "FullWidthLayout", | |
"navigation" : { | |
"title": "A Lifelong Partnership", | |
"target": "lifelong-partnership" | |
}, | |
"children": [ |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
.media {margin:10px;} | |
.media, .bd {overflow:hidden; _overflow:visible; zoom:1;} | |
.media .img {float:left; margin-right: 10px;} | |
.media .img img{display:block;} | |
.media .imgExt{float:right; margin-left: 10px;} | |
</style> |
This file contains hidden or 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
$file = file_load($fid); | |
$stream_wrapper = file_stream_wrapper_get_instance_by_uri($file->uri); | |
$path = $stream_wrapper->getExternalUrl(); |
This file contains hidden or 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 | |
function drush_om_timeslot_scheduler_migrate_scheduling_rules($count, $old_field_name, $new_field_name) { | |
$watermark = variable_get('om_timeslot_scheduler_rules_migration_watermark', 0); | |
$query = db_select('node', 'n'); | |
$query->fields('n', array()); | |
$query->condition('type', 'om_timeslot_event', '='); | |
$query->range($watermark, $count); | |
$resource = $query->execute(); | |
$updates_performed = FALSE; | |
$map = drush_om_timeslot_scheduler_scheduling_rule_map(); |
This file contains hidden or 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
{ | |
"actions": [ | |
{ | |
"date": "2015-01-29 00:00:00", | |
"action": "Introduced In House - Assigned to Agriculture, Livestock, & Natural Resources + Appropriations", | |
"type": [ | |
"bill:introduced" | |
], | |
"related_entities": [ | |
{ |
This file contains hidden or 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 only screen and (max-width:1240px) { | |
/** CSS for screens smaller than 1240px; **/ | |
} | |
@media only screen and (max-width:1175px) { | |
/** CSS for screens smaller than 1175px; **/ | |
} | |
@media only screen and (max-width:750px) { | |
/** CSS for screens smaller than 750px; **/ | |
} | |
@media only screen and (max-width:400px) { |
This file contains hidden or 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 twig_shutdown() { | |
$is_error = false; | |
if ($error = error_get_last()){ | |
switch($error['type']){ | |
case E_ERROR: | |
case E_CORE_ERROR: | |
case E_COMPILE_ERROR: | |
case E_USER_ERROR: | |
case E_PARSE: | |
$is_error = TRUE; |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<title>Impact Story Rotator</title> | |
<style> | |
.cycle-slideshow { | |
width: 500px; | |
margin: auto; | |
} | |
.slide { |