View bch-logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View index.html
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<pre class="root"> | |
View cloudSettings
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
{"lastUpload":"2021-03-24T13:58:30.335Z","extensionVersion":"v3.4.3"} |
View svg-cleanup.js
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
// WIP, most of this doesn't work | |
var svgns = "http://www.w3.org/2000/svg"; | |
var banned = { | |
namespaces: ["sketch", "illustrator", "sopodi", "inkscape"], | |
tags: ["title", "desc"], | |
tagsIfEmpty: ["defs", "g", "style"], | |
attributes: ["enable-background", "xml:space", "version"] | |
}; | |
var invisibleShapesData = { |
View api_upload_img_wp.php
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 | |
/* | |
* rest_api_init | |
* Custom /upload route | |
* | |
* @since 3.0 | |
*/ | |
add_action( 'rest_api_init', function () { |
View wp_select_example.php
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 pegasus_nav_plugin_settings_page() { ?> | |
<div class="wrap"> | |
<h1>Nav</h1> | |
<form method="post" action="options.php"> | |
<?php | |
settings_fields("section2"); | |
do_settings_sections("theme-options2"); |
View gist.php
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
** | |
* Usage: | |
* Paste a gist link into a blog post or page and it will be embedded eg: | |
* https://gist.github.com/2926827 | |
* | |
* If a gist has multiple files you can select one using a url in the following format: | |
* https://gist.github.com/2926827?file=embed-gist.php | |
*/ | |
wp_embed_register_handler( 'gist', '/https:\/\/gist\.github\.com\/(\d+)(\?file=.*)?/i', 'wp_embed_handler_gist' ); |
View SetupWordPress.sh
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
printf "MySQL User: " | |
read MYSQLUSER | |
if [ "$MYSQLUSER" = "" ]; then | |
set MYSQLUSER = "root" | |
fi | |
printf "MySQL Password: " | |
read MYSQLPWD | |
if [ "$MYSQLPWD" = "" ]; then | |
set MYSQLPWD = "asdfasdf" | |
fi |
View searchform.php
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
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/"> | |
<label class="hidden" for="s"><?php _e('Search:'); ?></label> | |
<input class="search-field" type="text" value="<?php the_search_query(); ?>" name="s" id="s" /> | |
<input class="search-button primary medium" type="submit" id="searchsubmit" value="GO" /> | |
</form> |
View theme-setup.php
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 | |
/** | |
* Setup Theme Design | |
*/ | |
function ajm_setup_design() { | |
$headway_defaults = array( | |
/* Defaults */ | |
'default-text' => array( | |
'properties' => array( |
NewerOlder