opt + command + arrow
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
player.play(); | |
player.pause(); | |
player.currentTime=0; | |
player.volume=0; |
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
var form = $("form"); | |
function validate() { | |
$("forms input, forms textarea").each(function () { | |
if($(this).empty alert("failWhale"); | |
}) | |
} | |
form.onsubmit = validate; |
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
:first-child | |
:nth-child(0) | |
:last-child | |
::before | |
::after |
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
window.onload = function() | |
{ | |
if(!document.getElementsByTagName) return false; | |
var print = document.createElement("a"); | |
print.href = "#"; print.id = "printlink"; | |
var print_icon = document.createElement("img"); | |
print_icon.src = ("printer.png"); | |
var print_link_node = document.createTextNode("print"); | |
print.appendChild(print_icon); |
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 ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
$plugin_info = array( | |
'pi_name' => 'Child Category Count', | |
'pi_version' =>'1.0', | |
'pi_author' =>'Zac Gordon', | |
'pi_author_url' => 'http://www.wideskyweb.com/expressionengine', | |
'pi_description' => 'Returns number of child categories.', |
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 | |
require_once($_SERVER['DOCUMENT_ROOT'].'/wp-load.php'); | |
$post_type = $_GET['post_type']; | |
$time = $_GET['time']; | |
$order = $_GET['order']; | |
$page_num = $_GET['page']; | |
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 my_theme_scripts() { | |
wp_enqueue_script( 'theme_js', get_stylesheet_directory_uri() . '/js/theme.js', array('jquery'), false, true ); | |
} | |
add_action("wp_enqueue_scripts", "my_theme_scripts"); | |
?> |
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 custom_get_excerpt($post_id) { | |
$temp = $post; | |
$post = get_post( $post_id ); | |
setup_postdata( $post ); | |
$excerpt = esc_attr(strip_tags(get_the_excerpt())); | |
wp_reset_postdata(); | |
$post = $temp; |
OlderNewer