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
| #include <iostream> | |
| #include <string> | |
| #include <cmath> | |
| using std::cout; | |
| using std::endl; | |
| using std::string; | |
| void merge(int*, int, int, int); |
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
| markup = $('<%= raw markdown @repo.user_description %>') | |
| $('#fancybox-container').append markup |
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
| <div class="row-fluid"> | |
| <div class="span3 box-holder"> | |
| <div id="center-text"> | |
| <div id="filters"> | |
| <%= search_form_for @search, url: user_wannahelp_index_path(current_user), | |
| html: { method: :get } do |f| %> | |
| <h4>Filters:</h4> | |
| <%= f.label :language_eq, "Language:" %> | |
| <%= f.select :language_eq, options_for_select(get_filter(@languages), current_value(:language_eq)), {}, | |
| {class: "input-medium"} %> |
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
| insertAtCaret = (areaId, text) -> | |
| txtarea = $("#t1").get(0) | |
| scrollPos = txtarea.scrollTop | |
| strPos = 0 | |
| br = ((if (txtarea.selectionStart or txtarea.selectionStart is "0") then "ff" else ((if document.selection then "ie" else false)))) | |
| if br is "ie" | |
| txtarea.focus() | |
| range = document.selection.createRange() | |
| range.moveStart "character", -txtarea.value.length | |
| strPos = range.text.length |
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 -> | |
| new Sliders() | |
| class Sliders | |
| constructor: -> | |
| _self = this | |
| if typeof $.fn.checkbox isnt 'undefined' | |
| $('input[type=checkbox]').checkbox(cls:'jquery-safari-checkbox') | |
| if typeof $.fn.selectBox isnt 'undefined' |
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 -> | |
| if typeof $.fn.jCarouselLite isnt 'undefined' | |
| $("#slider_1").jCarouselLite | |
| btnNext: "#slider_1 .next" | |
| btnPrev: "#slider_1 .prev" | |
| visible: 1 | |
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 -> | |
| if $.fn.jCarouselLite? | |
| $("#slider_1").jCarouselLite | |
| btnNext: "#slider_1 .next" | |
| btnPrev: "#slider_1 .prev" | |
| visible: 1 | |
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
| <div class="widget" id="price_container"> | |
| <h3><%= t :general, scope: :sidebar %></h3> | |
| <div class="box"> | |
| <div class="item"> | |
| <h4><%= t :price, scope: :sidebar %></h4> | |
| <span class="left">0 $</span> | |
| <span class="right">2.000000$</span> | |
| <%= f.text_field :price_gteq, value: [params[:q][:price_gteq], params[:q][:price_lteq]].join(';') %> | |
| </div> | |
| <div class="item"> |