Skip to content

Instantly share code, notes, and snippets.

View haideralipunjabi's full-sized avatar

Haider Ali Punjabi haideralipunjabi

View GitHub Profile
@haideralipunjabi
haideralipunjabi / ExifCaption.java
Last active January 27, 2017 13:58
Class used to extract exif information from a given text
/**
* ExifCaption
* Class used to extract exif information from a given text
* @param ISO the ISO info
* @oaram Aperture the Aperture info
* @param ShutterSpeed the Shutter Speed info
* @param DeviceName the DeviceName info
* @oaram caption the String from which the EXIF info is to be extracted
*/
@haideralipunjabi
haideralipunjabi / QualityUtils.java
Created March 5, 2017 15:38
The CalculateQualityIndexes implements a method that calculates the index for different sections of photo qualities, and returns them as an array.
/**
* <h1>Calculate Index of Photo Resolutions</h1>
* The CalculateQualityIndexes implements a method
* that calculates the index for different sections
* of photo qualities, and returns them as an array.
* <h2>Example usage:</h2>
* <p> Calculating the indexes for High, Medium and Low
* resolution photos fetched as JSONArray from Facebook
* GraphAPIs images field of photo endpoint,
* and stored in a LinkedHashMap.
public static void PostToGroup(final Activity activity, final byte[] image, final String caption, final PostDelegate postDelegate)
{
String post_request = "/" + "1631546380475418";
if(image != null) post_request += "/photos";
else post_request += "/feed";
Bundle params = new Bundle();
params.putString("message", caption);
if(image != null) params.putByteArray("source", image);
FacebookSdk.setOnProgressThreshold(1l);
GraphRequest.OnProgressCallback gCallBack = new GraphRequest.OnProgressCallback() {
@haideralipunjabi
haideralipunjabi / views.py
Created April 16, 2017 11:18
Simple Django View to return number of each language used by a user in their Github Repositories (pulic & private)
from rest_framework.views import APIView
from rest_framework.response import Response
import requests
import os
import simplejson
# Simple Django View to return number of each language used by a user in their Github Repositories (pulic & private)
# To use, add environment variables, GITHUB_USERNAME = <your-github-username> & GITHUB_PAT = <github-personal-access-token-with-repo-access>
class LanguageView(APIView):
@haideralipunjabi
haideralipunjabi / Details.md
Last active August 23, 2017 15:30
TBMES +2 IP Project Details

TBMES +2 IP Project

Topics

  • Global Warming
  • Disaster Management
  • TBMES Website
  • Code Club Website
  • History of English Literature

Tools

@haideralipunjabi
haideralipunjabi / AtomFlagIconsGenerator.md
Last active November 4, 2018 10:23
A small python script used to generate Atom Icons inspired from Flags of different countries.

Atom Flag Icons Generator

A small python script used to generate Atom Icons inspired from Flags of different countries.
Check out the atom-icons project for these and other such icons for Atom

You can find the flagColors.json file here

@haideralipunjabi
haideralipunjabi / AtomFootballIconsGenerator.md
Last active January 31, 2019 15:15
A small python script used to generate Atom Icons inspired from team logos of Football / Soccer Leagues
@haideralipunjabi
haideralipunjabi / PrivacyPolicy_Tweet2Pic.html
Created September 19, 2018 03:55
Privacy policy for Tweet2Pic App
<html>
<body>
<h2>Privacy Policy</h2>
<p>Hackesta built the Tweet2Pic app as a free app. This SERVICE is provided by Hackesta at no cost and is intended
for use as is.</p>
<p>This page is used to inform website visitors regarding our policies with the collection, use, and
disclosure of Personal Information if anyone decided to use our Service.</p>
<p>If you choose to use our Service, then you agree to the collection and use of information in
relation with this policy. The Personal Information that we collect are used for providing and
improving the Service. We will not use or share your information with anyone except as described
  • Kusu Taawan
  • Che ma dolmut
  • Katihaz Chuv?
  • Paksa Baya
  • Shakh ma chu kyeh?
  • Yi chaz theek?
  • Fikri torah kyeh?
  • Kyeh chune parwway
  • Ye chu lokut masle
  • Ye chuv tohi mubarak