Thanks to the original blog post: https://equimper.com/blog/how-to-setup-tailwindcss-in-phoenix-1.4
cd assets
npm i --save-dev tailwindcss postcss-loader postcss-import
/** | |
* @flow | |
* @prettier | |
*/ | |
import { type QueryRenderProps } from 'react-apollo' | |
import * as React from 'react' | |
import { | |
get, | |
takeRightWhile, |
Thanks to the original blog post: https://equimper.com/blog/how-to-setup-tailwindcss-in-phoenix-1.4
cd assets
npm i --save-dev tailwindcss postcss-loader postcss-import
/* | |
* A small utility to fix the letter kerning on macOS Chrome and Firefox when using the system font | |
* (San Francisco). It is now fixed in the text rendering engine in FF 58 and Chrome 64. | |
* UPDATE: It appears the applied fix doesn't work when the font is in italics. New fix has been added. | |
* Must be applied to all browsers for now. | |
*/ | |
;(() => { | |
const ua = navigator.userAgent | |
// macOS 10.11 (El Capitan) came with San Francisco. Previous versions used Helvetica |
First of all, please note that token expiration and revoking are two different things.
A JWT token that never expires is dangerous if the token is stolen then someone can always access the user's data.
Quoted from JWT RFC:
<excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/.git/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" /> | |
<excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/node_modules/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" /> | |
<excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/_build/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" /> | |
<excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/deps/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" /> |
<!doctype html> | |
<html> | |
<head><title>Log-In</title></head> | |
<script> | |
if (window.opener) { | |
window.opener.postMessage("popup-done", "*"); | |
setTimeout(function() { window.close() }, 0); | |
} | |
</script> | |
</head> |
Personal Blogs | |
Magazine Layouts | |
News Sites | |
Business Blogs | |
Minimal | |
Photography Corner | |
Video Heavy | |
Artistic | |
Social Hubs | |
Grid Based |
More details - http://blog.gbaman.info/?p=791
For this method, alongside your Pi Zero, MicroUSB cable and MicroSD card, only an additional computer is required, which can be running Windows (with Bonjour, iTunes or Quicktime installed), Mac OS or Linux (with Avahi Daemon installed, for example Ubuntu has it built in).
1. Flash Raspbian Jessie full or Raspbian Jessie Lite onto the SD card.
2. Once Raspbian is flashed, open up the boot partition (in Windows Explorer, Finder etc) and add to the bottom of the config.txt
file dtoverlay=dwc2
on a new line, then save the file.
3. If using a recent release of Jessie (Dec 2016 onwards), then create a new file simply called ssh
in the SD card as well. By default SSH i
These use separate document structures instead of HTML, some are more modular libraries than full editors
FROM python:3.4 | |
ENV PYTHONUNBUFFERED 1 | |
RUN apt-get update ; apt-get --assume-yes install binutils libproj-dev gdal-bin | |
RUN wget http://download.osgeo.org/geos/geos-3.4.2.tar.bz2 | |
RUN tar -xjf geos-3.4.2.tar.bz2 | |
RUN cd geos-3.4.2; ./configure; make; make install | |
RUN wget http://download.osgeo.org/gdal/1.11.0/gdal-1.11.0.tar.gz | |
RUN tar -xzf gdal-1.11.0.tar.gz |