Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Alex Bobrikovich CAMOBAP

🏠
Working from home
View GitHub Profile
@CAMOBAP
CAMOBAP / conan_install.cmake
Created Dec 23, 2021
Conan install helper function
View conan_install.cmake
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()
View spring96_devrools.js
// 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();
View conan_alias_package.cmake
# 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)
View blackberry10.gradle
class b10Extension {
String sdk
String authorp12
String storepass
String cskpass
String deviceHost
String devicePass
String apk2bar
}
@CAMOBAP
CAMOBAP / addon2package.xslt
Created Aug 2, 2019
Android SDK install add-ons from command line
View addon2package.xslt
<?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">
View android-armeabi-v7a
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
View _glsl.gradle
/**
* 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
@CAMOBAP
CAMOBAP / build.gradle
Created Sep 18, 2015
Cocos2dx build.gradle
View build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
buildDir = 'bin'
buildTypes {
release {