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
| version: '2' | |
| services: | |
| myapp: | |
| build: . | |
| container_name: "myapp" | |
| image: debian/latest | |
| environment: | |
| - NODE_ENV=development | |
| - FOO=bar | |
| volumes: |
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
| # Official Image for Node JS | |
| FROM node:boron | |
| # Create app directory | |
| WORKDIR /app | |
| # Install app dependencies | |
| COPY package.json /app | |
| # For npm@5 or later, copy package-lock.json as well | |
| # COPY package.json package-lock.json ./ |
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
| List<String> userIdsList = new ArrayList<String>(); | |
| userIdsList.add(mReceiverId); | |
| GroupChannel.createChannelWithUserIds(userIdsList, true, new GroupChannel.GroupChannelCreateHandler() { | |
| @Override | |
| public void onResult(GroupChannel groupChannel, SendBirdException e) { | |
| if (e != null) { | |
| // Handle Exception here | |
| return; |
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
| mUserListQuery = SendBird.createUserListQuery(); | |
| //Setting limit of users | |
| mUserListQuery.setLimit(30); | |
| if (mUserListQuery != null && mUserListQuery.hasNext() && !mUserListQuery.isLoading()) { | |
| mUserListQuery.next(new UserListQuery.UserListQueryResultHandler() { | |
| @Override | |
| public void onResult(List<User> users, SendBirdException e) { |
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.mindfire.quickapiintegration; | |
| import android.os.Bundle; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.util.Log; | |
| import com.magnet.android.mms.MagnetMobileClient; | |
| import com.magnet.android.mms.async.Call; | |
| import com.magnet.android.mms.exception.SchemaException; | |
| import com.mindfire.quickapiintegration.controller.api.WeatherData; |
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
| public static void verifyStoragePermissions(Activity activity) { | |
| // Check if we have write permission | |
| int permission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE); | |
| if (permission != PackageManager.PERMISSION_GRANTED) { | |
| // We don't have permission so prompt the user | |
| ActivityCompat.requestPermissions( | |
| activity, |