Skip to content

Instantly share code, notes, and snippets.

View andrewheiss's full-sized avatar
👨‍💻
#rstats-ing all the things

Andrew Heiss andrewheiss

👨‍💻
#rstats-ing all the things
View GitHub Profile
#supernav {
font: bold 9px/9px Verdana, Lucida Grande, Arial, Helvetica, Sans-Serif;
position: absolute;
top: 181px;
left: 50%;
width: 720px;
margin: 0 0 0 -360px;
padding: 5px 16px; /* duplicate the tab size */
text-align: left;
display: block;
#!/usr/bin/env ruby
quotes = [
'Do your work.',
'Get to work, doofus.',
'Quit goofing off.',
'Focus.',
'Are you studying?',
'How many words?',
"Confront the difficult\nwhile it is still easy.", # Tao Te Ching 63
> Andrew's Custom Quix Commands
> TITLE: heiss-quix.txt
> REMARKS: Still very much under construction
> GITHUB: http://gist.github.com/303936
> MORE: http://quixapp.com
> UPDATED: 2010-02-14_11-58-00
@Andrew Heiss's Custom Quix Commands
bit javascript:var%20e=document.createElement('script');e.setAttribute('language','javascript');e.setAttribute('src','http://bit.ly/bookmarklet/load.js');document.body.appendChild(e);void(0); Make a bit.ly link
gr javascript:var%20b=document.body;var%20GR________bookmarklet_domain='http://www.google.com';if(b&&!document.xmlVersion){void(z=document.createElement('script'));void(z.src='http://www.google.com/reader/ui/link-bookmarklet.js');void(b.appendChild(z));}else{}; Share in Google Reader
text javascript:location.href='http://www.aaronsw.com/2002/html2text/?url='+document.location.href; Transform this page into Markdown
RewriteEngine On
# Map http://www.andrewheiss.com to /jekyll.
RewriteRule ^$ /jekyll/ [L]
# Map http://www.andrewheiss.com/x to /jekyll/x unless there is a x in the web root.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/jekyll/
RewriteRule ^(.*)$ /jekyll/$1
@andrewheiss
andrewheiss / Download Quran.ps1
Created February 22, 2010 15:14
Uses Windows PowerShell to download the Qur'an
# PowerShell Qur'an Downloader
#
# Author: Andrew Heiss - http://www.andrewheiss.com
# Project site: http://gist.github.com/311147
# Description: Uses Windows PowerShell to download the Qur'an
# License: Licensed under the MIT License (see below)
# Date: February 22, 2010
# Version: 1.0 (February 22, 2010)
#
#
#!/usr/bin/env bash
for i in {1..114}; do
printf -v file "%03d" "$i"
echo -e "\nDownloading http://download.quranicaudio.com/quran/muhammad_siddeeq_al-minshaawee/$file.mp3"
curl -O http://download.quranicaudio.com/quran/muhammad_siddeeq_al-minshaawee/$file.mp3
done
#!/usr/bin/env bash
for i in {1..8}; do
echo -e "\nDownloading http://www.studyquran.org/LaneLexicon/Volume$i/V$i.zip"
curl -O http://www.studyquran.org/LaneLexicon/Volume$i/V$i.zip
done
foldingStartMarker = '/\*\*(?!\*)|\{\s*($|/\*(?!.*?\*/.*\S))';
foldingStopMarker = '(?<!\*)\*\*/|^\s*\}';
#!/usr/bin/perl
# Import Delicious bookmarks into Evernote.
# Usage: importdel.pl evernote_user evernote_password bookmarks_file
#
# This script takes as input a bookmarks file exported from Delicious. It
# creates a notebook and posts each bookmark as a note in that notebook.
use Thrift;
use Thrift::BinaryProtocol;
private static $arRegPatterns = array('/^ال/','/^إِي/','/^عِي/','/^عُو/','/ْع$/',
'/ِي$/','/َو$/','/َي$/','/^ع/','/^أ/','/^آ/' );
private static $arRegReplacements = array('Al-', 'ei', 'ei', 'ou', 'a',
'i', 'aw', 'ay', 'a', 'a', 'aa');
private static $arPatterns = array('ّ', 'تة', 'ته', 'كة', 'كه', 'ده', 'دة', 'ضه', 'ضة', 'سه', 'سة', 'صه', 'صة',
'َا', 'َي', 'ُو', 'ِي', 'ً', 'ٌ', 'ٍ', 'َ', 'ِ', 'ُ',
'ا', 'ب', 'ت', 'ث', 'ج', 'ح', 'خ', 'د', 'ذ', 'ر',
'ز', 'س', 'ش', 'ص', 'ض', 'ط', 'ظ', 'ع', 'غ', 'ف',
'ق', 'ك', 'ل', 'م', 'ن', 'ه', 'ة', 'و', 'ي', 'ى',