Skip to content

Instantly share code, notes, and snippets.

View Honestjoewillie's full-sized avatar
💭
Learn the code, know the code, break the code, make the code.

Joseph William Hauger Honestjoewillie

💭
Learn the code, know the code, break the code, make the code.
View GitHub Profile
//reverse a string
var x = "name";
var q = [];
function reverse (x) {
let string = x.split("");
//console.log(string);
for(let i = 0; i < string.length; i++){
q.unshift(string[i]);
}
@Honestjoewillie
Honestjoewillie / gist:9685809f57d8956e32a06215ca071fb1
Created January 8, 2021 21:03
Part 2 - Troubleshooting, Part 2.1 HelloSign
var http = require('http');
var hellosign = require('hellosign-sdk')({key : 'YOURAPIKEYHERE'}); // your HelloSign API Key here
var port = (process.env.PORT || process.env.VCAP_APP_PORT || 6500);
// follow the Embedded Signing Walkthrough to tell us why this isn't working
// go ahead and fix the issue(s)
// then print out the sign_url once you get it working
http
.createServer(
@Honestjoewillie
Honestjoewillie / gist:b0e1cc6f51d5a8795142059373653966
Created January 8, 2021 19:37
Part 1 - Non-Embedded Signature Request
const hellosign = require('hellosign-sdk')({ key: 'Joe_API_KEY' });
const opts = {
test_mode: 1,
title: 'NDA with Acme Co.',
subject: 'The NDA we talked about',
message: 'Please sign this NDA and then we can discuss more.',
signers: [
{
email_address: 'exxxxxx@dropbox.com',