Skip to content

Instantly share code, notes, and snippets.

View charisschomba's full-sized avatar
💭
The reward for work well done is the opportunity to do more.

Tee Jay charisschomba

💭
The reward for work well done is the opportunity to do more.
View GitHub Profile
import {
REGISTER_USER,
REGISTER_SUCCESS,
REGISTER_ERROR,
} from '../../../constants/users';
import addUser from '../../../store/reducers/users';
import initialState, {
initialStateEdit,
} from '../../../__mocks__/initialState';
import { runSaga } from 'redux-saga';
import { put, takeLatest } from 'redux-saga/effects';
import { api } from '../../../utils/api';
import {
registerUser,
editUser,
watchUserEdit,
watchRegistration,
} from '../../../store/sagas/users/AddUsersSaga';
import { REGISTERING_USER, EDITING_USER } from '../../../constants/users';
const { JengaApiSdk } = require("jenga-apis-sdk");
const config = {
apiKey: "your api key",
merchantCode: "your merchant code",
consumerSecret: "your consumer secret",
privateKeyPath: `absoulte path to your private key`,
verbose: true, //Optional defaults to false
enableLogging: true, //Optional defaults to false
env: "UAT or PROD", //Optional defaults to UAT
@charisschomba
charisschomba / postman-update.sh
Created October 26, 2023 11:16 — forked from lira/postman-update.sh
Install/Update postman or postman canary (beta) for linux. Tested in ubuntu 17.10 gnome3
#!/bin/bash
cd /tmp || exit
read -r -p "[s]table or [b]eta? [sS/bB] " choice
choice=${choice,,} # tolower
if [[ ! "$choice" =~ ^(s|b)$ ]]; then
exit
fi
if [[ "$choice" = "s" ]]; then
url=https://dl.pstmn.io/download/latest/linux64
name=Postman