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 | |
function _pwdc_section_save_stylesheet($data, $tid = NULL, $name = NULL) { | |
$path = 'public://pwdc_section'; | |
if (file_prepare_directory($path, FILE_CREATE_DIRECTORY)) { | |
$name = $name ? $name : ($tid ? 'pwdc-section-' . $tid . '.css' : 'pwdc-section.css'); | |
$file = $path . '/' . $name; | |
file_unmanaged_save_data($data, $file, FILE_EXISTS_REPLACE); | |
// Set standard file permissions for webserver-generated files. | |
drupal_chmod($file); |
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
(function($) { | |
Drupal.behaviors.yourModule = { | |
attach: function (context, settings) { | |
// Your JS Here! | |
} | |
} | |
})(jQuery); |
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 | |
/** | |
* @file | |
* Local sync tasks to run after drush sql-sync on target site. | |
* | |
* @author Nicholas Alipaz - http://nicholas.alipaz.net/ (email through contact form) | |
*/ | |
/** | |
* Implements hook_drush_help_alter(). |
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 | |
function MODULE_NAME_form_alter($form, &$form_state, $form_id) { | |
... | |
$form['#after_build'] = array('MODULE_NAME_add_assets'); | |
... | |
} | |
function MODULE_NAME_add_assets($element) { | |
drupal_add_js(......); |
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
alias ll='ls -la' | |
soundfile="/home/nalipaz/Music/Sound Effects/smb_stage_clear.wav" | |
function scp() { | |
/usr/bin/scp "$@" && /usr/bin/aplay "$soundfile" | |
} | |
function mysqldump() { | |
/usr/bin/mysqldump "$@" && /usr/bin/aplay "$soundfile" | |
} | |
function drush() { | |
case "$1" in |
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 | |
function ccs_deploy_update_7108() { | |
$beans = array( | |
'popular-brands', | |
'popular-courses', | |
'featured-prizes', | |
'user-testimonials', | |
'globalcs-get-started-button' | |
); | |
$weight = 2; |
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 | |
$types['video'] = new stdClass(); | |
$types['video']->name = 'video'; | |
$types['video']->label = "Video"; | |
$types['video']->base = TRUE; | |
$types['video']->type_callback_args = array( | |
'match_type' => 'all', | |
'mimetypes' => array('/^video/'), | |
'extensions' => array('mov', 'mp4', 'avi'), |
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
Screen 0: minimum 320 x 200, current 3840 x 1200, maximum 8192 x 8192 | |
eDP1 connected primary 1920x1080+0+0 (0x45) normal (normal left inverted right x axis y axis) 308mm x 173mm | |
Identifier: 0x42 | |
Timestamp: 36422116 | |
Subpixel: unknown | |
Gamma: 1.0:1.0:1.0 | |
Brightness: 1.0 | |
Clones: | |
CRTC: 0 | |
CRTCs: 0 1 2 |
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
output HDMI1 | |
off | |
output eDP1 | |
mode 1920x1080 | |
pos 0x0 | |
primary | |
rate 60.00 |
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
output eDP1 | |
mode 1920x1080 | |
pos 0x0 | |
primary | |
output HDMI1 | |
mode 1920x1200 | |
pos 1920x0 |
OlderNewer