Skip to content

Instantly share code, notes, and snippets.

@al3xandru
al3xandru / gist:1169583
Created August 24, 2011 23:31
OmniFocus Generalized Bookmarklet
javascript:(function(){
var enc=encodeURIComponent,
w=window,
frames=w.frames,
d=document,
tn=w.getSelection?w.getSelection():(d.getSelection)?d.getSelection():(d.selection?d.selection.createRange().text:0),
pu=w.location.href,
isGMail=w.location.host.match(/mail\.google\.com/),
tt=pt=d.title,
subjSpans=d.getElementsByClassName("hP"),i,url;
@qetzal
qetzal / gist:1118615
Created August 1, 2011 17:44
SSO Complete Example in PHP
<html><body>
<script>
<?php
if (!$_REQUEST['logoff']) {
$profile = array(
'appId' => "My cool app",
'userId' => "234",
'profile' => array(
'email' => "test@example.com",
'billingPerson' => array(
@genee19
genee19 / pager-top.css
Created March 25, 2011 10:54
The way to move the category pagination in Ecwid from bottom to top. This is to be applied into your Ecwid custom CSS theme.
div.ecwid-pager {
position: absolute;
top: 0;
width: 100%;
margin: 0;
}
div.ecwid-productBrowser-category {
padding-top: 2em;
position: relative;
@adamloving
adamloving / fb-fan-export.js
Created January 18, 2011 01:02
Export Facebook Page Fans
/*
For more detailed instructions on how to use this script, sign up with your email here:
http://adamloving.com/internet-programming/how-toexport-facebook-page-fans
DISCLOSURE: This javascript runs in your browser pretending to be you
looking through your page fans. Facebook should have no problem with this,
but who knows if they will think it is strange to see you looking through
all your fans so quickly (the script waits 3s before requesting each page).
I've had no problem running this so far for 1000s of page fans, but I