Posted on Leave a comment

Android Studio preferences

Colors, code styles, etc

Path MacOs

[code]
~/Library/Preferences/AndroidStudio[version]/colors/thefile
[/code]

My colors:

[code language=”xml”]
<scheme name="_@user_Default" version="142" parent_scheme="Default">
<option name="FONT_SCALE" value="1.0" />
<metaInfo>
<property name="created">2017-10-25T11:02:44</property>
<property name="ide">AndroidStudio</property>
<property name="ideVersion">3.0.0.17</property>
<property name="modified">2017-10-25T11:08:27</property>
<property name="originalScheme">Default</property>
</metaInfo>
<option name="EDITOR_FONT_SIZE" value="12" />
<option name="EDITOR_FONT_NAME" value="Menlo" />
<attributes>
<option name="CLASS_NAME_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="6496dc" />
</value>
</option>
<option name="INTERFACE_NAME_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="32b432" />
</value>
</option>
</attributes>
</scheme>
[/code]

Posted on Leave a comment

Interval sum [a, b]

[https://telegra.ph/UniLecs-127-Intervalnaya-summa-09-16]

[code]
using System;
public class Program
{
public static long SumOfRange(long a, long b)
{
long result = (a + b) * (b – a + 1) / 2;
return result;
}

public static void Main()
{
Console.WriteLine("UniLecs");
Console.WriteLine(string.Format("Answer = {0}", SumOfRange(1, 2))); // 3
Console.WriteLine(string.Format("Answer = {0}", SumOfRange(1, 3))); // 6
Console.WriteLine(string.Format("Answer = {0}", SumOfRange(2, 4))); // 9
}
}
[/code]

Posted on Leave a comment

culture

LingvoLive

French kiss – французский поцелуй. Французов всегда считали главными сладострастниками. Впрочем, любят французы и поесть: отсюда French toasts (гренки), French bread (хлеб «багет») и (неожиданно!) French fries (картофель фри)

Continue reading culture