Skip to content

Instantly share code, notes, and snippets.

View balupton's full-sized avatar
🏍️
Travelling for next 2 weeks

Benjamin Lupton balupton

🏍️
Travelling for next 2 weeks
View GitHub Profile
@balupton
balupton / cssbutton.css
Created June 27, 2010 13:04
balupton's csscaffold mixins
/*
CSS3 Button Mixins
@author Benjamin "balupton" Lupton {@link http://www.balupton.com}
@author http://www.webdesignerwall.com/demo/css-buttons.html
@version 1.0, April 25 2010
Usage:
.button {
+cssbutton;
}
@balupton
balupton / multi-programmatic.html
Created June 30, 2010 05:54
Bespin multi issue. [closed]
<!-- ***** BEGIN LICENSE BLOCK *****
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
-
- The contents of this file are subject to the Mozilla Public License Version
- 1.1 (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
- http://www.mozilla.org/MPL/
-
- Software distributed under the License is distributed on an "AS IS" basis,
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
@balupton
balupton / jquery-lightbox-v2.0-semantics.html
Created July 18, 2010 10:55
jQuery Lightbox v2 semantics
A combination of both data attribute and CSS classnames:
<a
class="lightbox-image lightbox-image-link"
href="http://www.flickr.com/photos/jonbrown17/2271756525/"
title="View Moody Waters on Flickr"
data-lightbox-image="{title:'Moody Waters',description:'Crawley Boatshed, Perth WA.',author:{text:'jonathanbrown',title:'View jonathanbrowns Profile',url:'http://www.flickr.com/people/jonbrown17/'},large:'http://farm3.static.flickr.com/2411/2271756525_15aba52120_o.jpg',links:[{text:'Other Perth Boatshed Photos',url:'http://www.flickr.com/photos/35776898@N00/galleries/72157624368071194/'}]}"
>
<img class="lightbox-image-thumbnail" src="http://farm3.static.flickr.com/2411/2271756525_ff374888c3_s.jpg" height="75" width="75" />
</a>
@balupton
balupton / COPYING.agpl-3.0.txt
Created July 27, 2010 14:22
Dual License script for generic project
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU Affero General Public License is a free, copyleft license for
@balupton
balupton / COPYING.agpl-3.0.txt
Last active January 30, 2022 04:01
AGPL3 License
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU Affero General Public License is a free, copyleft license for
@balupton
balupton / danwiersema-ajaxy-bookmark.js
Created August 6, 2010 15:31
Dan Wiersema Ajaxy Upgrade
javascript:var%20e=document.createElement('script');e.setAttribute('language','javascript');e.setAttribute('src','http://gist.github.com/raw/511491/b4f033402d200486aceab558c819a91f615856b3/danwiersema-ajaxy.js');document.body.appendChild(e);void(0);
@balupton
balupton / README.md
Last active September 5, 2015 15:54
Answer: How to bind jQuery History state dynamically in .click()
@balupton
balupton / 0-readme.txt
Created August 14, 2010 09:06
Different ways to include scripts and styles with Ajaxy.
This gist documents the ways you can include scripts and styles into your page using ajaxy.
But the most recommended way is to include all your scripts and styles in your initial pages header. You get a big initial load, but all future loads are quick and fast.
The other ways are documented below with the apricots-body and apricots-head examples. The apricots-body would then be the second recommended, and the apricots-head example is not recommended.
@balupton
balupton / bal-zend-view-helper-headlink.patch
Created August 19, 2010 22:57
HeadLink View Helper does not allow "id" attribute
@balupton
balupton / bal-zend-view-helper-navigation-menu.patch
Created August 19, 2010 22:59
Navigation Menu View Helper does not support templates.
--- zend-1.10.3-lib/Zend/View/Helper/Navigation/Menu.php 2010-04-02 17:08:46.000000000 +0800
+++ balphp-lib/Zend/View/Helper/Navigation/Menu.php 2010-04-29 23:32:42.000000000 +0800
@@ -198,6 +198,31 @@ class Zend_View_Helper_Navigation_Menu
// Public methods:
/**
+ * Simple template to use in the htmlify process if specified
+ *
+ * @var string
+ */