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
| Undefined symbols for architecture arm64: | |
| "_CFStringCreateWithCString", referenced from: | |
| _main in ios_hello_world-cc7860.o | |
| "_UIApplicationMain", referenced from: | |
| _main in ios_hello_world-cc7860.o | |
| "_class_addMethod", referenced from: | |
| _main in ios_hello_world-cc7860.o | |
| "_class_addProtocol", referenced from: | |
| _main in ios_hello_world-cc7860.o | |
| "_class_createInstance", referenced from: |
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
| useEffect(() => { | |
| const backAction = () => { | |
| return true; | |
| }; | |
| BackHandler.addEventListener('hardwareBackPress', backAction); | |
| return () => | |
| BackHandler.removeEventListener('hardwareBackPress', backAction); | |
| }, []); |
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
| import static androidx.core.app.ActivityCompat.startActivityForResult; | |
| import android.app.Activity; | |
| import android.content.Intent; | |
| import android.widget.Toast; | |
| import androidx.annotation.NonNull; | |
| import androidx.annotation.Nullable; | |
| import com.facebook.react.bridge.ActivityEventListener; |
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
| // Deklarasi end point di interface | |
| @POST("v2/something") | |
| Call<SomeResponse> doSomethingWithForm(@Body RequestBody request); | |
| // Buat dulu form data | |
| // Isi dengan field2 yang diinginkan | |
| MultipartBody.Builder builder = new MultipartBody.Builder(); | |
| builder.setType(MultipartBody.FORM); | |
| builder.addFormDataPart("field_1", "nilai1"); | |
| builder.addFormDataPart("field_2", "nilai2"); |
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
| /* | |
| Source: https://stackoverflow.com/questions/41734700/how-to-add-thousand-separator-in-android-edittext | |
| */ | |
| editText.addTextChangedListener(new TextWatcher() { | |
| @Override | |
| public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) { | |
| } | |
| @Override | |
| public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) { |
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
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH | |
| export LC_ALL=en_US.UTF-8 | |
| # Hack-ish commands | |
| #alias tmp-hack="export TMPDIR=/tmp" | |
| export TMPDIR=/tmp | |
| # Path to your Oh My Zsh installation. | |
| export ANDROID_HOME=/Users/andretampubolon/Library/Android/sdk |
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
| import android.os.Bundle | |
| import android.view.LayoutInflater | |
| import android.view.View | |
| import android.view.ViewGroup | |
| import androidx.fragment.app.Fragment | |
| import com.google.android.gms.maps.CameraUpdateFactory | |
| import com.google.android.gms.maps.GoogleMap | |
| import com.google.android.gms.maps.OnMapReadyCallback | |
| import com.google.android.gms.maps.SupportMapFragment | |
| import com.google.android.gms.maps.model.BitmapDescriptorFactory |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:background="@color/white" | |
| android:orientation="vertical" | |
| tools:context=".AboutFragment"> |
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
| package main | |
| /* | |
| Check for email from a certain sender (e.g [email protected]), grab the Excel attachment | |
| Schedule this with cron or whatever... | |
| */ | |
| import ( | |
| "fmt" |
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
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "github.com/emersion/go-imap" | |
| "github.com/emersion/go-imap/client" | |
| "github.com/emersion/go-message/mail" | |
| ) |
NewerOlder