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
#MAMP | |
alias mysql="/Applications/MAMP/library/bin/mysql" | |
alias mysqldump="/Applications/MAMP/library/bin/mysqldump" |
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
@mixin child-margin-fixer($selector:'*') { | |
& > #{$selector}:first-child, | |
& > #{$selector}:last-child, | |
& > #{$selector}:last-child > #{$selector}:last-child, | |
& > #{$selector}:last-child > #{$selector}:last-child > #{$selector}:last-child { | |
margin: 0; | |
} | |
} |
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
.view-section-teasers { | |
@include view-section-teaser-colors($it-connects-color--blue, $it-connects-color--box-blue); | |
clear:both; | |
display: block; | |
overflow: hidden; | |
margin-top: 2em; | |
@include breakpoint($break-section-teasers--columns--right) { | |
padding-left: 10em; | |
@include main-content-padding(margin,negative, 2em); | |
} |
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
buildir=`date +%m-%d-%Y-%I-%M` | |
echo $buildir | |
git clone [email protected]:phase2tech/psu.edu.git psu_profile | |
cd psu_profile | |
git checkout $1 | |
cd .. | |
bash psu_profile/build.sh $buildir | |
cd $buildir | |
cp ../html/.htaccess ./ | |
cd .. |
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
// ---- | |
// Sass (v3.3.4) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
@function splitString($string, $var, $location: 'first') | |
{ | |
$length : str-length($string); | |
$index : str-index($string,$var); | |
$first : str-slice($string,0,$index - 1); |
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
// PHOTOS Upload | |
var imagesrc; | |
function takePhoto() { | |
navigator.camera.getPicture(onSuccess, onFail, { quality: 30, destinationType: Camera.DestinationType.DATA_URL, correctOrientation:true }); | |
} | |
function onSuccess(imageData) { | |
var image = document.getElementById('photo-deposit'); | |
imagesrc = imageData; |
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
input[type="text"] { | |
-webkit-background-clip: border-box; | |
} |
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
{ | |
"binary_file_patterns": | |
[ | |
"*.jpg", | |
"*.jpeg", | |
"*.png", | |
"*.gif", | |
"*.ttf", | |
"*.tga", | |
"*.dds", |
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
// ---- | |
// Sass (v3.3.4) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
@function splitString($string, $var, $location: 'first') | |
{ | |
$length : str-length($string); | |
$index : str-index($string,$var); | |
$first : str-slice($string,0,$index - 1); |
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
/** | |
* Implements hook_form_FORM_ID_alter() for premium_plus_order_entityform_edit_form(). | |
* | |
* Replace the options with images from the taxonomy term | |
*/ | |
function sh_member_signup_form_premium_plus_order_entityform_edit_form_alter(&$form, &$form_state, $form_id) { | |
foreach ($form as $formitem_name => $formitem) { | |
if (isset($formitem['#attributes']['class']) && in_array('field-type-taxonomy-term-reference', $formitem['#attributes']['class'])) { | |
foreach ($formitem['und']['#options'] as $tid => $option) { | |
$term = taxonomy_term_load($tid); |