Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* OIFN extended
*
* integrates google map into a location based buddypress
*
* @package oifn-extended
* @author Christopher James Chruchill <churchill.c.j@gmail.com>
* @license GPL-2.0+
* @link http://buildawebdoctor.com
@vimes1984
vimes1984 / HTMtoPDF.js
Last active July 15, 2018 10:38
Html to PDF generator using a angularJS V1.x directive
import domtoimage from 'dom-to-image-chrome-fix';
import jsPDF from 'jspdf';
import 'please-wait/build/please-wait.css';
import 'spinkit/css/spinners/9-cube-grid.css';
import { pleaseWait } from 'please-wait';
angular.module('htmlToPdfSave', []);
angular.module('htmlToPdfSave')
.directive('pdfSaveButton', ['$rootScope', function ($rootScope) {
<?php
/*
Plugin Name: 1337 Date Picker
Plugin URI: http://1337datepicker.e1337geek.com
Description: A brief description of the Plugin.
Version: 1.0
Author: e1337geek
Author URI: http://e1337geek.com
License: GPL2
<?php
/**
* Ticket single page
*
*
**/
$postmeta = get_post_meta($post->ID);
get_header(); ?>
<?php
add_action( 'woocommerce_before_calculate_totals', 'add_custom_price', 0 );
function add_custom_price( $cart_object ) {
$custom_price = 100; // This will be your custome price
$cart_object->recurring_cart_key = '2016_10_11_every_3rd_month';
{
"servers":[
{
"name": "scripting",
"description": "A scripting enabled server",
"public": true,
"port": 17099,
"host" : "localhost",
"version": "1.9.2",
"keepAlive": false,
<?php
/**
* Yeticraft Extended
*
* @package yeticraft
* @author vimes1984 <churchill.c.j@gmail.com>
* @license GPL-2.0+
* @link http://buildawebdoctor.com
* @copyright 11-20-2015 BAWD
*/
<?php
/**
*
* add in a simple endpoint
*
***/
add_action('wp_ajax_nopriv_add_user_from_minecraft', array($this, 'add_user_from_minecraft') );
add_action( 'wp_ajax_add_user_from_minecraft', array($this, 'add_user_from_minecraft');
var mc = require('minecraft-protocol');
var states = mc.states;
var srv = mc.createServer({
'online-mode': false,
port: 25566,
keepAlive: false,
version:'1.8'
});
<?php
/**
* Main WordPress API
*
* @package WordPress
*/
require( ABSPATH . WPINC . '/option.php' );
/**