Skip to content

Instantly share code, notes, and snippets.

Avatar

Hrishikesh Pathak hrishiksh

View GitHub Profile
@hrishiksh
hrishiksh / main.dart
Created Oct 18, 2022
Flutter routing with go_router
View main.dart
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import 'package:url_strategy/url_strategy.dart';
void main(List<String> args) {
setPathUrlStrategy();
return runApp(const MyApp());
}
class MyApp extends StatelessWidget {
@hrishiksh
hrishiksh / App-2.jsx
Created Oct 5, 2022
FaceIO react tailwind
View App-2.jsx
import "./App.css";
import { useEffect } from "react";
function App() {
let faceio;
useEffect(() => {
faceio = new faceIO("fioa414d");
}, []);
@hrishiksh
hrishiksh / App.css
Created Jul 28, 2022
FaceIO reactjs gist
View App.css
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
section {
@hrishiksh
hrishiksh / blur-index.js
Created Jul 17, 2022
detect and blur images pixlab
View blur-index.js
async function blurImage(faceCoordinate, imageUrl) {
try {
let blurimageResponse = await fetch("http://localhost:5000/mogrify", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
url: imageUrl,
coord: faceCoordinate,
@hrishiksh
hrishiksh / Check python2 version
Created Jul 20, 2021
Install BKChem in ubuntu 20.04 linux
View Check python2 version
python2 --version
// output
Python 2.7.18