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
/slfksdfsdf |
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
if view.get_insert_spaces_instead_of_tabs(): | |
tabsize = view.get_tab_width() | |
spaces = "" | |
for i in range(tabsize): | |
spaces += " " | |
after = after.replace("\t",spaces) |
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
function getEbooks(l,s,p,pw) { | |
// l=loc | |
// s = subject | |
// p = prodID (optional) | |
// pw - use password | |
url = "ebooks.php?loc=" + l + "&subject=" + s + "&prod=" + p + "&pw=" + pw; | |
$("#results").empty().html('<img align = "right" src="http://galesupport.com/picts/loading_cengage.gif" alt="loading" />'); | |
$("#results").load(url); |
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
find ./ -type f -exec sed -i ’s/oldstring/newstring/’ {} \; |
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
a:link[href^="http://"]:after, | |
a[href^="http://"]:visited:after, | |
a:link[href^="https://"]:after, | |
a[href^="https://"]:visited:after { | |
content: " (" attr(href) ") "; | |
font-size: 90%; | |
} |
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 THEMENAME_preprocess_node(&$vars, $hook) { | |
$vars['content'] = preg_replace('/<p>(?!<img)/','<p class="first">', $vars['body'], 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
<?php | |
/** | |
* Implementation of hook_translated_menu_link_alter() | |
*/ | |
function MODULENAME_menu_translated_menu_link_alter(&$item, $map) { | |
$num_unapproved = db_result(db_query("SELECT count(*) FROM {node} WHERE status = '0' AND type = 'NODETYPE'")); | |
if ($num_unapproved > 0 && $item['mlid'] == '2101') { | |
$item['localized_options']['attributes']['class'] = 'attention'; | |
} | |
} |
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
jQuery.fn.slowEach = function( interval, callback ) { | |
var array = this; | |
if( ! array.length ) return; | |
var i = 0; | |
next(); | |
function next() { | |
if( callback.call( array[i], i, array[i] ) !== false ) | |
if( ++i < array.length ) | |
setTimeout( next, interval ); | |
} |
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
$('.image').slowEach(5000, function() { | |
//code here | |
}); |
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
<div class="post $post.feather{% if post.pinned %} pinned{% endif %}{%if post.aggregate %} ${ post.aggregate | lower }{% endif %}" id="post_$post.id"> |
OlderNewer