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
<script src="http://code.jquery.com/jquery-latest.js"></script> | |
<script> | |
$(document).ready(function(){ | |
}); | |
</script> |
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
@echo off | |
SET st2Path=C:\Program Files\Sublime Text 2\sublime_text.exe | |
rem add it for all file types | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2" /t REG_SZ /v "" /d "Open with Sublime Text 2" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f | |
rem add it for folders | |
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 2" /t REG_SZ /v "" /d "Open with Sublime Text 2" /f |
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
// add ie conditional html5 shim to header | |
function add_ie_html5_shim () { | |
global $is_IE; | |
if ($is_IE) | |
wp_register_script ('html5shim', "http://html5shim.googlecode.com/svn/trunk/html5.js"); | |
wp_enqueue_script ('html5shim'); | |
} | |
add_action('wp_head', 'add_ie_html5_shim'); |
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 | |
wp_enqueue_style('ie7-fixes', get_bloginfo('template_url') . '/css/ie7.css', false, '', 'screen'); | |
global $wp_styles; | |
$wp_styles->add_data('ie7-fixes', 'conditional', 'lte IE 7'); | |
?> | |
alternativa: |
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 if (have_posts()) : ?> | |
<?php $c = 0;while (have_posts()) : the_post(); $c++; | |
if( $c == 3) { | |
$style = 'third'; | |
$c = 0; | |
} | |
else $style=''; | |
?> | |
<div <?php post_class($style) ?> id="post-<?php the_ID(); ?>"> |
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
/************* ADDING CLASSES TO POST_CLASS **************/ | |
// every post has a few uniquely colored elements, rather than rely on CSS nth-magic, and to keep things smooth | |
// and not conflict w/ trying to use jQuery nth-magic in tandem w/ the endless scroll, | |
// the option is to get the server to do the heavy lifting, | |
// ideally it would be nice to pass the array of classes to iterate thru into the filter, | |
/** | |
* | |
* @param $classes | |
* @return array |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>HTML5 boilerplate—all you really need…</title> | |
<link rel="stylesheet" type="text/css" href="css/style.css" /> | |
<!--[if IE]> | |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | |
</head> |
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
/* Start cmd */ | |
cd.. /*az na C: */ | |
cd ruby200 /* alebo na adresar kde je nainstalovane ruby DL: http://rubyinstaller.org/ */ | |
cd bin | |
gem install sass | |
gem install compass | |
/* ak treba, pridat pred prikazy sudo */ |
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 | |
// Scripting | |
// Register various scripts | |
function organizedthemes_script_register() { | |
if( !is_admin()){ | |
wp_register_script('vids', get_template_directory_uri() . '/js/fitvids.js', array('jquery'), NULL, true ); | |
wp_register_script('flex', get_template_directory_uri() . '/js/flexslider.js', array('jquery'), NULL, true ); | |
wp_register_script('nanoscroller', get_template_directory_uri() . '/js/nanoscroller.js', array('jquery'), NULL, true ); |
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
// You can specify both left and top property: | |
$(this).animate({left: '+=30px', top: '+=30px'}, 1000); | |
// In this case, the angle would be 45°. |
OlderNewer