Skip to content

Instantly share code, notes, and snippets.

View jhefreyzz's full-sized avatar

JFRYSJT jhefreyzz

View GitHub Profile
import React from 'react'
import { Link } from 'react-router-dom'
import styled, {
css,
ThemedCssFunction,
DefaultTheme,
FlattenInterpolation,
ThemeProps,
ThemedStyledProps
} from 'styled-components'
import React from 'react'
import { Link } from 'gatsby'
import { ifNotProp } from 'styled-tools'
import styled, { css } from 'styled-components'
import { string, object, oneOfType, oneOf } from 'prop-types'
import getPaletteColor from '../../../services/getPaletteColor'
import Icon from '../icon'
const sizes = [
type StyleProperty = {
    [key: string]: string
} & {
style:   
| FlattenInterpolation<ThemedCssFunction<DefaultTheme>>   
| FlattenInterpolation<ThemeProps<DefaultTheme>>
}
const sizes: StyleProperty[] = [
{
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.AspNetCore.Components.Server.Circuits.RemoteJSRuntime.BeginInvokeJS(Int64 asyncHandle, String identifier, String argsJson)
at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](String identifier, CancellationToken cancellationToken, Object[] args)
at Microsoft.JSInterop.JSRuntime.InvokeWithDefaultCancellation[T](String identifier, Object[] args)
at Blazor.Extensions.JSRuntimeExtensions.InvokeSync[T](IJSRuntime jsRuntime, String identifier, Object[] args)
at Blazor.Extensions.HubConnection..ctor(IJSRuntime runtime, HttpConnectionOptions options)
at Blazor.Extensions.HubConnectionBuilder.Build()
at RealTodo.Pages.FetchDataBase.OnInitializedAsync() in C:\Users\Utsuro\source\repos\RealTodo\RealTodo\Pages\FetchData.razor.cs:line 26
at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
at Microsoft.AspNetCore.Components.Rendering.HtmlRenderer.HandleException(Exception
AttributeError at /api/auth/checkemail
Got AttributeError when attempting to get a value for field `username` on serializer `UserSerializer`.
The serializer field might be named incorrectly and not match any attribute or key on the `Response` instance.
Original exception text was: 'Response' object has no attribute 'username'.
Request Method: GET
Request URL: http://127.0.0.1:8000/api/auth/checkemail
Django Version: 2.2.1
Python Executable: /home/hei/.local/share/virtualenvs/lead_project-E7IwJTqT/bin/python3
Python Version: 3.6.7
@jhefreyzz
jhefreyzz / ?sample=this
Created November 26, 2018 00:23
useful link
https://chrisdiana.github.io/cms.js-themes/templates/bulma-blog.html#/posts
https://elixirforum.com/t/ecto-many-to-many-timestamps/13791/2