Skip to content

Instantly share code, notes, and snippets.

@sorin89
sorin89 / gist:a990655a7ccae13a24a40a3956d09952
Created February 20, 2017 21:33 — forked from carolineschnapp/gist:5397337
Sample JavaScript file added with ScriptTag resource. This sample file is meant to teach best practices. Your app will load jQuery if it's not defined. Your app will load jQuery if jQuery is defined but is too old, e.g. < 1.7.
/* Sample JavaScript file added with ScriptTag resource.
This sample file is meant to teach best practices.
Your app will load jQuery if it's not defined.
Your app will load jQuery if jQuery is defined but is too old, e.g. < 1.7.
Your app does not change the definition of $ or jQuery outside the app.
Example: if a Shopify theme uses jQuery 1.4.2, both of these statements run in the console will still return '1.4.2'
once the app is installed, even if the app uses jQuery 1.9.1:
jQuery.fn.jquery => "1.4.2"
$.fn.jquery -> "1.4.2"
*/
gcloud config set project PROJECTNAME
du -a | sort -n -r | head -n 20
import axios from 'axios';
import dayjs from 'dayjs';
export default async function ashby(company) {
const config = {
method: 'post',
url: 'https://api.ashbyhq.com/jobPosting.list',
headers: {
'Authorization': 'Basic ' + Buffer.from(company.token + ':').toString('base64')
}