Skip to content

Instantly share code, notes, and snippets.

View iftkharhussain's full-sized avatar

Iftikhar Hussain iftkharhussain

View GitHub Profile
import React, { Component } from 'react';
import { View, TouchableOpacity } from 'react-native';
import _ from 'lodash';
import { scaleLinear } from 'd3-scale';
import { mean } from 'd3-array';
const ACTIVE = '#FF1844',
INACTIVE = '#424056',
ACTIVE_PLAYABLE = '#1b1b26'
function sum(a,b,c){
return a+b+c
}
@iftkharhussain
iftkharhussain / index.html
Created September 28, 2022 21:22
Project Management Dashboard UI
<div class="app-container">
<div class="app-header">
<div class="app-header-left">
<span class="app-icon"></span>
<p class="app-name">Portfolio</p>
<div class="search-wrapper">
<input class="search-input" type="text" placeholder="Search">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="feather feather-search" viewBox="0 0 24 24">
<defs></defs>
<circle cx="11" cy="11" r="8"></circle>
@iftkharhussain
iftkharhussain / requestHelper.js
Created August 23, 2021 16:16
It is common function to fetch or post data using fetch.
export const checkAuth = () => {
let localAuth = localStorage.getItem('auth')
if(localAuth){
return JSON.parse(localAuth)
}
return false
}
export const requestHelper = (url, method, headers, data) => {
let token = checkAuth()
@iftkharhussain
iftkharhussain / letsencrypt_2020.md
Last active September 2, 2021 05:35 — forked from cecilemuller/letsencrypt_2020.md
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files: