<?xml-stylesheet href="liquibase-groovy.xslt" type="text/xml"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" ...>
...
</databaseChangeLog>databaseChangeLog {| //тук ще се пазят всички маркери които съм залепил по картата това е Array от обекти тип {marker:object, JSONData:object} - JSONData се използва за да пазя обекта с даните както е дошъл от сървара. | |
| //трябва ми за да си намеря панела при кликане в/у маркера и за да го скролирам до обекта, който е кликнат. | |
| //ще го напълня в PutMarkers и в него ще седят само градовете, които ще нахаквам в комбото с градовете. | |
| //за да не бия постоянно json заявки към сървара, веднъж след като съм го заредил, само крия, показвам! затова ползвам isLoad | |
| //някой вика асинхронно два пъти на onload json ама не мога да го хвана кой. За да оправим проблема проверяваме арея дали е празен и чак тогава стартираме | |
| //използваме малка простотия и си сетваме наш параметър на Google маркера | |
| /*и както се вижда може да си го взема после*/ | |
| //правим чудесии от храброст, защото ondblclick изстрелва и clik, и става една мазня.. затова за гледам дали е отворен ако е .. не го пипам.. ако не е го отварям! | |
| /*и както се вижда може да си го взема после*/ | |
| /* |
| require 'active_record' | |
| module ActiveRecord | |
| # | |
| # @see http://stackoverflow.com/questions/28434966/lazy-load-activerecord-proxy-instance Lazy-load ActiveRecord proxy instance | |
| # | |
| class Reference < ActiveSupport::ProxyObject | |
| def initialize(record_class, primary_key) |
| # frozen_string_literal: true | |
| # | |
| # This module, both source code and documentation, | |
| # is in the Public Domain, and comes with NO WARRANTY. | |
| # | |
| require 'stringio' | |
| module ExceptionFormatter | |
| module_function |
| /* | |
| * This module, both source code and documentation, | |
| * is in the Public Domain, and comes with NO WARRANTY. | |
| */ | |
| package net.example.concurrent; | |
| import java.lang.ref.ReferenceQueue; | |
| import java.lang.ref.WeakReference; | |
| import java.util.concurrent.ConcurrentHashMap; | |
| import java.util.concurrent.ConcurrentMap; |
| //package ; | |
| /** | |
| * @see <a href="https://www.geeksforgeeks.org/longest-common-prefix-using-binary-search/">Longest | |
| * Common Prefix using Binary Search</a> | |
| */ | |
| public class StringUtil { | |
| public static String commonPrefix(CharSequence... strings) { | |
| int low = 0, high = minLength(strings) - 1; |
| //package ; | |
| import java.nio.file.Path; | |
| import java.nio.file.Paths; | |
| import java.util.List; | |
| /** | |
| * @see <a href="https://www.geeksforgeeks.org/longest-common-prefix-using-binary-search/">Longest | |
| * Common Prefix using Binary Search</a> | |
| */ |
<?xml-stylesheet href="liquibase-groovy.xslt" type="text/xml"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" ...>
...
</databaseChangeLog>databaseChangeLog {| /* | |
| * This module, both source code and documentation, | |
| * is in the Public Domain, and comes with NO WARRANTY. | |
| */ | |
| package net.example.liquibase.lockservice.ext; | |
| import java.sql.Connection; | |
| import java.sql.PreparedStatement; | |
| import java.sql.ResultSet; | |
| import java.sql.SQLException; |
| package net.example.math; | |
| import java.io.PrintStream; | |
| import java.util.Arrays; | |
| /** | |
| * <blockquote> | |
| * <p>The number of permutation increases fast with <em>n</em>. While it takes | |
| * only a few seconds to generate all permutations of ten elements, it will | |
| * take two weeks to generate all permutations of 15 elements:</p> |
| /* | |
| * Copyright (c) 2016 Hyllian - [email protected] | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is | |
| * furnished to do so, subject to the following conditions: | |
| * |