This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @file /Users/gerald.gillespie/code/oura-ns/types/index.d.ts Class. | |
* @module @types/index_d_ts | |
* @author Gerald Gillespie <gg@suitegeezus.com> | |
* @NApiVersion 2.1 | |
*/ | |
export type ArrayElement<A> = A extends readonly (infer T)[] ? T : never; | |
type DeepWriteable<T> = { -readonly [P in keyof T]: DeepWriteable<T[P]> }; | |
type Cast<X, Y> = X extends Y ? X : Y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Usually if you want to access the SuiteScript 2 API via the browser console you need to open specific pages | |
* that load the required libraries (such as a record in edit mode). This script will load the libraries on any | |
* NetSuite page | |
*/ | |
(async () => { | |
/* Add a script element to the DOM and wait until it's loading by checking that | |
a known variable it creates exists */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bill:Open <===> VendBill:A | |
Bill:Paid In Full <===> VendBill:B | |
Bill Payment:Voided <===> VendPymt:V | |
Bill Payment:Online Bill Pay Pending Accounting Approval <===> VendPymt:Z | |
Cash Sale:Unapproved Payment <===> CashSale:A | |
Cash Sale:Not Deposited <===> CashSale:B | |
Cash Sale:Deposited <===> CashSale:C | |
Check:Voided <===> Check:V | |
Check:Online Bill Pay Pending Accounting Approval <===> Check:Z | |
Commission:Pending Payment <===> Commissn:A |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const crypto = require('crypto'); | |
const request = require('request'); | |
const bufSecret = Buffer('OUTGOING-WEBHOOK-SECRET', "base64"); | |
const flowWebhook = 'MICROSOFT-FLOW-URL'; | |
module.exports = function (context, req) { | |
var auth = req.headers['authorization']; | |
// HMAC security validation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Linked Lists example"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
Linked Lists example |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content=""Queue implemented using Stacks"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
Queue implemented using Stacks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Example of SetInterval Tracking using a privately scoped object without an additional closure AND | |
demonstration of differences between setInterval predictability v setTimeout recursion and loss of its predictability"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Capitalize first letter in each word and return sentence"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
Capitalize first letter in each word and return sentence |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Check for Anagrams"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
Check for Anagrams |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
NewerOlder