This file contains 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
[UIColor colorWithRed:50.0/255.0 green:79.0/255.0 blue:133.0/255.0 alpha:1.0] |
This file contains 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
lib.linkWithPageId = HTML | |
lib.linkWithPageId { | |
value = link with PageId | |
value.typolink { | |
parameter = 13 | |
additionalParams.cObject = COA | |
additionalParams.cObject { | |
10 = TEXT | |
10.value = &tx_powermail_pi1[produkt]= | |
20 = TEXT |
This file contains 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
var EventGarbageCollection = function ( context ) { | |
var instance = this; | |
this.collection = []; | |
this.context = context; | |
this.context.addEventListener('close', function ( ) { | |
instance.empty(); | |
}); | |
}; | |
EventGarbageCollection.prototype = { | |
collect : function ( evt, method ) { |
This file contains 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
class HelloApp | |
def self.call(env) | |
require 'haml' | |
@name = "Test" | |
template = File.read(File.join("views", "index.haml")) | |
haml_engine = Haml::Engine.new(template) | |
output = haml_engine.render(binding) | |
[200, {'Content-Type' => 'text/html'}, [output]] | |
end | |
end |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
[firstHalf, secondHalf] = [[], []] | |
for item, index in phases | |
(if index % 2 then firstHalf else secondHalf).push item |
This file contains 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
Array::chunk = (chunkSize) -> | |
array = this | |
[].concat.apply [], array.map((elem, i) -> | |
(if i % chunkSize then [] else [array.slice(i, i + chunkSize)]) | |
) |
This file contains 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
class NokogiriSearcher | |
def initialize(html) | |
@doc = Nokogiri::HTML(html) | |
end | |
def search(searchText) | |
@doc.search(searchText) | |
end | |
def first_text_from_search(searchText) | |
search(searchText).first.text().strip() | |
end |
This file contains 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
drawControl.setDrawingOptions({ | |
polygon: { | |
shapeOptions: { | |
color: color | |
} | |
}, | |
marker: { | |
options: { | |
icon: L.mapbox.marker.icon({'marker-color': color}), | |
draggable: true |
OlderNewer