This file contains hidden or 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
| { | |
| "theme": { | |
| "accentColor": { | |
| "inherit": "inherit", | |
| "current": "currentColor", | |
| "transparent": "transparent", | |
| "black": "#000", | |
| "white": "#fff", | |
| "slate": { | |
| "50": "#f8fafc", |
This file contains hidden or 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
| @use "sass:math"; | |
| $type-size-root: 14px; | |
| $type-ratio: 7px / 6px; | |
| $type-names: ( | |
| 50: -2, | |
| 75: -1, | |
| 100: 0, | |
| 200: 1, | |
| 300: 2, |
This file contains hidden or 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
| function validateDate(year, month, day) { | |
| const date = new Date(year, month, day); | |
| if (year !== date.getFullYear() || month !== date.getMonth() || day !== date.getDate()) { | |
| throw new Error('Invalid date'); | |
| } | |
| return date; | |
| } |
This file contains hidden or 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
| { | |
| "languages": { | |
| "1c": { | |
| "aliases": [ | |
| "1c" | |
| ] | |
| }, | |
| "abnf": { | |
| "aliases": [ | |
| "abnf" |
This file contains hidden or 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
| // GraphQL query | |
| const GetPhotos = gql` | |
| query GetPhotos { | |
| assets { | |
| id | |
| url | |
| width | |
| height | |
| } |
This file contains hidden or 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
| /** @typedef {import("graphql-config").IGraphQLConfig} IGraphQLConfig */ | |
| const {loadEnvConfig} = require('@next/env'); | |
| loadEnvConfig(__dirname, true); | |
| /** @type IGraphQLConfig */ | |
| const config = { | |
| schema: process.env.GRAPHCMS_ENDPOINT, | |
| extensions: { |
This file contains hidden or 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
| { | |
| "execMap": { | |
| "go": "go run {{filename}} || exit 1" | |
| }, | |
| "ext": "go" | |
| } |
This file contains hidden or 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
| package main | |
| import ( | |
| "encoding/hex" | |
| "encoding/json" | |
| "fmt" | |
| ) | |
| type HexEncodedByteArray []byte |
This file contains hidden or 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
| FROM --platform=${BUILDPLATFORM} golang:1.14 AS build | |
| ARG TARGETOS | |
| ARG TARGETARCH | |
| ARG caddy_version=v1.0.4 | |
| ENV GOOS=${TARGETOS} | |
| ENV GOARCH=${TARGETARCH} | |
| WORKDIR /usr/local/src/caddy | |
| COPY ./main.go ./ |
This file contains hidden or 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
| require "json" | |
| class Container(T) | |
| getter value : T | |
| def initialize(@value) | |
| end | |
| end | |
| def new_container(json : String, t_class : T.class) : T forall T |
NewerOlder