start new:
tmux
start new with session name:
tmux new -s myname
| <code_scheme name="AndroidStyle"> | |
| <option name="JAVA_INDENT_OPTIONS"> | |
| <value> | |
| <option name="INDENT_SIZE" value="4" /> | |
| <option name="CONTINUATION_INDENT_SIZE" value="8" /> | |
| <option name="TAB_SIZE" value="8" /> | |
| <option name="USE_TAB_CHARACTER" value="false" /> | |
| <option name="SMART_TABS" value="false" /> | |
| <option name="LABEL_INDENT_SIZE" value="0" /> | |
| <option name="LABEL_INDENT_ABSOLUTE" value="false" /> | 
| <?xml version="1.0" encoding="utf-8" ?> | |
| <!-- | |
| This file needs to be put in the application directory. Make sure to set | |
| 'Copy to Output Directory' option in Visual Studio. | |
| --> | |
| <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
| <targets async="true"> | |
| <target name="ColoredConsole" xsi:type="ColoredConsole" useDefaultRowHighlightingRules="true" | |
| layout="${longdate}|${level:uppercase=true}|${message}|${exception:format=Message,Type,ShortType,ToString,Method,StackTrace}" > | 
| <?xml version="1.0" encoding="utf-8" ?> | |
| <!-- | |
| This file needs to be put in the application directory. Make sure to set | |
| 'Copy to Output Directory' option in Visual Studio. | |
| --> | |
| <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" autoReload="true"> | |
| <targets> | |
| <target name="file" xsi:type="File" fileName="${basedir}/App_Data/Logs/${shortdate}/${logger}.log" /> | 
| // countdown 10 | |
| val observer = object : DisposableObserver<Long>() { | |
| override fun onComplete() { | |
| Timber.d("onComplete") | |
| isLoading.value = false | |
| } | |
| override fun onNext(t: Long) { | |
| Timber.d("onNext:$t") | 
| /** Example of a {@link Class} declaration */ | |
| public final class MyClass { | |
| private boolean someBool; | |
| public MyClass() { | |
| } | |
| public MyClass(boolean someBool) { | |
| this.someBool = someBool; | |
| } | 
| // caculate data's page | |
| var pageSize = 200; | |
| int pages = (int)Math.Ceiling((double)src_list.Count / (double)pageSize); | |
| var currentPage = 1; | |
| for (int i = 0; i < pages; i++) | |
| { | |
| var currentPageData = src_list | |
| .Skip(pageSize * (currentPage - 1)) | 
| <system.webServer> | |
| <rewrite> | |
| <rules> | |
| <rule name="React Routes" stopProcessing="true"> | |
| <match url=".*" /> | |
| <conditions logicalGrouping="MatchAll"> | |
| <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> | |
| <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> | |
| <add input="{REQUEST_URI}" pattern="^/(api)" negate="true" /> | |
| </conditions> |