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
| #!/bin/bash | |
| git config --global alias.lg "log --oneline --decorate --all --graph" | |
| git config --global alias.s "status -s" | |
| git config --global pull.rebase true | |
| git config --global rerere.enabled true | |
| git config --global user.name "Liew Jun Tung" | |
| git config --global user.email [email protected] |
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
| adb -d forward tcp:5601 tcp:5601 |
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
| <!-- Start: Template --> | |
| <template id="vue-datepicker"> | |
| <div> | |
| <div class="form-group"> | |
| <label for="date-from">From:</label> | |
| <input id="date-from" class="form-control" type="text" v-model="frm" v-on:change="changeFrom"> | |
| </div> | |
| <div class="form-group"> | |
| <label for="date-to">To:</label> | |
| <input id="date-to" class="form-control" type="text" v-model="to" v-on:change="changeTo"> |
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
| 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 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
| //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 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 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 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
| private native String native_say_hello_world(); |
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
| 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 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 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 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
| 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; | |
| } |
OlderNewer