Skip to content

Instantly share code, notes, and snippets.

View jwoo0122's full-sized avatar
🔥

Leo Jeong jwoo0122

🔥
View GitHub Profile
# Ubuntu 16.04.6
FROM --platform=linux/amd64 ubuntu:xenial-20190425
SHELL ["/bin/bash", "-c"]
# Install set up tools
RUN apt-get update && \
DEBIAN_FRONTEND=noninterative \
apt-get install -y --no-install-recommends git ca-certificates sudo
RUN usermod -aG sudo root
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: green; icon-glyph: magic;
function getGradient(current) {
const lg = new LinearGradient()
lg.locations = [0, 1]
lg.startPoint = new Point(0.5, 0)
lg.endPoint = new Point(0.5, 1)
if (typeof current !== 'number') { return lg }

Gatsby reverted support for new JSX transform (which is from React 17). If you need this, you should setup babel (and maybe typescript)

babel.config.js

module.exports = function(api) {
  api.cache(true)

  const presets = [
    [
 "babel-preset-gatsby",
@jwoo0122
jwoo0122 / rollup-typescript-error.md
Last active November 26, 2020 14:17
@rollup/plugin-typescript bug?

If you enter the error said

Error: The keyword 'something' is reserved (Note that you need plugins to import files that are not JavaScript)

and you're using @rollup/plugin-typescript, then try to edit your tsconfig like this:

{
  "complierOptions": {
 "rootDir": "root/of/your/input/files