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
#!/bin/bash | |
# Sync a Drupal database and contents of files directory between two | |
# development environments. | |
# | |
# Execute this script on the destination (DEST) server. | |
# A MEMBERNAME.aliases.drushrc.php file is required on the SOURCE server. | |
# See http://gist.github.com/421721 and remove example.local alias | |
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
// Paste into Firebug or Chrome Dev Tools console | |
// when viewing a page with multiple checkboxes. | |
(function(d) { | |
var input = d.querySelectorAll('input[type="checkbox"]'); | |
var i = input.length; | |
while (i--) { | |
input[i].checked = true; | |
} |
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
.background_clip | |
// Seriously, why isn't this just the | |
// freakin' default in all browsers? | |
+background-clip(padding-box) | |
// Not sure what this does? Have a looksie... | |
// http://compass-style.org/examples/compass/css3/background-clip | |
// Crucial, if you have rounded corners on something with | |
// both background color and a border. Without, background |
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_library(). | |
*/ | |
function MYMODULE_library() { | |
// jQuery UI from Google. | |
$libraries['ui'] = array( | |
'title' => 'jQuery UI: All', | |
'website' => 'http://jqueryui.com', |
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 | |
function stripe_test_menu() { | |
$items = array(); | |
$items['stripe-test'] = array( | |
'title' => t('Stripe Test'), | |
'page callback' => 'drupal_get_form', | |
'page arguments' => array('stripe_test_form'), | |
'access callback' => TRUE, |
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
body, | |
div.page-content.two-column-layout, | |
div.page-content.three-column-layout { | |
background: none !important; | |
} | |
.two-column-layout #column-two { | |
margin-top: 0px !important; | |
padding-top: 0px !important; | |
} |
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
o | |
_ | _ | |
[| ◡ ◡ |] | |
_ - ⏝ - _ | |
| | | |
| | | | |
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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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
// | |
// @file | |
// Sitewide imports, variables and mixins. | |
// | |
@import "compass/css3"; | |
@import "compass/typography"; | |
@import "sassy-buttons"; | |
@import "utilities"; | |
@import "grids"; |
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
<? | |
require_once('basecamp/Basecamp.class.php'); // see http://code.google.com/p/basecamp-php-api/ | |
$bc = new Basecamp('https://[subdomain].basecamphq.com/','[username]','[password]', 'simplexml'); | |
$people = $bc->getPeopleForCompany([company ID]); | |
$person_id = array(); | |
foreach ($people['body']->person as $person) { |
OlderNewer