Skip to content

Instantly share code, notes, and snippets.

View olyjosh's full-sized avatar

Joshua Aroke olyjosh

  • Codebit Technology
  • Lagos, Nigeria
View GitHub Profile
@olyjosh
olyjosh / html.ejs
Created June 29, 2017 08:41
the email nodejs/ejs template
<!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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--[if !mso]><!-->
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!--<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title></title>
<style type="text/css">
@olyjosh
olyjosh / CoinChangeAnswer.java
Created June 10, 2017 01:22
Use coins change for p-2-p merging system with donation merging issue
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package nl;
import java.util.ArrayList;
/**
*
<?php
include 'remita_constants.php';
require 'server/conn.php';
$json = file_get_contents('php://input');
//die($json);
$arr = json_decode($json, true);
try {
if ($arr != null) {
foreach ($arr as $key => $value) {
$orderRef = $value['orderRef'];
@olyjosh
olyjosh / gist:1146ee613f29ab6edf5dbfcfa9cae68b
Last active May 27, 2017 02:39 — forked from segebee/gist:7dde9de8e70a207e6e19
Nigeria States and Local Government Areas JSON - codingsavvy.com
[{"name":"Abia State","id":1,"locals":[{"name":"Aba South","id":1},{"name":"Arochukwu","id":2},{"name":"Bende","id":3},{"name":"Ikwuano","id":4},{"name":"Isiala Ngwa North","id":5},{"name":"Isiala Ngwa South","id":6},{"name":"Isuikwuato","id":7},{"name":"Obi Ngwa","id":8},{"name":"Ohafia","id":9},{"name":"Osisioma","id":10},{"name":"Ugwunagbo","id":11},{"name":"Ukwa East","id":12},{"name":"Ukwa West","id":13},{"name":"Umuahia North","id":14},{"name":"Umuahia South","id":15},{"name":"Umu Nneochi","id":16}]},{"name":"Adamawa State","id":2,"locals":[{"name":"Fufure","id":1},{"name":"Ganye","id":2},{"name":"Gayuk","id":3},{"name":"Gombi","id":4},{"name":"Grie","id":5},{"name":"Hong","id":6},{"name":"Jada","id":7},{"name":"Lamurde","id":8},{"name":"Madagali","id":9},{"name":"Maiha","id":10},{"name":"Mayo Belwa","id":11},{"name":"Michika","id":12},{"name":"Mubi North","id":13},{"name":"Mubi South","id":14},{"name":"Numan","id":15},{"name":"Shelleng","id":16},{"name":"Song","id":17},{"name":"Toungo","id":18},{"name"
Nice one. But please how can i tweak this to do perspective transform for forms preferably or container