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 | |
add_filter("the_content", "the_content_filter"); | |
function the_content_filter($content) { | |
// array of custom shortcodes requiring the fix | |
$block = join("|",array("col","shortcode2","shortcode3")); | |
// opening tag |
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
# AUTO 301 REDIRECT PAGES THAT ARE NOT THE HOME PAGE | |
RewriteCond %{REQUEST_URI} !^/index.php$ [OR] | |
RewriteCond %{REQUEST_URI} !^/$ | |
RewriteRule ^(.*)$ http://www.YOURDOMAIN.com/$1 [R=301,L] |
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
// checkbox must be checked to submit form | |
$('#contact-submit').click(function(e) { | |
var checked = $('#contact-side :checkbox:checked').length; | |
if (checked == 0) { | |
alert('Before this form can be sent, you must agree to the disclaimer.'); | |
e.preventDefault(); | |
} else { | |
$('#contact-side form').submit(); | |
} | |
}); |
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
package com.mydomain.wallpaper.mywallpaper; | |
import javax.microedition.khronos.egl.EGLConfig; | |
import javax.microedition.khronos.opengles.GL10; | |
import rajawali.Object3D; | |
import rajawali.parser.LoaderOBJ; | |
import rajawali.parser.ALoader.ParsingException; | |
import rajawali.animation.Animation3D.RepeatMode; |
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
# 3ds Max Wavefront OBJ Exporter v0.97b | |
# File Created: 07.09.2013 21:08:08 | |
# | |
# object Box001 | |
# | |
v -24.597288 0.000000 18.723301 | |
v -24.597288 0.000000 -30.350199 | |
v 28.258261 0.000000 -30.350199 |
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
// REQUIRED: Include "jQuery Query Parser" plugin here or before this point: | |
// https://github.com/mattsnider/jquery-plugin-query-parser | |
$(document).ready(function(){ | |
// BOOTSTRAP 3.0 - Open YouTube Video Dynamicaly in Modal Window | |
// Modal Window for dynamically opening videos | |
$('a[href^="http://www.youtube.com"]').on('click', function(e){ | |
// Store the query string variables and values | |
// Uses "jQuery Query Parser" plugin, to allow for various URL formats (could have extra parameters) |
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
Show hidden characters
// UPDATED VERSION | |
{ | |
"filename_filter": "(/|\\\\|^)(?!_)(\\w+)\\.(css|js|sass|less|scss)$", | |
"build_on_save": 1 | |
} | |
// DEFAULT (for reference, in case you need it back) | |
{ | |
"filename_filter": "\\.(css|js|sass|less|scss)$", | |
"build_on_save": 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
/// <summary> | |
/// You would not believe what amazing things this method does. | |
/// </summary> | |
/// <param name="exampleInteger">A explanation of this really important number </param> | |
public static void DoSomething(int exampleInteger){} |
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
<configuration> | |
<system.webServer> | |
<httpProtocol> | |
<customHeaders> | |
<add name="X-UA-Compatible" value="IE=Edge,chrome=1" /> | |
</customHeaders> | |
</httpProtocol> | |
</system.webServer> | |
</configuration> |
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
$(document).ready(function() { | |
$('#content ul').hideMaxListItems({ | |
'max':6, | |
'speed':2000, | |
'moreText':'READ MORE', | |
'lessText':'READ LESS', | |
'moreHTML': '<p class="maxlist-more"><a href="#">MORE OF THEM</a></p>' | |
}); | |
}); |
OlderNewer