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
cmake_minimum_required(VERSION 3.4.1) | |
set (CMAKE_VERBOSE_MAKEFILE ON) | |
set (CMAKE_CXX_STANDARD 11) | |
add_library(cpp-code | |
SHARED | |
../cpp-code/src/src/example.cpp | |
cpp-adapter.cpp | |
) |
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
... | |
android { | |
... | |
defaultConfig { | |
... | |
externalNativeBuild { | |
cmake { | |
cppFlags "-O2 -frtti -fexceptions -Wall -fstack-protector-all" | |
abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a' | |
} |
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
const actionTypes = { | |
ACTION_TYPE_TEST: 'ACTION_TYPE_TEST' | |
} | |
class Store { | |
constructor(initialState = { testValue: 0 }) { | |
this.state = initialState; | |
this.subscribers = []; | |
} |
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 add(a, b) { | |
console.log(a + b); | |
console.log(this); | |
} | |
add(1, 2); | |
// ⇒ 3 | |
// ⇒ Object [global] { global: [Circular], clearInterval ... } | |
add.apply({ example: "test" }, [1, 2]); |
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
const Example = { | |
name: "Hans", | |
age: 42, | |
print: function() { | |
console.log(`Name: "${this.name}", age: "${this.age}".`); | |
}, | |
printSomething: function(extra) { | |
console.log(`Extra: ${extra}.`); | |
} | |
}; |
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
name: Android | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout project |
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
name: iOS | |
on: [push, pull_request] | |
jobs: | |
node-stuff: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout project |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<link href="https://fonts.googleapis.com/css2?family=Baloo+Bhaina+2:wght@600&display=swap" rel="stylesheet"> | |
<style type="text/css"> | |
body { | |
font-family: 'Baloo Bhaina 2', cursive; | |
background-color: #fffdf8; | |
} | |
.highlighted-text { |
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
# fix vscode issue that causes a 100% cpu usage (tsserver) | |
~/Library/Caches/typescript | |
# ios / xcode | |
~/Library/Developer/Xcode/DerivedData/* | |
~/Library/Developer/CoreSimulator/Caches/* | |
# android | |
~/.gradle/caches |