opt + command + arrow
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 | |
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 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 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 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 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 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 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 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
{ | |
// http://eslint.org/docs/rules/ | |
"ecmaFeatures": { | |
"binaryLiterals": false, // enable binary literals | |
"blockBindings": false, // enable let and const (aka block bindings) | |
"defaultParams": false, // enable default function parameters | |
"forOf": false, // enable for-of loops | |
"generators": false, // enable generators | |
"objectLiteralComputedProperties": false, // enable computed object literal property names |
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
// What I'm calling in my router | |
await Page.render( slug ); | |
Gallery.render(); | |
// The Page.render() code | |
export default class Page { | |
/** | |
* render - Display pages on the Page |
OlderNewer