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
apply plugin: 'com.android.application' | |
android { | |
compileSdkVersion 22 | |
buildToolsVersion "22.0.1" | |
buildDir = 'bin' | |
buildTypes { | |
release { |
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
/** | |
* Prerequisites: | |
* 1. Place glslangValidator binaries to ${project.rootProject.projectDir}/tools, | |
* can be taken from https://github.com/floooh/oryol/tree/master/tools | |
* 2. By default this plugin look for config in path | |
* ${project.rootProject.projectDir}/config/quality/glslangValidator.conf | |
*/ | |
class glslExtension { | |
String src |
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
include(default) | |
standalone_toolchain=/opt/android-ndk-toolchains/arm-27 | |
ndk_home=/opt/android-ndk | |
api_level=27 | |
target_host=arm-linux-androideabi | |
cc_compiler=clang | |
cxx_compiler=clang++ | |
target_specific_flags=-mfpu=neon |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:sdk="http://schemas.android.com/sdk/android/addon/7" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:common="http://schemas.android.com/repository/android/common/01" | |
xmlns:addon2="http://schemas.android.com/sdk/android/repo/addon2/01"> | |
<xsl:output omit-xml-declaration="no" indent="yes" encoding="UTF-8" standalone="yes"/> | |
<xsl:template match="/sdk:sdk-addon"> |
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
class b10Extension { | |
String sdk | |
String authorp12 | |
String storepass | |
String cskpass | |
String deviceHost | |
String devicePass | |
String apk2bar | |
} |
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
import org.gradle.internal.os.OperatingSystem | |
println "Loaded personal ~/.gradle/init.gradle" | |
final String RAMDiskName = "GradleRamDisk" | |
final long RAMDiskBytes = 4L * 1024L * 1024L * 1024L // 4Gb | |
interface RAMDiskManager { | |
boolean isReady(); | |
String getPath(); |
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
# Create 'alias' for FindXXX.cmake script | |
# Used to not change naming in existing scripts | |
function(alias_package source_package_dir source_package_name target_package_name) | |
set (source_find "${source_package_dir}/Find${source_package_name}.cmake") | |
if (NOT EXISTS ${source_find}) | |
message(WARNING "Skip aliasing because ${source_find} not exists") | |
return() | |
endif() | |
file(READ ${source_find} find_source_package_cmake_script) |
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
// https://prisoners.spring96.org/ru/table | |
(function(month) { | |
// drop header | |
$('.navbar').remove(); | |
$('h2.mb-5').remove(); | |
$('#table_length').remove(); | |
$('#table_filter').remove(); | |
// select month | |
$('select').first().val(month).change(); | |
$('tr')[1].remove(); |
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
function(conan_install conan_file host_profile) | |
# download helper conan.cmake | |
if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake") | |
message(STATUS "Downloading conan.cmake from https://github.com/conan-io/cmake-conan") | |
file( | |
DOWNLOAD "https://raw.githubusercontent.com/conan-io/cmake-conan/v0.16.1/conan.cmake" | |
"${CMAKE_BINARY_DIR}/conan.cmake" | |
EXPECTED_HASH SHA256=396e16d0f5eabdc6a14afddbcfff62a54a7ee75c6da23f32f7a31bc85db23484 | |
TLS_VERIFY ON) | |
endif() |
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
#!/usr/bin/env python3 | |
# https://www.bakonkurs.by/kenguru/primery/k2017-3.pdf - task 24 | |
flovers = [6, 7, 8, 11] | |
print(flovers) | |
while flovers.count(0) < 2: | |
mi = flovers.index(min(flovers)) | |
for i, v in enumerate(flovers): |
OlderNewer