Skip to content

Instantly share code, notes, and snippets.

View jumaallan's full-sized avatar
🚀
Just a man, shipping code

Juma Allan jumaallan

🚀
Just a man, shipping code
View GitHub Profile
@jumaallan
jumaallan / b2b.go
Created July 6, 2020 13:30
Go MPESA C2B, B2C and B2B Callbacks
// struct
type B2BCallBack struct {
Result struct {
ResultType int `json:"ResultType"`
ResultCode int `json:"ResultCode"`
ResultDesc string `json:"ResultDesc"`
OriginatorConversationID string `json:"OriginatorConversationID"`
ConversationID string `json:"ConversationID"`
TransactionID string `json:"TransactionID"`
ResultParameters struct {
@jumaallan
jumaallan / README.md
Created January 13, 2019 11:13 — forked from makunomark/README.md
Bash script to quickly change your git configs

Set the file as an executable

On Mac

  • Save file without an extension
  • Right click and select Get info
  • Click on the lock icon (set to unlocked)
  • Open terminal and navigate to saved location on file
  • execute chmod 700 switch_git
  • run the file :-)
@jumaallan
jumaallan / AddFarmActivity.java
Created November 5, 2018 21:14
Sharing code with Madonah
package com.twigafoods.soko.ui.sourcing.farms.ui;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.Dialog;
import android.arch.lifecycle.Observer;
import android.arch.lifecycle.ViewModelProvider;
import android.arch.lifecycle.ViewModelProviders;
import android.content.DialogInterface;
import android.content.Intent;
@jumaallan
jumaallan / README.md
Created May 16, 2018 07:46 — forked from roachhd/README.md
EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥✨💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: 😄