Skip to content

Instantly share code, notes, and snippets.

View harlyon's full-sized avatar
🎯
Focusing

Harrison Ekpobimi harlyon

🎯
Focusing
View GitHub Profile
[
{
"id":"4637db65-dac5-4e45-8c01-4d0c5d41a606",
"name":"Venice Bike",
"imgpath":"/assets_bikezz/1.png",
"description":"Lorem ipsum dolor sit amet consectetur adipisicing elit. Perferendis illum harum impedit deserunt saepe dolore sit voluptates et ipsam cumque.",
"price":899,
"price_id":"price_1OrSzFKnZdxKrYh3MQ5EQIHp",
"slug":"venice-bike",
"categories":[
@harlyon
harlyon / 1_Property.json
Created January 28, 2023 19:22
PropertyDummyData
{
"id": 3996354,
"objectID": 3996354,
"ownerID": 1897045,
"userExternalID": "1897045",
"sourceID": 1,
"state": "active",
"geography": {
"lat": 25.181663,
"lng": 55.278035
setup virtual enviroment - sudo pip install pipenv
activate - python3 -m pipenv shell
install dependencies - pipenv install -r requirements.txt
start server - uvicorn app:main --reload
@harlyon
harlyon / gist:f271ce418844ffbba2050b2d4dfe1218
Created June 27, 2022 09:47 — forked from Mikodes/gist:be9b9ce42e46c3d4ccb6
All Media queries for resolutions
/* (320x480) iPhone (Original, 3G, 3GS) */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
/* insert styles here */
}
/* (320x480) Smartphone, Portrait */
@media only screen and (device-width: 320px) and (orientation: portrait) {
/* insert styles here */
}
@harlyon
harlyon / App.css
Created May 21, 2022 02:07 — forked from adrianhajdin/App.css
Build and Deploy a React Admin Dashboard App With Theming, Tables, Charts, Calendar, Kanban and More
@import url('https://cdn.syncfusion.com/ej2/material.css');
.sidebar {
box-shadow: rgb(113 122 131 / 11%) 0px 7px 30px 0px;
}
.nav-item,
.navbar {
z-index: 10000;
}
@media screen and (max-width:800px) {

Project root:

yarn add -D --save-exact eslint-config-airbnb eslint-config-airbnb-typescript eslint-config-prettier eslint-config-react-app eslint-import-resolver-typescript eslint-webpack-plugin eslint-plugin-flowtype eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks babel-eslint eslint-plugin-jest @typescript-eslint/parser @typescript-eslint/eslint-plugin prettier prettier-eslint prettier-eslint-cli eslint-plugin-prettier

$ vim .eslintrc

{
  "plugins": ["prettier", "@typescript-eslint"],
@harlyon
harlyon / react-file-upload.js
Created August 12, 2020 04:07 — forked from AshikNesin/react-file-upload.js
Simple React File Upload
import React from 'react'
import axios, { post } from 'axios';
class SimpleReactFileUpload extends React.Component {
constructor(props) {
super(props);
this.state ={
file:null
}
EACCESS ERROR FIX
- how to fix the EACCESS ERROR
- lets say for example you trying to install webpack
- sudo npm install webpack@4.25.1 -g
- and get an error
- Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/webpack/node_modules/fsevents/build'
- then try again to install it but with this at the end "--unsafe-perm=true --allow-root"
- for example
- sudo npm install webpack@4.25.1 -g --unsafe-perm=true --allow-root
or
# import GradeType from 'src/generated/prisma.graphql'
# import Activity from 'src/generated/prisma.graphql'
# import Beneficiary, BeneficiaryType from 'src/generated/prisma.graphql'
# import District from 'src/generated/prisma.graphql'
# import Input from 'src/generated/prisma.graphql'
# import Institutiion from 'src/generated/prisma.graphql'
# import Intervention from 'src/generated/prisma.graphql'
# import Province from 'src/generated/prisma.graphql'
# import ServiceProvider from 'src/generated/prisma.graphql'
# import User from 'src/generated/prisma.graphql'
state = {
show: false,
}
showParagraph = () => {
const {show} = this.state
this.setState({show: !show})
}
render() {
const {show} = this.state