Skip to content

Instantly share code, notes, and snippets.

View sgruhier's full-sized avatar

Sébastien Gruhier sgruhier

  • https://xilinus.com
  • Saint-Paul en Forêt
  • X @sgruhier
View GitHub Profile
new S2.UI.Carousel("hcarousel");
<div id="hcarousel" class="ui-carousel-horizontal">
<div class="ui-carousel-prev"><a href="#" onclick="return false">&lt;</a></div>
<div class="ui-carousel-container">
<ul>
<li class="item1">1</li>
<li class="item2">2</li>
...
</ul>
</div>
<div class="ui-carousel-next"><a href="#" onclick="return false">&gt;</a></div>
new S2.UI.Carousel("vcarousel", {orientation: 'vertical'});
<div id="vcarousel" class="ui-carousel-vertical">
<div class="ui-carousel-prev"><a href="#" onclick="return false">Previous</a></div>
<div class="ui-carousel-container">
<ul>
<li class="item1">1</li>
<li class="item2">2</li>
...
</ul>
</div>
<div class="ui-carousel-next"><a href="#" onclick="return false">Next</a></div>
new S2.UI.Carousel("hcarousel", {slider: 'hslider'});
<div id="hcarousel" class="ui-carousel-horizontal">
<div class="ui-carousel-container">
<ul>
<li class="item1">1</li>
<li class="item2">2</li>
...
</ul>
</div>
<div class="ui-state-default ui-corner-all ui-carousel-prev">
<a class="ui-icon ui-icon-triangle-1-w" href="#" onclick="return false"></a>
new S2.UI.Carousel("hcarousel", {paginator: 'hpaginate'});
@sgruhier
sgruhier / gist:403002
Created May 16, 2010 17:03
URL for local sub-domains and/or locale from the domain name testing
If you want to test rails applications (or any web applications) locally with sub-domains and/or setting the locale
from the domain name as describe in Rails' guides
http://guides.rubyonrails.org/i18n.html#setting-the-locale-from-the-domain-name you have multiple options:
- Edit your /etc/hosts file, that sucks! you need admin access and you'll pollute. DO NOT DO THAT!
- Use passenger (and passenger pane if you are on Mac OS X), but you need to enter manually all aliases
in your apache/nginx config file. painfull
- use those URLs 127localhost.com and 127localhost.fr. DNS for all subdomains are setup to IP 127.0.0.1
Nothing to setup/modify locally, just:
Please send us the following information:
1. the approximate date of a last purchase made to your Skype account (can be looked up from the credit card statement or from the confirmation email sent to you after the purchase)
2. The order number
3. The payment method or credit card type used to make a purchase
4. The email address that was entered during registration
window.SplitView = Backbone.View.extend({
el: $(document.body),
// Delegated mouse down events
events: {
"mousedown .vsplit": "mouseDownVSplit",
"mousedown .hsplit": "mouseDownHSplit"
},
initialize: function(element) {