Skip to content

Instantly share code, notes, and snippets.

PATH="/Applications/MAMP/bin/php5/bin":$PATH
@robv
robv / Input Hint jQuery Plugin Usage
Created August 29, 2009 17:35
Input Hint Usage
$('input.hint').input_hint({attribute: 'title'});
@robv
robv / sample-rss-usage.php
Created September 1, 2009 07:09
Sample RSS Usage
<?pnp
// TODO: Implement cache system
public function rss()
{
$feed = new Rss;
$feed->title = 'Konnect';
$api_check = new Users;
@robv
robv / gist:217224
Created October 23, 2009 22:19 — forked from leah/gist:216443
:⌉
=⌉
¦-) as opposed to |
⍥ om nom nom
@robv
robv / My .gitconfig
Created November 10, 2009 03:58
My .gitconfig file, contains some handy aliases.
[core]
editor = mate -w
[alias]
undo = !git reset --hard && git clean -n -d -f
st = status
ci = commit
br = branch
co = checkout
df = diff
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
$('textarea.expander').textarea_expander();
#!/bin/sh
set -e
#### User Configuration Options
# Temporary src directory - WARNING: This will be wiped clean.
SRCDIR=${HOME}/src
# Note: This *MUST* be set to your PHP5 installation directory!
PHPDIR=${HOME}/php5
@robv
robv / clearfix.css
Created May 21, 2010 03:33
Usefull CSS snippets
/* slightly enhanced, universal clearfix hack */
.clearfix:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; }
.clearfix { display: inline-block; }
/* start commented backslash hack \*/
* html .clearfix { height: 1%; }
/*
* Sample usage:
*
* HTML: <video width="629" height="350" src="file.m4v" controls="true" poster="file.png"></video>
* Javascript: $('video').video({swf_player: '/flash/flowplayer-3.2.2.swf'});
*
*
*/
(function($) {
@robv
robv / CSS Animation for jQuery.js
Created August 30, 2010 20:33 — forked from aza/CSS Animation for jQuery.js
jQuery CSS Transition Plugin + Opera Support
(function($){
var rupper = /([A-Z])/g;
// ----------
// Function: stopCssAnimation
// Stops an animation in its tracks!
$.fn.stopCssAnimation = function(){
this.each(function(){
// When you remove the CSS Transition properties