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
interface Service { | |
@FormUrlEncoded | |
@POST("info/getInfoDetail") | |
fun GetInfoDetail(@FieldMap params: HashMap<String, Any>): Call<InfoDetailObject> | |
@GET("search/{search_word}") | |
fun getSuggestSearchWords(@Path("search_word") search_word: String): Call<SearchWorObject> |
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
//Remove All Empty Columns in the Entire Workbook | |
function removeEmptyColumns() { | |
var ss = SpreadsheetApp.getActive(); | |
var allsheets = ss.getSheets(); | |
for (var s in allsheets){ | |
var sheet=allsheets[s] | |
var maxColumns = sheet.getMaxColumns(); | |
var lastColumn = sheet.getLastColumn(); | |
if (maxColumns-lastColumn != 0){ | |
sheet.deleteColumns(lastColumn+1, maxColumns-lastColumn); |
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
sudo add-apt-repository ppa:ondrej/php -y | |
sudo apt-get update -y | |
sudo apt-get install php7.1-curl php7.1-cli php7.1-dev php7.1-gd php7.1-intl php7.1-mcrypt php7.1-json php7.1-mysql php7.1-opcache php7.1-bcmath php7.1-mbstring php7.1-soap php7.1-xml php7.1-zip -y | |
sudo mv /etc/apache2/envvars /etc/apache2/envvars.bak | |
sudo apt-get remove libapache2-mod-php5 -y | |
sudo apt-get install libapache2-mod-php7.1 -y | |
sudo cp /etc/apache2/envvars.bak /etc/apache2/envvars |
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
object MyService { | |
private val TIMEOUTOFSECOND = 12 | |
private val _instanceOfService: Service by lazy { setupHttpClient() } | |
fun on(): Service { | |
return _instanceOfService | |
} |
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
inline fun <reified T : kotlin.Enum<T>> safeEnumValueOf(type: String?,defaultEnum:T): T { | |
return try { | |
java.lang.Enum.valueOf(T::class.java, type) | |
} catch (e: Exception) { | |
defaultEnum | |
} | |
} |
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
country | longmin | latmin | longmax | latmax | |
---|---|---|---|---|---|
Aruba | -70.983 | 12.4 | -69.85 | 12.617 | |
Antigua and Barbuda | -62.417 | 16.817 | -61.65 | 17.75 | |
United Arab Emirates | 45 | 22.167 | 59.25 | 26.133 | |
Afghanistan | 60.433 | 29.15 | 75.033 | 38.484 | |
Algeria | -8.7 | 18.027 | 70.554 | 37.203 | |
Azerbaijan | 44.783 | 38.417 | 50.858 | 41.911 | |
Albania | 19 | 39.583 | 21.05 | 42.659 | |
Armenia | 43.443 | 38.857 | 46.589 | 41.3 | |
Andorra | 1.417 | 42.433 | 1.783 | 42.65 |
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
### Converting to Parallels ### | |
# convert .vmdk to a Parallels machine (tested on Mac OS X 10.9 and Parallels 9) | |
# first launch /Applications/Parallels\ Desktop.app (provides service for prl_convert) | |
# NOTE: the converted vm is named 'Ubuntu Linux.pvm' by default; | |
# ensure /<dest-volume> does not already contain a similarly named vm | |
# in Mac's Terminal.app | |
$ /Applications/Parallels\ Desktop.app/Contents/MacOS/prl_convert <path-to>/osgeo-live-7.9.vmdk --dst=/<dest-volume> --reg=n | |
WARNING: Reconfiguration iso is unavailable. Linux guest reconfiguration is impossible | |
Conversion progress: 100 % | |
The source third-party virtual disk was successfully converted to a Parallels virtual machine stored in /<some-other-volume>/Ubuntu Linux.pvm. |
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
tr: | |
admin: | |
js: | |
true: Doğru | |
false: Yanlış | |
is_present: Mevcut | |
is_blank: Boş | |
date: Tarih ... | |
between_and_: ... ile ... arası | |
today: Bugün |
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
#/themes/e_shop/views/custom_field/_my_slider.html.erb | |
<div class="group-input-fields-content" data-callback-render="render_my_custom_slider"> | |
<div class="form-group"> | |
<label>Image:</label> | |
<div class="input-group"> | |
<input data-dimension="<%= field.options[:dimension] %>" data-versions="<%= field.options[:versions] %>" data-thumb_size="<%= field.options[:thumb_size] %>" type="url" name="<%= field_name %>[<%= field.slug %>][values][][image]" class="data-error-place-parent image_field form-control <%= "required" if field.options[:required].to_s.to_bool %>"/> | |
<span class="input-group-addon btn_upload" onclick="load_upload_image_field($(this).prev());"><i class="fa fa-upload"></i> <%= t('camaleon_cms.admin.button.upload_image')%> <%= "(#{field.get_option('dimension')})" if field.get_option('dimension').present? %></span> | |
</div> | |
</div> | |
<div class="clearfix"> |
OlderNewer