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
| make test | |
| g++ -std=c++11 -I ../../distrib/include/ -I ../../distrib/tools/ -Wall -Werror -Wno-unused-function -Wcast-qual -Wignored-qualifiers -Wno-comment -Wsign-compare -Wno-unknown-warning-option -Wno-psabi halide_blur_generator.cpp ../../distrib/lib/libHalide.a ../../distrib/tools/GenGen.cpp -o bin/halide_blur.generator -ldl -lpthread -lz -lz -lrt -ldl -lpthread -lm | |
| ../../distrib/lib/libHalide.a(Func.cpp.o):(.data+0x0): undefined reference to `llvm::EnableABIBreakingChecks' | |
| ../../distrib/lib/libHalide.a(Func.cpp.o): In function `_GLOBAL__sub_I__ZN6Halide4FuncC2ERKSs': | |
| Func.cpp:(.text.startup+0x36c): undefined reference to `LLVMLinkInMCJIT' | |
| ../../distrib/lib/libHalide.a(Module.cpp.o): In function `Halide::Module::compile_to_buffer() const': | |
| Module.cpp:(.text+0x1e66): undefined reference to `llvm::LLVMContext::LLVMContext()' | |
| Module.cpp:(.text+0x1ed7): undefined reference to `vtable for llvm::raw_svector_ostream' | |
| Module.cpp:(.text+0x1ee1): undefined reference to `llvm::raw_ostream::SetBufferAndMode(char*, |
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.app.Activity; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.graphics.Bitmap; | |
| import android.graphics.Point; | |
| import android.graphics.drawable.ColorDrawable; | |
| import android.os.Build; | |
| import android.os.Bundle; | |
| import android.os.SystemClock; |
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
| Observable.from(imageStorageList) | |
| .flatMap(uri -> new ImageUploadHelper().uploadImage(new File(uri.getPath()))) | |
| .map(uploadImageResponse -> { | |
| if(uploadImageResponse.getStatusCode() != 200){ | |
| throw new RuntimeException("Unable to upload image"); // this will be thorwn to onError | |
| } else { | |
| return uploadImageResponse; | |
| } | |
| }) | |
| .toList() |
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
| ArrayList<ImageUploadResponse> responseArrayList = new ArrayList<>(); | |
| // call to upload the image | |
| Observable.from(imageStorageList) | |
| .flatMap(uri -> new ImageUploadHelper().uploadImage(new File(uri.getPath()))) | |
| .toList() | |
| .map(list -> { | |
| user.setProfileImageList(list); | |
| return user; | |
| }) | |
| .flatMap(user -> apiClient.UpdateUserProfile(/*here your authorization*/, user)) |
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
| // on error the server sends JSON | |
| /* | |
| { "error": { "data": { "message":"A thing went wrong" } } } | |
| */ | |
| // create model classes.. | |
| public class ErrorResponse { | |
| Error error; | |
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 com.pommedeterresautee.rxtest; | |
| import android.content.Intent; | |
| import android.os.Bundle; | |
| import android.app.Activity; | |
| import android.view.Menu; | |
| import android.widget.TextView; | |
| import rx.Observer; |
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
| final GridView gridView1 = (GridView)findViewById(R.id.gridView1); | |
| ArrayList<String> listCountry1 = new ArrayList<String>(); | |
| listCountry1.add("China"); | |
| listCountry1.add("Japan"); | |
| listCountry1.add("Malaysia"); | |
| listCountry1.add("India"); | |
| listCountry1.add("Pakistan"); | |
| listCountry1.add("Indonesia"); | |
| listCountry1.add("Thailand"); |
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
| // Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible). | |
| // Tweak the makePrettyJSON_ function to customize what kind of JSON to export. | |
| var FORMAT_ONELINE = 'One-line'; | |
| var FORMAT_MULTILINE = 'Multi-line'; | |
| var FORMAT_PRETTY = 'Pretty'; | |
| var LANGUAGE_JS = 'JavaScript'; | |
| var LANGUAGE_PYTHON = 'Python'; |