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
[ | |
{ | |
"year": "2022", | |
"make": "honda", | |
"model": "civic", | |
"style": "401875382", | |
"url": "https://www.edmunds.com/car-maintenance/results.html?styleId=401875382&mileage=40000", | |
"styleModel": "LX 4dr Sedan (2.0L 4cyl CVT)", | |
"data": { | |
"makes": [{ "id": "200001444" }], |
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 java.io.BufferedReader; | |
import java.io.FileNotFoundException; | |
import java.io.FileReader; | |
import java.io.IOException; | |
public class App { | |
// Number of neurons in the input layer | |
private static final int INPUT_NEURONS = 4; | |
private static final int INPUTS_LENGTH = 64; |
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
let init = (el) => { | |
var container = document.getElementsByClassName(el) | |
let list = container[0].children | |
const defEl = 2 | |
let def = defEl | |
Array.from(list).forEach(e => e.style.display = "none") | |
return () => { | |
let a = false | |
Array.from(list).forEach((e, i) => { | |
console.log({ i, def }) |
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, { useState } from 'react'; | |
import styles from './index.less'; | |
import { Form, Input, Button, Checkbox } from 'antd'; | |
import { UserOutlined, LockOutlined } from '@ant-design/icons'; | |
import { useIntl, connect, FormattedMessage } from 'umi'; | |
import { Login as Log } from '@/models/user'; | |
const LoginMessage = ({ content }) => ( | |
<Alert | |
style={{ |
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 Auth from '@/services/auth'; | |
import { queryCurrent, query as queryUsers } from '@/services/user'; | |
import Firestore from '@/services/firestore'; | |
import { refs, functions, auth, db } from '@/services/utils/firebase_config'; | |
import { getAuthority, removeAuthority, setAuthority } from '@/utils/authority'; | |
import { dispatch, RANDOMWORDS, redirectWhenLoggedIn, replacerFunc } from '@/utils/utils'; | |
import { message } from 'antd'; | |
import axios from 'axios'; | |
import { loadAlerts } from '@/.umi/plugin-dva/connect'; | |
import { history } from 'umi'; |
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 express = require("express"); | |
const next = require("next"); | |
const port = process.env.PORT || 3000; | |
const dev = true; | |
const app = next({ dev }); | |
const handle = app.getRequestHandler(); | |
app | |
.prepare() |
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 | |
import { getDvaApp } from 'umi' | |
// DVA store. | |
const store = getDvaApp()?._store | |
// function, this is how you can access dispatch | |
export function dispatch(action) { | |
return getDvaApp()?._store.dispatch(action); | |
} |
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
:root { | |
--color: #1c1821; | |
} | |
.Splash { | |
margin: 0; | |
padding: 0; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
height: 100vh; |
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 logo from "./logo.svg"; | |
import "./App.css"; | |
import { useEffect, useRef, useState } from "react"; | |
function App() { | |
const [state, setstate] = useState(40); | |
useEffect(() => {}, []); | |
return ( | |
<div className="Splash"> |
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 logo from "./logo.svg"; | |
import "./App.css"; | |
import { useEffect, useRef, useState } from "react"; | |
function App() { | |
const [state, setstate] = useState(40); | |
const dot1 = useRef(); | |
const dot2 = useRef(); | |
const dot3 = useRef(); | |
const container = useRef(); |
NewerOlder