Skip to content

Instantly share code, notes, and snippets.

View hadizz's full-sized avatar
🏕️
camping

Hadi hadizz

🏕️
camping
View GitHub Profile
@hadizz
hadizz / gitlabCodeReviewFocusMode.css
Last active April 5, 2022 06:59 — forked from elcoreman/gist:3f7ec19249884c9c5c8a957b7600329e
Gitlab Code Review Focus Mode
.mr-version-controls.mr-version-menus-container {
display: none !important;
}
.merge-request-tabs-container,
.breadcrumbs-containe,
.detail-page-header-body,
.detail-page-header,
.nav-sidebar,
.navbar-gitlab,
@hadizz
hadizz / app.js
Last active July 20, 2021 07:56
auth context hooks
import React, {Suspense} from "react"
import {useAuth} from "./contexts/Auth"
import {useHistory} from "react-router-dom";
const AuthenticatedApp = React.lazy(() => import('./AuthenticatedApp'))
const UnauthenticatedApp = React.lazy(() => import('./UnauthenticatedApp'))
const App = () => {
const {user} = useAuth();
const history = useHistory();
@hadizz
hadizz / gist:aa77d7e082b63c62feed626822387887
Last active November 21, 2020 19:32
thumbnails for post
[
{"id": 0, "url":"https://i.picsum.photos/id/484/100/100.jpg?hmac=htnVVKFLLoNjX015NaqVX_ri2Od01F1pUEfxN7Vr6ls"},
{"id": 1, "url":"https://i.picsum.photos/id/1039/200/200.jpg?hmac=VpGJWDIq64ZdzDD5NAREaY7l5gX14vU5NBH84b5Fj-o"},
{"id": 2, "url":"https://i.picsum.photos/id/134/300/300.jpg?hmac=b3gMz-pfa737vVp8dKmvrVyW-eLFdbJ6Zju4XLUr62k"},
{"id": 3, "url":"https://i.picsum.photos/id/484/100/100.jpg?hmac=htnVVKFLLoNjX015NaqVX_ri2Od01F1pUEfxN7Vr6ls"}
]
@hadizz
hadizz / todos
Last active September 28, 2020 21:55
[
{
"userId": 1,
"id": 1,
"title": "فیات 500 سفید",
"completed": false
},
{
"userId": 1,
"id": 2,
{
"id": 22,
"user_id": 22,
"original_tweet_id": 22,
"is_draft": false,
"publish_date": 1600200128,
"tweet_content": {
"text": "mention @HadiZare hastag #Forex hyperlink\nsecond line innerlink.com",
"entities": [
{ "type": "USER", "offset": 8 , "length": 9 , "dest": "hadizare" },
@hadizz
hadizz / ReadFromFile.java
Last active April 22, 2020 19:23
Read from file with java
/**
* @author Hadi Zare
*
*/
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Arrays;
import java.util.Scanner;
public class readFromFile {