Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.
[Brief description ]
- [more description]
- [more description]
- [more description]
// Types for the result object with discriminated union | |
type Success<T> = { | |
data: T; | |
error: null; | |
}; | |
type Failure<E> = { | |
data: null; | |
error: E; | |
}; |
With the new users loaded from 'import.users' table.
2024-10 Started from ...
https://gist.github.com/khattaksd/4e8f4c89f4e928a2ecaad56d4a17ecd1
With addition of 'provider_id' as per @fluid-design-io
With my additions to load import data from import.users table,
to save generated values back into that table, and
to be able to add rows when destination tables are not empty.
"use client"; | |
import * as React from "react"; | |
import { Input } from "@/components/ui/Input"; | |
import { Button } from "@/components/ui/Button"; | |
import { | |
AlertDialog, | |
AlertDialogContent, | |
AlertDialogHeader, | |
AlertDialogTitle, | |
AlertDialogDescription, |
/* From http://thatemil.com/blog/2015/01/03/reset-your-fieldset/ by Emil Björklund */ | |
legend { | |
display: table; | |
padding: 0; | |
} | |
fieldset { | |
border: 0; | |
margin: 0; | |
min-width: 0; |
@mixin lhCrop($line-height) { | |
&::before { | |
content: ''; | |
display: block; | |
height: 0; | |
width: 0; | |
margin-top: calc((1 - #{$line-height}) * 0.5em); | |
} | |
} |
import request from 'request' | |
const api_endpoint = 'https://api.figma.com/v1' | |
const personal_access_token = 'FIGMA_ACCESS_TOKEN_HERE' // https://www.figma.com/developers/docs#auth-dev-token | |
function downloadSvgFromAWS(url) { | |
return new Promise((resolve, reject) => { | |
request.get( | |
url, | |
{ |
git branch | grep -v "master\|develop" | xargs git branch -D |
"use strict" | |
const express = require('express') | |
const graphqlHTTP = require('express-graphql') | |
const { parse, print, visit, parseValue, printSchema, buildSchema } = require('graphql') | |
const app = express() | |
const util = require('util') | |
const graphqlTools = require('graphql-tools'); | |
const rawSchema =` |
const spacingFactor = 8; | |
export const spacing = { | |
space0: `${computeGoldenRatio(spacingFactor, 0)}px`, // 8 | |
space1: `${computeGoldenRatio(spacingFactor, 1)}px`, // 13 | |
space2: `${computeGoldenRatio(spacingFactor, 2)}px`, // 21 | |
space3: `${computeGoldenRatio(spacingFactor, 3)}px`, // 34 | |
space4: `${computeGoldenRatio(spacingFactor, 4)}px`, // 55 | |
space5: `${computeGoldenRatio(spacingFactor, 5)}px`, // 89 | |
}; |