Skip to content

Instantly share code, notes, and snippets.

Alexandros Georgiou alex-georgiou

Block or report user

Report or block alex-georgiou

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
@alex-georgiou
alex-georgiou / google-places-query.php
Created Jul 16, 2019
Example query to the Google Places API, showcasing how to first get a place id from a text description, and then how to get details about that place
View google-places-query.php
<?php
/**
* Example query to the Google Places API, showcasing how to first get a place id from a text description,
* and then how to get details about that place.
*
* @author Alexandros Georgiou <alex.georgiou@gmail.com>
*/
@alex-georgiou
alex-georgiou / wallets-fixed-rates.php
Last active Jul 9, 2019
This example code adds some fixed exchange rates to the Bitcoin and Altcoin Wallets WordPress plugin version 3.4.0 or later.
View wallets-fixed-rates.php
<?php
/*
* Plugin Name: Bitcoin and Altcoin Wallets: Fixed exchange rates extension
* Description: Example of how to add fixed exchange rates to Bitcoin and Altcoin Wallets.
* Version: 1.0.0
* Plugin URI: https://gist.github.com/alex-georgiou/492196184f206002c864225180ca8fbb
* Author: Alexandros Georgiou <info@dashed-slug.net>
* Author URI: http://dashed-slug.net
* License: GPLv2 or later
*
@alex-georgiou
alex-georgiou / wallets-xyz-coin-adapter.php
Last active Jun 26, 2019
Example of how to add an RPC-compatible wallet to the Full Node Multi Coin Adapter for Bitcoin and Altcoin Wallets
View wallets-xyz-coin-adapter.php
<?php
/*
Plugin Name: XYZ Coin Adapter
Plugin URI: https://www.dashed-slug.net/bitcoin-altcoin-wallets-wordpress-plugin/full-node-multi-coin-adapter-extension/
Description: Example of how to add an RPC-compatible wallet to the Full Node Multi Coin Adapter for Bitcoin and Altcoin Wallets
Version: 0.1.0
Author: Alex Georgiou <alexgeorgiou@gmail.com>
Author URI: http://alexgeorgiou.gr
*/
@alex-georgiou
alex-georgiou / wallets-xyz-cryptonote-coin-adapter.php
Created Oct 30, 2018
Example of how to add a CryptoNote-based wallet to the Monero Coin Adapter extension for Bitcoin and Altcoin Wallets.
View wallets-xyz-cryptonote-coin-adapter.php
<?php
/*
Plugin Name: Cryptonote-based Coin Adapter for XYZ coin
Plugin URI: https://www.dashed-slug.net/bitcoin-altcoin-wallets-wordpress-plugin/monero-coin-adapter-extension
Description: Example of how to add a CryptoNote-based wallet to the Monero Coin Adapter extension for Bitcoin and Altcoin Wallets.
Version: 0.1.0
Author: Alex Georgiou <alexgeorgiou@gmail.com>
Author URI: http://alexgeorgiou.gr
*/
function wallets_cryptonote_coins_filter( $coins ) {
@alex-georgiou
alex-georgiou / wallets-withdraw-block.php
Created Oct 18, 2018
Example of how to restrict certain users from withdrawing certain coins in Bitcoin and Altcoin Wallets for WordPress
View wallets-withdraw-block.php
<?php
/*
* Plugin Name: Bitcoin and Altcoin Wallets: Fine-grained withdrawals blocking
* Description: Example of how to restrict certain users from withdrawing certain coins.
* Version: 1.0.0
* Plugin URI: https://gist.github.com/alex-georgiou/f063dd0565e562eb47c037cdf2d17547
* Author: Alexandros Georgiou <info@dashed-slug.net>
* Author URI: http://dashed-slug.net
* License: GPLv2 or later
*
View wallets-exchange-disallow-limit-ask-orders.php
<?php
/**
* Disallow selling TOKEN for BTC in the Dashed-Slug Exchange extension to Bitcoin and Altcoin Wallets
*
* https://www.dashed-slug.net/bitcoin-altcoin-wallets-wordpress-plugin/exchange-extension/
*
* @author alexg
*/
function disallow_limit_ask_orders( $order_id = null, $args = array() ) {
@alex-georgiou
alex-georgiou / bitcoin-icon.php
Last active Aug 30, 2018
Generate a Bitcoin icon in SVG and PNG
View bitcoin-icon.php
<?php
ob_start();
$text = '&#x20bf;';
?><?xml version="1.0"?>
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
@alex-georgiou
alex-georgiou / Dockerfile
Last active Apr 5, 2016
Run `grunt phpunit` against your project on PHP versions 5.3 through 5.6
View Dockerfile
# Run `grunt phpunit` against your project on PHP versions 5.3 through 5.6
# Assumes a Gruntfile.js with working phpunit task
# Based on http://blog.eriksen.com.br/en/docker-image-multi-version-php-development
#
# Copy this Dockerfile into your project. Build the image with:
#
# docker build -t alexg/php-x-test:1.0 -t alexg/php-x-test:latest .
#
# Run your tests with:
#
You can’t perform that action at this time.