This file contains 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
// See https://legacydocs.hubspot.com/docs/methods/forms/submit_form | |
// See https://legacydocs.hubspot.com/docs/methods/get-account-details?hsLang=en | |
const PORTAL_ID = 123456; | |
// See https://knowledge.hubspot.com/forms/find-your-form-guid?_ga=2.268783985.1076297500.1664283830-1987132661.1663058677 | |
const FORM_ID = "this-is-a-guid"; | |
// This is the marketing subscription for GDPR stuff | |
// You can find this by calling https://api.hubapi.com/email/public/v1/subscriptions?hapikey=your-api-key | |
// And cross referencing against the subscriptions listed in HubSpot > settings > marketing > email > subscription types | |
const MARKETING_SUBSCRIPTION_ID = "123456" |
This file contains 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
import argparse, json, requests | |
def get_publications_journal(publications): | |
# Use crossref API to get extra meta info | |
# This should be replicated in ingest API endpoint when we have an endpoint | |
# Not done on client side for speed | |
results = [] | |
for publication in publications: | |
try: |
This file contains 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
# Add the below to your .bashrc | |
# if [ -f ~/.bash_aliases ]; then | |
# . ~/.bash_aliases | |
# fi | |
# List | |
alias ls="ls --color=auto" | |
alias ll="ls -al" | |
alias l.="ls -d .* --color=auto" |
This file contains 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 CleanWebpackPlugin = require('clean-webpack-plugin'); | |
const CopyWebpackPlugin = require('copy-webpack-plugin'); | |
const DependencyManifest = require('./plugins/DependencyManifest'); | |
const AddModernizrPlugin = require('./plugins/AddModernizr'); | |
const webpack = require('webpack'); | |
const path = require('path'); | |
const settings = require('./settings'); | |
const utils = require('./utils'); | |
/** |
This file contains 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 lang="en"> | |
<head> | |
<!--This is needed for everyting to behave--> | |
<meta charset="utf-8"> | |
<title>Advanced Pvjs</title> | |
<script src="https://unpkg.com/@wikipathways/pvjs/dist/index.js"></script> | |
<link rel="stylesheet" href="https://unpkg.com/@wikipathways/pvjs/dist/style.css" /> |
This file contains 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 lang="en"> | |
<head> | |
<!--This is needed for everyting to behave--> | |
<meta charset="utf-8"> | |
<title>Basic Pvjs</title> | |
<script src="https://unpkg.com/@wikipathways/pvjs/dist/index.js"></script> | |
<link rel="stylesheet" href="https://unpkg.com/@wikipathways/pvjs/dist/style.css" /> |
This file contains 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
<html> | |
<head> | |
<!--Import Polymer polyfill--> | |
<script src="bower_components/webcomponentsjs/webcomponents.min.js"></script> | |
<!--Import the custom element--> | |
<link rel="import" href="bower_components/wikipathways-pvjs/pvjs.html"> | |
<!--Instead of the above, we could wrap the polyfill and web component into a bundle--> | |
<!--In the Polymer docs the above method is used everywhere but we would also support React too so maybe this method is more appropriate--> | |
<script src="http://wikipathways.org/wpi/lib/pvjs/release/versionNumber/webcomponent.js"></script> |