Skip to content

Instantly share code, notes, and snippets.

View jimmyliao's full-sized avatar
💭
Let's build things together!!!

JimmyLiao jimmyliao

💭
Let's build things together!!!
View GitHub Profile
@leomelzer
leomelzer / Dockerfile
Last active March 9, 2022 19:18
Install private NPM dependencies using git+ssh on Now. Based on https://zeit.co/blog/build-env to work around missing support for git+ssh dependencies in now@2 (https://github.com/zeit/now-builders/issues/49)
# This is a multi-stage build to not spill the contents of the deploy_key
FROM mhart/alpine-node:10 as base
# We need git and openssh to resolve `git+ssh` links in package.json
RUN apk update \
&& apk add git openssh
WORKDIR /usr/src
COPY package*.json ./
@even-wei
even-wei / primehub_tutorial.py
Last active January 6, 2022 00:27
A demo for integrating PrimeHub and Airflow
import logging as log
import datetime
from datetime import timedelta
import requests
import numpy as np
# The DAG object; we'll need this to instantiate a DAG
from airflow import DAG
from airflow.models import Variable