Skip to content

Instantly share code, notes, and snippets.

#rstats-ing all the things

Andrew Heiss andrewheiss

#rstats-ing all the things
View GitHub Profile
View gist:130634
#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;
View motivation.rb
#!/usr/bin/env ruby
quotes = [
'Do your work.',
'Get to work, doofus.',
'Quit goofing off.',
'Are you studying?',
'How many words?',
"Confront the difficult\nwhile it is still easy.", # Tao Te Ching 63
View heiss-quik.txt
> Andrew's Custom Quix Commands
> TITLE: heiss-quix.txt
> REMARKS: Still very much under construction
> 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','');document.body.appendChild(e);void(0); Make a link
gr javascript:var%20b=document.body;var%20GR________bookmarklet_domain='';if(b&&!document.xmlVersion){void(z=document.createElement('script'));void(z.src='');void(b.appendChild(z));}else{}; Share in Google Reader
text javascript:location.href=''+document.location.href; Transform this page into Markdown
View .htaccess
RewriteEngine On
# Map to /jekyll.
RewriteRule ^$ /jekyll/ [L]
# Map 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 / Download Quran.ps1
Created Feb 22, 2010
Uses Windows PowerShell to download the Qur'an
View Download Quran.ps1
# PowerShell Qur'an Downloader
# Author: Andrew Heiss -
# Project site:
# 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$file.mp3"
curl -O$file.mp3
#!/usr/bin/env bash
for i in {1..8}; do
echo -e "\nDownloading$i/V$"
curl -O$i/V$
View Original TextMate CSS grammar
foldingStartMarker = '/\*\*(?!\*)|\{\s*($|/\*(?!.*?\*/.*\S))';
foldingStopMarker = '(?<!\*)\*\*/|^\s*\}';
# Import Delicious bookmarks into Evernote.
# Usage: 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;
View Arabic->English transliteration setup
private static $arRegPatterns = array('/^ال/','/^إِي/','/^عِي/','/^عُو/','/ْع$/',
'/ِي$/','/َو$/','/َي$/','/^ع/','/^أ/','/^آ/' );
private static $arRegReplacements = array('Al-', 'ei', 'ei', 'ou', 'a',
'i', 'aw', 'ay', 'a', 'a', 'aa');
private static $arPatterns = array('ّ', 'تة', 'ته', 'كة', 'كه', 'ده', 'دة', 'ضه', 'ضة', 'سه', 'سة', 'صه', 'صة',
'َا', 'َي', 'ُو', 'ِي', 'ً', 'ٌ', 'ٍ', 'َ', 'ِ', 'ُ',
'ا', 'ب', 'ت', 'ث', 'ج', 'ح', 'خ', 'د', 'ذ', 'ر',
'ز', 'س', 'ش', 'ص', 'ض', 'ط', 'ظ', 'ع', 'غ', 'ف',
'ق', 'ك', 'ل', 'م', 'ن', 'ه', 'ة', 'و', 'ي', 'ى',
You can’t perform that action at this time.