Skip to content

Instantly share code, notes, and snippets.

@timodwhit
timodwhit / Select List SCSS
Created April 10, 2014 20:22
Select List
.form-type-select {
float: left;
width: 100%;
clear: both;
position: relative;
@include respond-to('large') {
width: 80%
}
select {
width: 100%;
@timodwhit
timodwhit / BorderArrowMixin
Created June 30, 2014 16:07
Border Arrow
@mixin border-arrow($side, $height, $color) {
position: relative;
&:before {
content: "";
position: absolute;
display: block;
height: $height;
width: $height;
border-style: solid;
border-color: transparent;
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
hostname -f
Stdout from the command:
Stderr from the command:
Verifying that +timodwhit is my openname (Bitcoin username). https://onename.io/timodwhit
"scripts":{
"post_deploy":[],
"post_install":[],
"post_import":[],
"post_update"[]
}
@timodwhit
timodwhit / drupal_block.sublime-snippet
Last active August 29, 2015 14:13
Sublime Snippet for Custom Block in Drupal 7
<snippet>
<content><![CDATA[
/**
* Implements hook_block_info().
*/
function ${1:YOUR_MODULE}_block_info() {
\$blocks = array();
\$blocks['${2:YOUR_BLOCK_ABC}'] = array(
'info' => t('${3:YOUR BLOCK NAME}'),
);
@timodwhit
timodwhit / gist:eda8daac91cc01e6805e
Last active August 29, 2015 14:13
Backdrop JSON
{
"name": "backdrop",
"description": "The base role that gets added to every machine.",
"chef_type": "role",
"json_class": "Chef::Role",
"default_attributes": {},
"override_attributes": {
"drupal": {
"sites": {
"backdrop": {
"multisite" : "/assets/distro/current/htdocs/sites/"
unless site[:drupal][:multisite].nil?
link release_path do
to "#{site[:drupal][:multisite]}/#{site_name}"
end
release_path = "#{site[:drupal][:multisite]}/#{site_name}"
end
@timodwhit
timodwhit / view_list.php
Last active August 29, 2015 14:20
Get a list of views of a certain type
// Return an array of Data Export Views for a select list.
$vde_views = array();
// It is true, there is no better way to parse the views.
$views = views_get_enabled_views();
// Loop through each enabled views.
foreach ($views as $view) {
$id = $view->name;
$human_name = $view->human_name;
// Now loop through each display of each view.
foreach ($view->display as $display) {
@timodwhit
timodwhit / menu_links.inc
Last active August 29, 2015 14:27
Menu Links Migrations