Skip to content

Instantly share code, notes, and snippets.

View iftkharhussain's full-sized avatar

Iftikhar Hussain iftkharhussain

View GitHub Profile
  1. Introduction This Privacy Policy explains how our Flashlight App handles user data. We are committed to protecting your privacy and ensuring transparency regarding any data collection.

  2. Data Collection and Usage Our app does not collect, store, or share any personal data. However, we use third-party advertising services (Google AdMob), which may collect certain information to improve ad relevance.

2.1. Advertising and Advertising ID Our app displays ads using Google AdMob. AdMob may collect and use Advertising ID to provide personalized and non-personalized ads.

The Advertising ID is used to improve ad targeting and provide a better ad experience.

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: