Collected by Henk Boelman
http://www.facebook.com/sharer.php?u={0}&t={1}
https://twitter.com/share?url={0}&related={3}&via={3}&text={1}
/** | |
* CSS Helpers | |
* @description: Used for decorating input types, first and last childs | |
*/ | |
$('input[type=checkbox]').addClass('checkbox'); | |
$('input[type=radio]').addClass('radio'); | |
$('input[type=file]').addClass('file'); | |
$('[disabled=disabled]').addClass('disabled'); | |
$('table').find('tr:even').addClass('even'); | |
$('table').find('tr:first-child').addClass('first'); |
#!/bin/sh | |
# bash script to clean (delete) Finder .DS_Store, .Trashes and ._resources | |
# Use cleandsstores.sh | |
# juanfc 2010-03-06 | |
if [ $# != 1 ] | |
then | |
echo "ERROR: use\n\t`basename $0` dirtoclean" | |
exit 1 | |
fi |
/** | |
* Display your window width - useful for responsive web design | |
* @author: Rutger Laurman | |
*/ | |
// Ready? | |
$(function(){ | |
// Create debug element | |
$("body").append("<div style='position:fixed;top:0;left:0;border:1px solid #999;background:#eee;' id='viewportwidth'></div>"); |
/* Micro clearfix - lrdk.nl/ck */ | |
.cf { | |
zoom: 1; | |
&:before, | |
&:after { | |
content: ""; | |
display: table; | |
} | |
&:after { | |
clear: both; |
/* Simple Twitter search */ | |
var hashtag = "#ek2012"; | |
var urlhash = encodeURIComponent(hashtag); | |
var numPosts = 1; | |
var target = $("#tweetwrap"); | |
var ajaxurl = "http://search.twitter.com/search.json?callback=?&q="+urlhash+ "&rpp="+numPosts; | |
$.getJSON( | |
ajaxurl, | |
function (data){ |
{ | |
"auto_indent": true, | |
"color_scheme": "Packages/Color Scheme - Default/Railscasts.tmTheme", | |
"default_line_ending": "unix", | |
"detect_indentation": false, | |
"draw_minimap_border": true, | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"fade_fold_buttons": false, | |
"font_face": "BitstreamVeraSansMono-Roman", |
// Prevent console.log errors | |
if (typeof console=="undefined") { | |
console={log:function(A){return;}} | |
} |
<html> | |
<body> | |
<h1>Viewport bookmarklet</h1> | |
<p> | |
Show tiny counter in top left corner of viewport, with current window size.<br> | |
<em>Uses jQuery</em> | |
</p> | |
<h2>Usage</h2> | |
<ol> | |
<li>Drag to bookmark bar</li> |
<?php | |
/** | |
* This script will allow the export of complete user time-lines from the twitter | |
* service. It joins together all pages of status updates into one large XML block | |
* that can then be reformatted/processed with other tools. | |
* | |
* @since 10/13/08 | |
* | |
* @copyright Copyright © 2008, Adam Franco | |
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL) |