Skip to content

Instantly share code, notes, and snippets.

View dufferzafar's full-sized avatar
🏠
Working from home

Shadab Zafar dufferzafar

🏠
Working from home
View GitHub Profile
@dufferzafar
dufferzafar / Get lyrics tag from an MP3 file.ipynb
Created August 29, 2015 13:28
Use mutagen to get unsynced lyrics from an MP3 file.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dufferzafar
dufferzafar / MinDistArray.c
Last active August 29, 2015 13:58
Finding an array that is at minimum distance from a group of arrays.
# include <stdio.h>
# include <stdlib.h>
# include <time.h>
# include <math.h>
float distance(int *, int *, int);
void printArr(int *, int, int, char *);
void printMat(int **, int, int, char *);
int main(int argc, char const *argv[])
@dufferzafar
dufferzafar / C.sublime-build
Created April 9, 2014 21:24
C Sublime Build
{
"cmd" : ["gcc", "-Wall", "$file_name", "-o", "$file_base_name.exe"],
"selector" : "source.c",
"shell": true,
"working_dir" : "$file_path"
}
@dufferzafar
dufferzafar / GSoC 2014 Proposal.md
Created May 16, 2014 00:32
My GSoC 2014 Proposal

GSoC Proposal

Personal Information

Name: Shadab Zafar

Nickname: Bittoo (pronounced: bit-two)

IRC Nick: dufferZafar

@dufferzafar
dufferzafar / Bootstrap 3.sublime-snippet
Created June 5, 2014 08:31
Bootstrap 3 Template for Sublime Text 3
<snippet>
<content><![CDATA[
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
@dufferzafar
dufferzafar / Keybase.md
Created June 13, 2014 08:07
Keybase Proof

Keybase proof

I hereby claim:

  • I am dufferzafar on github.
  • I am dufferzafar (https://keybase.io/dufferzafar) on keybase.
  • I have a public key whose fingerprint is 481E 4EFB 8089 E76F F840 2793 146C 8338 3F0C 5FF2

To claim this, I am signing this object:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>author</key>
<string>github.com/dufferzafar</string>
<key>colorSpaceName</key>
<string>sRGB</string>
<key>gutterSettings</key>
<dict>
@dufferzafar
dufferzafar / Jrnl.tmLanguage
Created August 13, 2014 17:55
Sublime syntax highlight for .jrnl files
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>jrnl</string>
</array>
<key>name</key>
<string>Jrnl File</string>
@dufferzafar
dufferzafar / dufferZafar's Resume (sorta).md
Created September 28, 2014 19:42
Profile Created for the Placement 2016 form. Finally Done.
@dufferzafar
dufferzafar / Hide Moz.ahk
Created September 30, 2014 16:30
Hide Private Mozilla Windows (like when your boss is around)
#NoTrayIcon
#SingleInstance, Force
SetTitleMatchMode, 2
PID := WinExist("Mozilla Firefox (Private Browsing)")
Hidden := 0
#h::
If (Hidden)