I hereby claim:
- I am mrbaguvix on github.
- I am mrbaguvix (https://keybase.io/mrbaguvix) on keybase.
- I have a public key ASCxHA1onX2VamExp7BF2QHF6Aq1vgb9kp96x0PHa2asRgo
To claim this, I am signing this object:
app.get("/check", middleWare, (_, res) => { | |
res.send("Hello boi"); | |
}); |
I hereby claim:
To claim this, I am signing this object:
const { spawn } = require('child_process'); | |
const fs = require('fs'); | |
const cmdProcesses = { | |
processDaemon: function(file) { | |
return new Promise((resolve, reject) => { | |
const args = [file, 'cron', '-', 'output', '-']; | |
const childProcess = spawn('baguvix', args); |
import BigNumber = require('bignumber.js'); | |
/** Format a value in crypto or stablecoin equivalent */ | |
function cryptoFormat(numeric: string | number): number { | |
try { | |
const num = typeof numeric === 'string' ? Number(numeric) : numeric; | |
if (!Number.isNaN(num)) { | |
throw new TypeError('Amount should be a number'); | |
} | |
return new BigNumber(num).toNumber(); |
// the below are snippets in JavaScript | |
// they are independent and have been broken | |
// into smaller functions | |
// it is likely you'll use them in your code | |
// | |
// Remember: no matter how small or big a project maybe | |
// it still comprises of one or more pieces coming together | |
// it is just how you use it (LOGIC) to solve a problem. | |
// | |
// Arrays & Objects powers the world |
describe("Referential Equality", () => { | |
function foo() { | |
return 'bar'; | |
} | |
const otherFoo = function() { | |
return `bar`; | |
}; |
/** | |
* Quick hack to generate migration template into a file | |
* @author David | |
* @param {*} files | |
* @returns {string} SQL template | |
*/ | |
const SqlTempGenerator = files => { | |
if (!Array.isArray(files)) throw "Must be an array of SQL files"; | |
let sqlStr = "INSERT INTO migrations (filename) VALUES"; | |
return sqlStr.concat(" ", files.map(file => `('${file}')`).join(","), ";"); |
@-webkit-keyframes shake { | |
0%, | |
to { | |
-webkit-transform: translateZ(0); | |
transform: translateZ(0); | |
} | |
10%, | |
30%, | |
50%, | |
70%, |
/** | |
* Price alert snippet | |
* For monitoring market cap on assets exchanges | |
* Precious Akin | |
*/ | |
// Available exchange assets | |
enum ASSET { | |
'NGN' = '\u20A6', // ₦ | |
'USD' = '$' |