Skip to content

Instantly share code, notes, and snippets.

k9t9 k9t9

  • Shenzen // Berlin // Milano // Hong Kong
Block or report user

Report or block k9t9

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View send-print_r-to-firebug-console.php
function debug ($data) {
echo "<script>\r\n//<![CDATA[\r\nif(!console){var console={log:function(){}}}";
$output = explode("\n", print_r($data, true));
foreach ($output as $line) {
if (trim($line)) {
$line = addslashes($line);
echo "console.log(\"{$line}\");";
View wp-customize-uinstall.php
!defined( 'ABSPATH' ) AND exit;
Plugin Name: Custom Installation Script
Plugin URI:
Description: Create our own content on WP install
License: GPL
k9t9 / init.js
Created Dec 14, 2016
Create Numbers array JS
View init.js
var foo = new Array(10);//create an empty array with length 45
var a = [];
for(var i=0;i<foo.length;i++){
// document.write('Item: ' + (i+1) + ' of ' + foo.length + '<br/>');
var file = 'string' + i +'.jpg';
function Array() {
You can’t perform that action at this time.