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
adb -d forward tcp:5601 tcp:5601 |
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
Vue.directive('datepicker', { | |
bind: function (el, binding, vnode, oldVnode) { | |
$(el).datepicker({ | |
onSelect: function (date) { | |
vnode.context.date = date; | |
} | |
}); | |
}, | |
update: function (el, binding, vnode, oldVnode) { | |
$(el).datepicker('setDate', binding.value); |
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
//This is the main function to run | |
function initScript() { | |
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("IOXKL"); | |
var data = sheet.getDataRange().getValues(); | |
//Your sheets should have the below as headers | |
var emailIndex = searchHeaderIndex(data, "Email"); | |
var nameIndex = searchHeaderIndex(data, "Name"); | |
var statusIndex = searchHeaderIndex(data, "Status"); |
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
public class MainActivity extends AppCompatActivity { | |
// Used to load the 'calculator' cpp library on application startup. | |
static { | |
System.loadLibrary("calculator"); | |
} | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); |
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
private native String native_say_hello_world(); |
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
JNIEXPORT jstring JNICALL Java_com_example_app_MainActivity_native_say_hello_world(JNIEnv* env, jobject thiz ) { | |
std::string hello = "Hello from C++"; | |
return env->NewStringUTF(hello.c_str()); | |
} |
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
public class MainActivity extends AppCompatActivity { | |
// Used to load the 'native-lib' library on application startup. | |
static { | |
System.loadLibrary("calculator"); | |
} | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); |
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
calculator = | |
interface +c { | |
# create() is to create an instance of the calculator | |
static create(): calculator; | |
# summation, adding two i32.. aka integers together. And return an integer. | |
summation(number1: i32, number2: i32):i32; | |
} |
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 "calculator_impl.hpp" | |
#include <string> | |
namespace calculator{ | |
std::shared_ptr<Calculator> Calculator::create() { | |
return std::make_shared<CalculatorImpl>(); | |
} | |
CalculatorImpl::CalculatorImpl() {} | |
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 "calculator_impl.hpp" | |
#include <iostream> | |
using namespace std; | |
using namespace calculator; | |
int main(int argc, char const *argv[]) | |
{ | |
CalculatorImpl calculator = CalculatorImpl(); | |
int sum = calculator.summation(1, 2); |
OlderNewer