Skip to content

Instantly share code, notes, and snippets.

View XiongVang's full-sized avatar

Xiong K. Vang XiongVang

View GitHub Profile
@XiongVang
XiongVang / aws_glue_boto3_example.md
Created March 17, 2021 03:52 — forked from ejlp12/aws_glue_boto3_example.md
AWS Glue Create Crawler, Run Crawler and update Table to use "org.apache.hadoop.hive.serde2.OpenCSVSerde"
import boto3

client = boto3.client('glue')

response = client.create_crawler(
    Name='SalesCSVCrawler',
    Role='AWSGlueServiceRoleDefault',
    DatabaseName='sales-cvs',
    Description='Crawler for generated Sales schema',
@XiongVang
XiongVang / RxJava.md
Created April 2, 2017 18:55 — forked from cesarferreira/RxJava.md
Party tricks with RxJava, RxAndroid & Retrolambda

View Click

Instead of the verbose setOnClickListener:

RxView.clicks(submitButton).subscribe(o -> log("submit button clicked!"));

Filter even numbers

Observable
    .just(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
@XiongVang
XiongVang / api.java
Created April 2, 2017 18:45 — forked from cesarferreira/api.java
RxJava and Retrofit sample
public interface API {
@GET("/user/{username}/dogs")
Observable<Dog> getAllDogsOf(@Path("username") String username);
@GET("/dog/{id}")
Observable<Dog> getDogInfoById(@Path("id") int dogId);
}