Skip to content

Instantly share code, notes, and snippets.

View akaifi's full-sized avatar
🐢
One Step at a time, Keep Moving

Ahmad Adnan Kaifi akaifi

🐢
One Step at a time, Keep Moving
View GitHub Profile
@akaifi
akaifi / website.css
Created May 16, 2017 20:35 — forked from Eng-Fouad/website.css
GitBook RTL Theme
@import url(//fonts.googleapis.com/earlyaccess/notonaskharabic.css);
@import url(//fonts.googleapis.com/earlyaccess/notokufiarabic.css);
body, html {
overflow-x: hidden;
font-family: "Noto Naskh Arabic", "Helvetica Neue", Helvetica, Arial, sans-serif;
direction: rtl;
}
.book.font-family-0 {
gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/ButtonImages': <1>, 'Gtk/MenuImages': <1>}"
@akaifi
akaifi / README.md
Created November 23, 2015 02:43 — forked from mw-ferretti/README.md
Paypal button on markdown github

###Steps:

<!-- Sample of code generated --> 
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="RGQ8NSYPA59FL">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/pt_BR/i/scr/pixel.gif" width="1" height="1">
@akaifi
akaifi / gist:0d4a8205d4a9c936af2f
Created November 14, 2015 05:54 — forked from kgodard/gist:5072573
how to print avery labels with only a .csv and a web browser

NOTE: DO AVERY LABEL IMPORT STUFF IN FIREFOX -- I DON'T THINK THE AVERY SITE IS COMPATIBLE WITH CHROME

Steps described in this document:

  • Edit and sort your labels file in Google Docs (not in Excel)
  • Download your data as a .csv file
  • Import your edited .csv file into the Avery label maker site (not using Excel)
  • Print labels

  1. Edit and Sort label data in Google Docs
#!/usr/bin/env python
import gtk, threading, datetime, urllib2, json
import Image, ImageChops, ImageStat, StringIO
CONFIG_FILE = "config.json"
# config sample
#{
# "sensivity": 10,