[ create a new paste ] login | about

sente

Name: Stuart Powers
Email:
Site/Blog: http://www.sente.cc
Location: Cambridge, MA
Default language: Python
Favorite languages: Python Lisp
About:

Saved pastes by sente:

Plain Text, pasted on Jul 19:
1
2
3
4
5
$('span').hover(function (e) {
  var xOffset = 10;
  var yOffset = 30;
  var myid = $(this).attr('id').replace("spid",'id');
  var mytop = (e.pageY - xOffset) + "px";
...
view (18 lines)
Plain Text, pasted on Jul 18:
1
2
3
4
5
function show_all_pbfcomics ()
{
    lwp-request -o links http://www.pbfcomics.com/ | grep cid | cut -f2 | while read line; do
        echo -e "$line\t$line";
    done | sed s'/.cid=/archive_b\//' | while read image link; do
...
view (8 lines)
Plain Text, pasted on Jul 7:
1
2
3
4
5
/* javascript function to access selected content */

function getSelectionHtml() {
    var sel, html = "";
    if (window.getSelection) {
...
view (17 lines)
Python, pasted on Jul 2:
1
2
3
4
5
mylist = ['how', 'about', 'some', 'sublists', [1, 2, 3], 'and', ['a', 'b', ['C', 'D']]]


def print_lol(the_list, indent=0):
    for each_item in the_list:
...
view (11 lines, 12 lines of output)
Python, pasted on May 24:
1
2
x = list('abcdef')
print zip(x,x[1:])
view (2 lines, 1 line of output)