Skip to content

Instantly share code, notes, and snippets.

@imdanielch
imdanielch / aprompt.png
Last active August 29, 2015 14:11 — forked from mislav/aprompt.png
aprompt.png
<!-- This gist discribes a workaround for Android <4.4 and iOS <7.
The problem is that those iOS and Android versions do not support
flexbox wrapping and make (in the case I was working on) them invisible.
The goal is to flex a list of items with a fixed width and in case of floating a fixed height.
The workaround uses Modernizr to check if modernflexbox is available.
If not or JS is turned off, everything will be floated.
@imdanielch
imdanielch / how-to.md
Created March 30, 2018 19:40 — forked from furf/how-to.md
Slack invite integration for Google Forms
  1. Create a Google Form with a field to collect email addresses. Pro-tip: use Data Validation to validate string is valid email.
  2. Click View Responses to view form responses in Google Spreadsheets.
  3. Open menu Tools > Script editor...
  4. Paste in Google App Script below and make the following changes:
    • Create a Slack API token and replace the value of SLACK_API_TOKEN.
    • Replace "YOUR_TEAM_NAME" with your team's name in the value for SLACK_API_INVITE_URL.
    • Make sure EMAIL_FIELD_NAME corresponds to the header text of your Google Spreadsheet's email column.
  5. Open menu Resources > Current project's triggers and add a new trigger: onFormSubmit, From spreadsheet, On form submit. Click Save and accept the authorization request to use the script.
  6. You can optionally configure notifications to receive error messages by email.
@imdanielch
imdanielch / Dockerfile
Created March 13, 2020 06:40 — forked from hermanbanken/Dockerfile
Compiling NGINX module as dynamic module for use in docker
FROM nginx:alpine AS builder
# nginx:alpine contains NGINX_VERSION environment variable, like so:
# ENV NGINX_VERSION 1.15.0
# Our NCHAN version
ENV NCHAN_VERSION 1.1.15
# Download sources
RUN wget "http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz" -O nginx.tar.gz && \