- Install getmail (aptitude install getmail4)
- Set Up Your Imap Server (tl;dr)
- getmail
ruby date_based_archive.rb ~/Maildir/.Archive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('div.list div.list-card').sort(function(){ | |
return Math.random()*10 > 5 ? 1 : -1; | |
}).each(function(){ | |
var $t = $(this), | |
color = $t.attr('class'); | |
$t.css({backgroundColor: color}).appendTo( $t.parent() ); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var setTextMeasure = function (contentElement, targetMeasure, maxSize, minSize) { | |
if (!contentElement) contentElement = document.createElement('p'); | |
if (!targetMeasure) targetMeasure = 66; | |
if (!maxSize) maxSize = 16; | |
if (!minSize) minSize = 9; | |
var sizer = contentElement.cloneNode(); | |
sizer.style.cssText = 'margin: 0; padding: 0; color: transparent; background-color: transparent; position: absolute;'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pagewrapper { | |
position:absolute; | |
z-index:1; | |
top: 15px; bottom:0; | |
width:724px; | |
overflow:hidden; | |
height: 974px; | |
} | |
#pageflip { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
echo "Welcome to WebKitten, the WebKit updater" | |
echo "This process may take a few minutes" | |
mkdir ~/.webkitten | |
cd ~/.webkitten | |
# This sets a variable named 'LATEST' that is the | |
# value of the latest webkit download for OS X | |
LATEST=`curl -s "http://nightly.webkit.org" | sed -n 's/.*http/http/'p | sed -n 's/dmg.*/dmg/'p | sed -n 1p` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dropbox, os, webbrowser | |
# A generic Dropbox module to create a token and login. | |
# Michelle L. Gill, 2014/01/06 | |
# To use: | |
# import dropboxsetup | |
# sess, client = dropboxsetup.init(TOKEN_FILENAME, APP_KEY, APP_SECRET) | |
# TOKEN_DIRECTORY can be set to store tokens in a folder, set to "Tokens" by default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division | |
from SPARQLWrapper import SPARQLWrapper | |
import socket | |
import codecs | |
import os | |
import time | |
from namespace import ns_manager | |
from rdflib import Graph | |
import math |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
An example of minimum requirements to make MultiValueField-MultiWidget for Django forms. | |
""" | |
import pickle | |
from django.http import HttpResponse | |
from django import forms | |
from django.template import Context, Template | |
from django.views.decorators.csrf import csrf_exempt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
from pprint import pprint | |
import urllib | |
from rdflib import Namespace | |
from rdfalchemy import rdfSingle | |
from rdfalchemy.rdfSubject import rdfSubject | |
from rdflib import Literal, BNode, Namespace, URIRef | |
from rdflib import RDF, RDFS, Graph, OWL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This script requires the following Packages | |
1: Twitter: https://pypi.python.org/pypi/twitter | |
2: PyQuery: https://pypi.python.org/pypi/pyquery | |
3: Jinja2: https://pypi.python.org/pypi/Jinja2 | |
It's fairly primitive but works. It uses a Jinja2 template to create an OPML | |
file from the RSS feeds of the websites run by the people you follow on | |
Twitter. |
OlderNewer