Skip to content

Instantly share code, notes, and snippets.

View crysxd's full-sized avatar

Christian Würthner crysxd

View GitHub Profile
@crysxd
crysxd / product-set.csv
Created May 11, 2019 11:28
Example of a CSV used to batch import a product set into Google Cloud Vision Product Search
image-uri image-id product-set-id product-id product-category product-display-name labels bounding-poly
gs://some-bucket.appspot.com/image1.jpg 7af4b4ab553e2273002637cc33d063b4efab7336 sneaker sneaker-1 apparel Awesome Sneaker Name style=554724-700,colorway=Black,retail_price=%24110,release_date=2019-04-01
gs://some-bucket.appspot.com/image2.jpg 9b735e511471f2aef80c43c344bd0165b40c0732 sneaker sneaker-2 apparel Other Sneaker Name style=554724-700,colorway=Black,retail_price=%24110,release_date=2019-04-01
gs://some-bucket.appspot.com/image3.jpg b91e552ca138c7c59c87ac06416cb2c71abe3627 sneaker sneaker-2 apparel Other Sneaker Name style=554724-700,colorway=Black,retail_price=%24110,release_date=2019-04-01
@crysxd
crysxd / ExampleActivity.java
Last active February 8, 2019 13:13
Requesting Android M 6.0 permission with couple of lines
...
public class ExampleActivity extends AppCompatActivity {
public void onClick(View v) {
// This example shows how to request CALL_PHONE and READ_CALENDAR and do some stuff with the permissions
// The user will only be prompted for the permissions he not yet has granted
new PermissionRequestManager()