Skip to content

Instantly share code, notes, and snippets.


arshad arshad

View GitHub Profile
arshad / gist:8997702
Created Feb 14, 2014
Equal column heights for Bootstrap
View gist:8997702
margin-bottom: -99999px;
padding-bottom: 99999px;
arshad / gist:10392401
Created Apr 10, 2014
Drupal - Get field value using entity api
View gist:10392401
$value = entity_metadata_wrapper('node', $node)->field_foo_bar->value();
arshad / _font.scss
Last active Aug 29, 2015
font-face for Radix
View _font.scss
// Font faces
// --------------------------------------------------
@import "compass/css3/font-face";
$font-faces: ('GothamRnd-Medium', 'GothamRnd-Book');
@each $font-face in $font-faces {
@include font-face(
"#{$font-face}.woff", woff,
View grid
<div class="row">
<div class="col-md-4">Column 1</div>
<div class="col-md-8">Column 2</div>
arshad / gist:8e4420f0045d72970c9d
Created May 16, 2014
Radix - disable responsive
View gist:8e4420f0045d72970c9d
// Media queries breakpoints
// --------------------------------------------------
// Extra small screen / phone
// Note: Deprecated $screen-xs and $screen-phone as of v3.0.1
$screen-xs: 1px !default;
$screen-xs-min: $screen-xs !default;
$screen-phone: $screen-xs-min !default;
// Small screen / tablet
View gist:69af1fd959c6df41211d
* Display a day view.
function template_preprocess_calendar_day(&$vars) {
$vars['view']->style_with_weekno = FALSE;
$view = $vars['view'];
$rows = $vars['rows'];
$item_count = 0;
$by_hour_count = 0;
arshad / gist:8b4c6e2404825c387450
Created Sep 2, 2014
Switch Panopoly Layouts to Radix Layouts.
View gist:8b4c6e2404825c387450
* Replace Panopoly layouts with Radix Layouts
* @param $plugin
* @param $info
function radix_ctools_plugin_post_alter(&$plugin, &$info) {
// If Radix Layouts module is installed.
// Switch all Panopoly Panels layouts to Radix Layouts.
if (module_exists('radix_layouts')) {
$radix_layouts_path = drupal_get_path('module', 'radix_layouts');
arshad / gist:3f78074de48ae295b341
Created Dec 1, 2014
Cocoapods stuck on “analyzing dependencies”
View gist:3f78074de48ae295b341

Run the following:

$ pod repo remove master
$ pod setup
$ pod install
arshad / gist:5ea3aa3a4ce4cd345aa8
Created Dec 9, 2015
Drupal + Bootstrap + Sass + Gulp + Browsersync + FontAwesome
View gist:5ea3aa3a4ce4cd345aa8
Download and enable radix: drush en radix -y; drush vset theme_default radix
Create a subtheme: drush cc all; drush radix "Subtheme"
Set default theme: drush en subtheme -y; drush vset theme_default subtheme
Install required modules: cd /path/to/subtheme; npm run setup
Update browserSyncProxy in /path/to/subtheme/config.json
Watch: gulp