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 class="l-example"> | |
| <div class="l-example__a">A<br/> </div> | |
| <div class="l-example__b">B</div> | |
| </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
| jQuery(".i-star").each( | |
| function () { | |
| jQuery(this).click(); | |
| } | |
| ) |
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
| //just testing out command line implementation of SASSphp, a PHP implementation of Libsass | |
| // https://github.com/sensational/sassphp | |
| function sassprocessor_drush_command(){ | |
| $items = array(); | |
| $items['whatever'] = array( | |
| 'description' => dt('compiles using libsass via sassphp' ), | |
| ); | |
| return $items; |
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 class="main"> | |
| <div class="one container">la la la</div> | |
| <div class="two container">la </div> | |
| <div class="three container last">la</div> | |
| </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
| // ---- | |
| // Sass (v3.4.21) | |
| // Compass (v1.0.3) | |
| // ---- | |
| @import "singularitygs"; | |
| $yellow: #b58900; |
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 | |
| abstract class TestMigration extends Migration { | |
| public function __construct($arguments) { | |
| parent::__construct($arguments); | |
| $this->issuePattern = 'https://www.drupal.org/node/2539244:'; | |
| $this->team = array( |
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
| field_cache_clear(); | |
| field_delete_instance('field_downloads'); | |
| field_delete_field('field_downloads'); | |
| field_purge_batch(1); |
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
| $node_wrapper = entity_metadata_wrapper('node', '70'); | |
| dpm($node_wrapper->getPropertyInfo()); |
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
| $query = new EntityFieldQuery(); | |
| $query->entityCondition('entity_type', 'node') | |
| ->entityCondition('entity_id', '70'); | |
| $result = $query->execute(); | |
| dpm($result); |
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
| $node = node_load('70'); | |
| $field = field_get_items('node', $node, 'body'); | |
| dpm($field); | |
| OR | |
| $node_wrapper = entity_metadata_wrapper('node', '70'); | |
| dpm($node_wrapper->body->value()); |