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
var nodes = $("input[name^=node]").map(function(){return this.value;}); | |
for (var i = 0; i < 400; i++) { | |
$("input[value=" + nodes[i] + "]").attr('checked', 'checked') | |
}; | |
var nodes = $("input[name^=node]").map(function(){return this.value;}); for (var i = 0; i < 400; i++) { $("input[value=" + nodes[i] + "]").attr('checked', 'checked') }; |
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
/* =Grid >> Children (Full = Alpha + Omega) | |
--------------------------------------------------------------------------------*/ | |
.full {margin-left: 0; margin-right: 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
/** | |
* Remove spaceball divs from Flickr photo and all sizes-photo pages | |
*/ | |
function flickrRemoveSpaceball() { | |
var spaceball = false; | |
var parent; | |
if (document.getElementById("photo-drag-proxy")) { // on photo page | |
parent = document.getElementById("photo"); |
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 | |
/** | |
* Unified node edit/add page template suggestion for Drupal 6.x | |
* Filename: page-node-edit.tpl.php | |
* Rearrange the $vars['template_files'] array, put | |
* 'page-node-edit.tpl.php' to the end of array. | |
* | |
* (use this snipet in template.php, at the and of | |
* 'MYTHEME_preprocess_page' function) | |
*/ |
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
" arrow keys move visible lines | |
inoremap <Down> <C-R>=pumvisible() ? "\<lt>Down>" : "\<lt>C-O>gj"<CR> | |
inoremap <Up> <C-R>=pumvisible() ? "\<lt>Up>" : "\<lt>C-O>gk"<CR> | |
nnoremap <Down> gj | |
nnoremap <Up> gk | |
vnoremap <Down> gj | |
vnoremap <Up> gk | |
" toggle between number and relative number on ,l | |
nnoremap <leader>l :call ToggleRelativeAbsoluteNumber()<CR> |
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
# with filenames and linenumbers | |
grep -e ^function\ .*\( -r -n . | sed s/^.*\\///g | sed s/:function/:/g | sed s/\).*$/\)/g | grep :.*blog_node_view.*\( | |
# without filenames and linenumbers | |
grep -e ^function\ .*\( -r -h . | sed s/function\ //g | sed s/\).*$/\)/g | grep blog_node_view.*\( | sort |
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 | |
/** | |
* Form for create MailChimp campaign, from node content. | |
*/ | |
function mailchimp_campaign_create_form($form, &$form_state) { | |
$node = $form_state['build_info']['args'][0]; | |
$defaults = variable_get('mailchimp_campaign_node_type_settings_' . $node->type, FALSE); | |
$form['mailchimp_campaign_create'] = array( | |
'#type' => 'fieldset', |
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 SMINKNEVE_preprocess_field(&$variables) { | |
if ($variables['element']['#field_name'] == 'field_text') { | |
$variables['classes_array'][] = 'sajat-class'; | |
} | |
dpm($variables); | |
} |
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
$items['mailchimp-campaign/%cid/update/%'] = array( | |
'title' => 'Update', | |
'page callback' => '_mailchimp_campaign_action_access', | |
'page arguments' => array(1, 3, 'update'), | |
'access arguments' => array('send mailchimp campaign'), | |
'type' => MENU_CALLBACK, | |
); |
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
set filetype=markdown | set norelativenumber | set laststatus=0 | set columns=84 | set lines=55 | set textwidth=84 | set fuoptions=background:#fffdf6e3 | set nocursorcolumn | set background=light |
OlderNewer