This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "1|2|3".gsub(/\d/) { |m| m.to_i+1 } # => "2|3|4" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * jQuery UI Multiselect | |
| * | |
| * Copyright (c) 2008 Michael Aufreiter (ma.zive.at) | |
| * Dual licensed under the MIT (MIT-LICENSE.txt) | |
| * and GPL (GPL-LICENSE.txt) licenses. | |
| * | |
| * http://tobeannounced | |
| * | |
| * Depends: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script> | |
| <script type="text/javascript" src="js/jquery-ui-1.7.1.custom.min.js"></script> | |
| <script type="text/javascript" src="js/ui.multiselect.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <select id="countries" class="multiselect" multiple="multiple" name="countries[]"> | |
| <option value="AFG">Afghanistan</option> | |
| <option value="ALB">Albania</option> | |
| <option value="DZA">Algeria</option> | |
| <option value="AND">Andorra</option> | |
| <option value="ARG">Argentina</option> | |
| <option value="ARM">Armenia</option> | |
| <option value="ABW">Aruba</option> | |
| <option value="AUS">Australia</option> | |
| <option value="AUT" selected="selected">Austria</option> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript"> | |
| $(function(){ | |
| // choose either the full version | |
| $(".multiselect").multiselect(); | |
| // or disable some features | |
| $(".multiselect").multiselect({sortable: false, searchable: false}); | |
| }); | |
| </script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?id=27301942@N06&lang=en-us&&format=json&jsoncallback=?", function(data){ | |
| $.each(data.items, function(i,item){ | |
| $("<div/>").addClass("photo").append($("<a alt=\"huhuh\"/>").attr("href", "#photo_"+i).append($("<img/>").attr("src", item.media.m).attr("alt", "huhuh"))).appendTo("#photos"); | |
| $("<div/>").attr("id", "photo_"+i).addClass("photo").append($("<img/>").attr("src", item.media.m.replace("_m","")).attr("alt", "huhuh")).append("<p>Beschriftung</p>").appendTo("#photos"); | |
| if ( i == 2 ) return false; | |
| }); | |
| $('div.photo a').fancyZoom({scaleImg: true, closeOnClick: true}); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <link type="text/css" href="css/facebox.css" rel="stylesheet" /> | |
| <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script> | |
| <script type="text/javascript" src="js/jquery.flickr.js"></script> | |
| <script type="text/javascript" src="js/facebox.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(function(){ | |
| $(document).ready(function() { | |
| $("#photos").flickr({ | |
| api_key: "_your_api_key_", | |
| type: 'photoset', | |
| photoset_id: '_your_photoset_id', | |
| per_page: 18, | |
| callback: function(el) { | |
| $(el).find('a').facebox(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| input { | |
| outline-style:none; | |
| outline-width:0px; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| time dd if=/dev/zero of=test.bin bs=1000000000 count=1 |