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
{"index":{"_index":"omdb","_type":"omdb"}} | |
{"Title":"Iron Man","Year":"2008","Rated":"PG-13","Released":"02 May 2008","Runtime":"126 min","Genre":"Action, Adventure, Sci-Fi","Director":"Jon Favreau","Writer":"Mark Fergus (screenplay), Hawk Ostby (screenplay), Art Marcum (screenplay), Matt Holloway (screenplay), Stan Lee (characters), Don Heck (characters), Larry Lieber (characters), Jack Kirby (characters)","Actors":"Robert Downey Jr., Terrence Howard, Jeff Bridges, Gwyneth Paltrow","Plot":"After being held captive in an Afghan cave, a billionaire engineer creates a unique weaponized suit of armor to fight evil.","Language":"English, Persian, Urdu, Arabic, Hungarian","Country":"USA","Awards":"Nominated for 2 Oscars. Another 19 wins & 61 nominations.","Poster":"http://ia.media-imdb.com/images/M/MV5BMTczNTI2ODUwOF5BMl5BanBnXkFtZTcwMTU0NTIzMw@@._V1_SX300.jpg","Metascore":"79","imdbRating":"7.9","imdbVotes":"689,098","imdbID":"tt0371746","Type":"movie","Response":"True"} | |
{"index":{"_index":"omdb","_type":"omdb"}} |
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
import nltk | |
#openFile | |
kalimat = open("ALT-Corpus-Tagged-Id-161.txt", "r") | |
#var | |
tokens = [] | |
a = [] #word | |
b = [] #tagpos |
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 NotifEvent { | |
public static NotifEvent instance = new NotifEvent(); | |
private final Subject<Object, Object> mSubject = new SerializedSubject<>(PublishSubject.create()); | |
public static NotifEvent getInstance() { | |
return instance; | |
} | |
public <T> Subscription register(final Class<T> tClass, Action1<T> onNext, Action1<Throwable> onError) { |
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
### Keybase proof | |
I hereby claim: | |
* I am isfaaghyth on github. | |
* I am isfaaghyth (https://keybase.io/isfaaghyth) on keybase. | |
* I have a public key ASBFNwxlXEtlE8sHVHUrn1l4czVLb1cV5suq45lR57iPCQo | |
To claim this, I am signing this object: |
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
import android.support.v7.widget.RecyclerView | |
import android.view.LayoutInflater | |
import android.view.View | |
import android.view.ViewGroup | |
import java.lang.reflect.Constructor | |
/** | |
* Created by isfaaghyth on 11/8/17. | |
* github: @isfaaghyth | |
* source: @ar-android |
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
<?xml version="1.0" encoding="utf-8"?> | |
<android.support.design.widget.CoordinatorLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:id="@+id/activity_main" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:fitsSystemWindows="true" | |
android:orientation="vertical"> |
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
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.0.6' | |
apply plugin: 'kotlin-android-extensions' |
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
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAIAAAAiOjnJAAAk1klEQVR42u2dd3gUVdfA37/JlG0zW2Z7SaEoTamKdCWUUAREfemoCChKE1RUigIJARQMgkhT8EUSQgstBRBCaGmkodL8ggKCICYQCOE7M5Msu5vsZnezPfc85+GhpDBzfzntnnvufx4jQeIF+Q96BUgQWEgQWEgQWEiQILCQILCQILCQIEFgIUFgIUFgIUGCwEKCwPKJ/Hr+/D+3b6PlRGB5TE6dOPHq8FdmTZteVVWFlhOB1SABhq798Ud8bFzXLi9gGP75vHmPEVUILLel4v79jLS0RZ9/3vKpp3CCbBKGkQLhxnXr0CoisFyHqaKipKDg8wULXh48RC6Th4VhaoLoIBQAVVKpFDhDS4jAck0AmoF9+0kkFMAE+qxQ8J6MStMzWQalkSCaN2teVFCA1g+B5YLcvHHjtREjwjAczBKOYcMpUbJWcd6k4nUkLW4W1fTPq1fR4iGwXDNUKpUKkALtKhLu1z1BCvSQjiExPCszE60cAsuFXG9FfDzBR+UY/gUjLbFAitdXafHAmBi0bAgsp6l69GjqlClhnKFSEcRPGjlgZANWsUmlxPGVX36Jlg2B5aytmjxxIu/+1DiRUuP+NqhllmDt0SngA4pRzI7AclJWrljBU6XCif06hsdop1axUS23BAv+CB/z1/XraNkQWPXLubw8kUgMxAgwfLv2CUlLGGmGnrEEazMH1rU//kDLhsCq3wn27RPNm6t4pdQSo7kK+pDOCiywYfBhZ0+dQsuGwKpHjqan8/WqGInIJgH8TEGvtEYt26iE6D4+Ng4tGwKrHhn28lCgisbxM0alDVhLldJhlC1t4SQxeuQotGwILEcC0RJJsrt+nyjo87VKVls1chLDjhmsvOEgiUilVD2oqEArh8CyK1u+/x6oUuB4bi1zBZpvVFE4PsTaRYJ/hE/Zs2sXWjkEll2ZOuUdoGQULa5NFa/DKR |
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
SET FOREIGN_KEY_CHECKS=0; | |
SET FOREIGN_KEY_CHECKS=1; |
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
@Override public void onMapReady(GoogleMap googleMap) { | |
double lat = ((MainActivity) getActivity()).getLat(); // --| terkadang null object reference disini, | |
double lon = ((MainActivity) getActivity()).getLon(); // --| tapi terkadang bisa. | |
LatLng latlong = new LatLng(lat, lon); | |
googleMap.clear(); | |
googleMap.addMarker(new MarkerOptions() | |
.position(latlong) | |
.title("Your Location")); | |
googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latlong, 16.5f)); | |
} |