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
| // ==UserScript== | |
| // @name hn summary (kagi) | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match https://news.ycombinator.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=ycombinator.com | |
| // @grant GM_xmlhttpRequest | |
| // @require https://code.jquery.com/jquery-3.4.1.min.js |
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
| /* | |
| Autosend Invites to anyone that shares X number of connections with you. | |
| Way to use this script: | |
| 1. Save it as a bookmarklet | |
| 2. Go to 'People you may know' | |
| 3. Click on this bookmarklet. | |
| 4. Enter number of overlapping connections | |
| 5. Check your console |
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 hubspot = require('@hubspot/api-client'); | |
| exports.main = async (event, callback) => { | |
| const hubspotClient = new hubspot.Client({ | |
| accessToken: process.env.custom_code_private_app | |
| }); | |
| try { |
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 request = require('request'); | |
| exports.main = async (event, callback) => { | |
| /* BE SURE TO ADD THE CONTACT ID INTO THE 'PROPERTY TO INCLUDE IN CODE' SECTION OF THE CUSTOM CODED ACTION */ | |
| const contact_id = event.inputFields['hs_object_id']; | |
| /* LOOK UP THE CONTACT VIA THE ID AND RETRIEVE THE PROPERTY 'hs_additional_emails' */ | |
| var options = { | |
| "method": "GET", | |
| "url": "https://api.hubapi.com/crm/v3/objects/contacts/" + contact_id + "?hapikey=" + process.env.HAPIKEY + "&properties=hs_additional_emails" |
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
| /** * @OnlyCurrentDoc */ | |
| function moveColumns() { | |
| // get sheet | |
| var sheet = SpreadsheetApp.getActiveSheet(); | |
| // select columns to be moved ('collegename' & 'shoesize') | |
| var columnsToMove = sheet.getRange("E1:F1"); |
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
| // ==UserScript== | |
| // @name Auto Archive Redirect | |
| // @namespace Evan Reichard | |
| // @version 0.0.3 | |
| // @match *://*/* | |
| // @grant GM.xmlhttpRequest | |
| // @grant GM.openInTab | |
| // @noframes | |
| // @run-at document-start | |
| // ==/UserScript== |
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
| // this is pretty quick and rough.. but it works | |
| // script.google.com | |
| // settings to allow editing the appscript.json | |
| // set these two files | |
| // then hit Run with function 'run' | |
| const all = {}; | |
| function run() { |
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
| javascript: Promise.all([import('https://unpkg.com/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{ | |
| default: Turndown | |
| }, { | |
| default: Readability | |
| }]) => { | |
| /* Optional vault name */ | |
| const vault = ""; | |
| /* Optional folder name such as "Clippings/" */ |
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
| // preamble: public domain; no warranty | |
| // | |
| // this is a toy -- it is slow, cannot handle unicode, keys w/ | |
| // spaces, nested keys, natural ordering, etc. | |
| // orderBy('key1 [asc|1|desc|-1][, key2 [asc|1|desc|-1]][, etc]') | |
| // | |
| // write sql-like sort orders for arrays of objects, e.g.: | |
| // |
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
| async function onTrack(event, settings) { | |
| if (event.event !== settings.eventName) { | |
| return; | |
| } | |
| const product = event.properties.products[0]; | |
| const itemPurchased = `${product.brand} ${product.name}`; | |
| const Body = `Thank you for purchasing ${itemPurchased} from our site. We will follow-up with the tracking details shortly.`; | |
| const To = settings.twilioDestinationNumber; |