Skip to content

Instantly share code, notes, and snippets.

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

Collins Agbonghama w3guy

✍️
Typing...
View GitHub Profile
@w3guy
w3guy / blog-webpack-2.md
Created October 31, 2016 03:41 — forked from xjamundx/blog-webpack-2.md
From Require.js to Webpack - Part 2 (the how)

This is the follow up to a post I wrote recently called From Require.js to Webpack - Party 1 (the why) which was published in my personal blog.

In that post I talked about 3 main reasons for moving from require.js to webpack:

  1. Common JS support
  2. NPM support
  3. a healthy loader/plugin ecosystem.

Here I'll instead talk about some of the technical challenges that we faced during the migration. Despite the clear benefits in developer experience (DX) the setup was fairly difficult and I'd like to cover some of the challanges we faced to make the transition a bit easier.

## CLI
https://github.com/zfcampus/zf-console
[https://github.com/mnapoli/silly](Silly CLI micro-framework based on Symfony Console)
## GitHub authors
https://github.com/mnapoli?tab=repositories

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