Skip to content

Instantly share code, notes, and snippets.

Avatar
🙏
Trying my best to be worth something.

Benjamin Lupton balupton

🙏
Trying my best to be worth something.
View GitHub Profile
@balupton
balupton / cssbutton.css
Created Jun 27, 2010
balupton's csscaffold mixins
View cssbutton.css
/*
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 Jun 30, 2010
Bespin multi issue. [closed]
View multi-programmatic.html
<!-- ***** 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
View jquery-lightbox-v2.0-semantics.html
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 Jul 27, 2010
Dual License script for generic project
View COPYING.agpl-3.0.txt
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
View COPYING.agpl-3.0.txt
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
View danwiersema-ajaxy-bookmark.js
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 Sep 5, 2015
Answer: How to bind jQuery History state dynamically in .click()
@balupton
balupton / 0-readme.txt
Created Aug 14, 2010
Different ways to include scripts and styles with Ajaxy.
View 0-readme.txt
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 Aug 19, 2010
HeadLink View Helper does not allow "id" attribute
View bal-zend-view-helper-headlink.patch
@balupton
balupton / bal-zend-view-helper-navigation-menu.patch
Created Aug 19, 2010
Navigation Menu View Helper does not support templates.
View bal-zend-view-helper-navigation-menu.patch
--- 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
+ */
You can’t perform that action at this time.