import React, { useState } from 'react';
interface Props {
text: string;
}
const MyComponent = (props: Props) => {
This file contains 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
const easeInOutQuad = (t) => t<.5 ? 2*t*t : -1+(4-2*t)*t | |
const easeInOutCubic = (t) => t<.5 ? 4*t*t*t : (t-1)*(2*t-2)*(2*t-2)+1 | |
const easeInOutQuart = (t) => t<.5 ? 8*t*t*t*t : 1-8*(--t)*t*t*t | |
const easeInOutQuint = (t) => t<.5 ? 16*t*t*t*t*t : 1+16*(--t)*t*t*t*t | |
// OLIKA FUNKTIONER |
This file contains 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
/* | |
This query will crash when run if incoming userId prop is undefined. It's because | |
it's marked as required for the `user(id)` field. So that will force me to mark it | |
as required as a variable in my `Foo` client query below. | |
But I want to *conditionally* include the whole user field if only if userId prop | |
is a string in the component. | |
How?! | |
This file contains 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
[alias] | |
# View commits in local branch vs. master | |
current = !"git log $(git rev-parse --abbrev-ref HEAD) ^master --no-merges" | |
# View unpushed commits | |
unpushed = !git log @{u}..HEAD | |
# View all unpushed commits on all branches | |
all-unpushed = !git log --branches --not --remotes --oneline | |
# View latest unpushed commits on all branches | |
unpushed-branches = !git log --branches --not --remotes --oneline --decorate --simplify-by-decoration |
This file contains 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
import * as React from 'react'; | |
import * as unified from 'unified'; | |
import { useContext } from 'react'; | |
import classNames from '../libs/classNames'; | |
import mentions from './remark-mentions'; | |
import { StateContext } from '..'; | |
import { traverseMentions } from '../traverse-mentions'; | |
import { User } from '../types'; |
This file contains 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
import React, { useEffect, useState, useCallback } from 'react'; | |
import { render } from 'react-dom'; | |
import { run } from 'frap'; | |
import xs, { Stream } from 'xstream'; | |
import { useStream } from './util'; | |
import { State, View, startState } from './main.ts'; | |
/** Our 'send' function signature. */ | |
type Send = (event: View) => void; |
This file contains 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
import React from 'react'; | |
interface Props { | |
onAddTodo: (newDescription: string) => void; | |
} | |
export const MyForm = (props: Props) => { | |
const handleSubmit = (evt) => { | |
evt.preventDefault(); |
- Tycker body-texten ska ha en brunare/jordigare ton. För mycket svart nu.
- Har du provat med centerjusterad text i sektionen "Komplement, eller helt ny garderob"?
- Tycker du kan blåsa upp rubriken i hero lite. Låt den ta lite plats! Kontrast! Tycker iofs du kan förstora alla rubriker nu när jag ser resten. Låt dem även ha samma fadeade ton som huvudrubriken.
- Lite newb med gmail-adress.
- Ingen spacing mellan hyphen i telefonnummer
This file contains 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
{ | |
"javascript.showUnused": false, | |
"typescript.showUnused": false, | |
"telemetry.enableTelemetry": false, | |
"atomKeymap.promptV3Features": true, | |
"editor.multiCursorModifier": "ctrlCmd", | |
"editor.formatOnPaste": false, | |
"editor.tabSize": 2, | |
"workbench.startupEditor": "newUntitledFile", | |
"editor.fontFamily": "Fira Mono, Menlo, Monaco, 'Courier New', monospace", |
NewerOlder