Skip to content

Instantly share code, notes, and snippets.

View w3guy's full-sized avatar
✍️
Typing...

Collins Agbonghama w3guy

✍️
Typing...
View GitHub Profile

Keybase proof

I hereby claim:

  • I am collizo4sky on github.
  • I am collizo4sky (https://keybase.io/collizo4sky) on keybase.
  • I have a public key whose fingerprint is 23AF 5C74 1A6C 107B 89EC A708 B3C6 9979 3133 585B

To claim this, I am signing this object:

@w3guy
w3guy / WP_Customize_Range_Control.php
Last active September 28, 2019 19:33
WordPress customizer range control with indicator for selected value. http://w3guy.com/wordpress-customizer-range-control-selected-indicator/
<?php
class WP_Customize_Range_Control extends WP_Customize_Control
{
public $type = 'custom_range';
public function enqueue()
{
wp_enqueue_script(
'cs-range-control',
@w3guy
w3guy / mail.php
Created April 19, 2016 05:01 — forked from rantastic/mail.php
PHP: Send email using amazon SES
<?php
//class docs: http://www.orderingdisorder.com/aws/ses/
require_once('ses.php');
//get credentials at http://aws.amazon.com My Account / Console > Security Credentials
$ses = new SimpleEmailService('ACCESSkeyID', 'SECRETaccessKEY');
$m = new SimpleEmailServiceMessage();
<div id="sc-register">
<h1>Sign Up</h1>
<div class="sc-container">
[reg-username title="Username" placeholder="Username"]
[reg-email title="Email Address" placeholder="Email Address"]
[reg-password title="Password" placeholder="Password"]
[reg-first-name title="First Name" placeholder="First Name"]
[reg-last-name title="Last Name" placeholder="Last Name"]
[reg-cpf key="gender" type="select" title="Gender"]
Avatar[reg-avatar]
<form method="post" novalidate>
<div id="msform">
<!-- progressbar -->
<ul id="progressbar">
<li class="active">Account Setup</li>
<li>Social Profiles</li>
<li>Personal Details</li>
</ul>
<!-- fieldsets -->
<fieldset>
<form method="post" novalidate>
<div id="msform">
<!-- progressbar -->
<ul id="progressbar">
<li class="active">Account Setup</li>
<li>Social Profiles</li>
<li>Personal Details</li>
</ul>
<!-- fieldsets -->
<fieldset>
@w3guy
w3guy / welcome-message-wordpress.html
Last active January 22, 2016 14:31
New users welcome message template for WordPress powered by ProfilePress plugin http://profilepress.net/send-welcome-messages-new-users-wordpress/
<!-- Brought to you by ProfilePress WordPress plugin (http://profilepress.net) -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Choose a new password for {{product_name}}</title>
<style type="text/css" rel="stylesheet" media="all">
*:not(br):not(tr):not(html) {
font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
@w3guy
w3guy / gist:d717de3b12487a2c8399
Created December 30, 2015 08:06 — forked from craigchristenson/gist:2869509
Example PHP script to check fraud status on a sale.
<?php
if ($_POST['message_type'] == 'FRAUD_STATUS_CHANGED') {
$insMessage = array();
foreach ($_POST as $k => $v) {
$insMessage[$k] = $v;
}
$hashSecretWord = "tango"; # Input your secret word
@w3guy
w3guy / gist:55d136cd19c0e1d78c3c
Created December 30, 2015 08:06 — forked from craigchristenson/gist:3841142
2Checkout Return
<?php
$hashSecretWord = 'tango'; //2Checkout Secret Word
$hashSid = 1303908; //2Checkout account number
$hashTotal = '1.00'; //Sale total to validate against
$hashOrder = $_REQUEST['order_number']; //2Checkout Order Number
$StringToHash = strtoupper(md5($hashSecretWord . $hashSid . $hashOrder . $hashTotal));
if ($StringToHash != $_REQUEST['key']) {
$result = "Fail - Hash Mismatch";
} else {
@w3guy
w3guy / monochrome.html
Created December 17, 2015 08:14
monochrome profile with carousel
<div class="monochrome-profile">
<div class="monochrome-cover">
<div class="monochrome-avatar"><img src="[profile-avatar-url]"/></div>
<div class="monochrome-uname">[profile-username]</div>
</div>
<div class="monochrome-contentCont">
<div class="monochrome-content">
<div class="monochrome-sectionTitle">Profile Details</div>
<table class="monochrome-table">
<tr>