Skip to content

Instantly share code, notes, and snippets.

@fathermerry
fathermerry / frontend.md
Created January 10, 2018 21:42
Frontend Developer at Paystack

Front-end Developer Job Description

Paystack’s mission is to help merchants in Africa get paid by anyone, anywhere in the world. Over 8,000 businesses of all sizes use Paystack’s modern payments gateway, including Domino’s Pizza, God is Good Motors, Taxify, and Axa Mansard Insurance. In under two years, our small but effective team has introduced a steady cadence of innovations into the Nigerian market, such as the ability for consumers to pay online with only a bank account number. We process well over $7 million in transactions monthly, and our double digit growth has us processing even more every month.

At Paystack, we believe that we will win by recruiting talented people and giving them the space, resources, and support to do the best work of their lives. We hire the most capable people, treat them with genuine respect, and give them the means to succeed. And we’d love your help!

About the Front-end Developer role

As a Front-end Developer at Paystack, you’ll build products and features that cater

@fathermerry
fathermerry / analytics.js
Created September 6, 2017 20:45
Event tracking with Google Analytics
var signupLinks = document.querySelectorAll('[data-signup]');
for (i = 0; i < signupLinks.length; i++) {
signupLinks[i].addEventListener("click", function(event){
event.preventDefault();
var eventLabel = event.target.getAttribute('data-signup');
var gaIsLoaded = window[window['GoogleAnalyticsObject'] || 'ga'];
if (gaIsLoaded) {
ga('send', 'event', {
eventCategory: 'Signup',
eventAction: 'click',
@fathermerry
fathermerry / analytics.html
Created September 6, 2017 20:42
Tagging HTML divs for best results
<a class="button button--green" data-signup="Homepage Hero Button" href="https://dashboard.paystack.com/#/signup">Get started for free</a>
<a class="button button--green" data-signup="Signup Tab Button" href="https://dashboard.paystack.com/#/signup">Create Account</a>
@fathermerry
fathermerry / nibss.json
Created January 9, 2017 23:25
NIBSS Data Formatted
{
"active_accounts": [
{
"date": "2015-01-01T08:00:00Z",
"number": 47200000
},
{
"date": "2015-02-01T08:00:00Z",
"number": 47930000
},
@fathermerry
fathermerry / cards.js
Created August 16, 2016 09:01
Old cards module
////////////////////////////////
////// PAYSTACK FUNCTIONS ///////
////////////////////////////////
var Paystack = {
createToken: function(args, responseHandler) {
var paymentform = args.paymentForm;
var cvc = 0;
var cardnumber = 0;
var expmonth = 0;
@fathermerry
fathermerry / cards.js
Last active August 16, 2016 09:01
New Cards Module
var CardForm = function(transaction) {
this.transaction = transaction;
this.attemptedAuthentication = false;
function _encryptPin(pin) {
var encrypted_pin = cryptico.encrypt(pin, config.publishable_key);
return encrypted_pin.cipher
}
function _getFields(paymentForm) {
@fathermerry
fathermerry / app.js
Created August 15, 2016 07:43
New Bot Code
function Database() {}
Database.prototype.fetch = function() {
return localforage.getItem('eatdrinkbot:conversation');
};
Database.prototype.addMessage = function(message) {
var $this = this;
$this.fetch()
@fathermerry
fathermerry / app.js
Created August 15, 2016 07:42
Old Bot Code
(function() {
'use strict';
var pubnub, conversation;
String.prototype.capitalize = function() {
return this.charAt(0).toUpperCase() + this.slice(1);
}
var log = [];
var chatInput = document.getElementById('chat-input');
@fathermerry
fathermerry / angular-csv
Last active March 25, 2016 20:51
Directive for Exporting to CSV with Angular
angular
.module('export.csv', [])
.directive('export', function() {
return {
restrict: 'AE',
scope: {
data: '=data',
title: '=title',
keys: '=keys',
headers: '=headers'