This file contains hidden or 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
| import json | |
| from pprint import pprint | |
| json_data = open('releases.json') | |
| data = json.load(json_data) | |
| for dateString in data["list"]: | |
| print(dateString["date"]["russia"]["string"]) | |
| json_data.close() |
This file contains hidden or 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
| apply plugin: 'android' | |
| android { | |
| compileSdkVersion 19 | |
| buildToolsVersion "19.0.0" | |
| defaultConfig { | |
| minSdkVersion 8 | |
| targetSdkVersion 18 | |
| versionCode 1 |
This file contains hidden or 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
| apply plugin: 'android' | |
| android { | |
| compileSdkVersion 19 | |
| buildToolsVersion '19.0.3' | |
| defaultConfig { | |
| minSdkVersion 8 | |
| targetSdkVersion 15 | |
| versionCode 1 | |
| versionName "1.0" |
This file contains hidden or 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
| def unicodeToString(unicodeString: String): String = { | |
| val unicodeChars = unicodeString.split("""\\u""").filter(!_.isEmpty) | |
| unicodeChars.map(Integer.parseInt(_, 16).toChar).mkString | |
| } |
This file contains hidden or 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
| apply plugin: 'com.android.application' | |
| apply plugin: 'com.neenbedankt.android-apt' | |
| android { | |
| compileSdkVersion 21 | |
| buildToolsVersion "21.1.2" | |
| defaultConfig { | |
| applicationId "ru.freedomlogic.dbflower" | |
| minSdkVersion 15 |
This file contains hidden or 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
| apply plugin: 'com.android.application' | |
| apply plugin: 'kotlin-android' | |
| android { | |
| compileSdkVersion 21 | |
| buildToolsVersion "21.1.2" | |
| defaultConfig { | |
| applicationId "ru.freedomlogic.hellowatch" |
This file contains hidden or 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
| public static String join(String separator, Iterator<String> iterator) { | |
| StringBuilder builder = new StringBuilder(); | |
| while (iterator.hasNext()) { | |
| String token = iterator.next(); | |
| if (token != null && !token.isEmpty()) { | |
| builder.append(token); | |
| break; | |
| } | |
| } |
This file contains hidden or 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
| final Scheduler scheduler = Schedulers.from(Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors())); | |
| Observable.just("1", "2", "3", "4", "5") | |
| .flatMap(id -> loadFileById(scheduler, id)) | |
| .observeOn(AndroidSchedulers.mainThread()) | |
| .subscribe(s2 -> hello.setText(hello.getText() + "\n" + s2)); | |
| private Observable<String> loadFileById(final Scheduler scheduler, final String id) { | |
| return Observable.defer( | |
| () -> Observable.just(id) |
This file contains hidden or 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
| <resources> | |
| <!-- Base application theme. --> | |
| <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> | |
| <item name="colorPrimary">@color/colorPrimary</item> | |
| <item name="colorPrimaryDark">@color/colorPrimaryDark</item> | |
| <item name="colorAccent">@color/colorAccent</item> | |
| <item name="windowActionModeOverlay">true</item> | |
| <item name="actionModeStyle">@style/ActionModeStyle</item> |
This file contains hidden or 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
| #!/usr/bin/python | |
| # -*- coding: UTF-8 -*- | |
| __author__ = 'Fi5t' | |
| from Tkinter import * | |
| import subprocess | |
| import io | |
| import sys | |
| import ConfigParser |
OlderNewer