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
| var error = responseCode.code === 500; | |
| var empty = responseCode.code === 204; | |
| if(error) // block below is for 500 error scenario | |
| { | |
| tests["Response Error"] = error !== true; | |
| } | |
| else if(empty) // block below is for empty scenario | |
| { | |
| tests["Response Empty"] = empty === true; |
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.Service; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.os.Binder; | |
| import android.os.IBinder; | |
| import android.support.annotation.Nullable; | |
| import android.util.Log; | |
| /** | |
| * Created by aqid on 6/30/16. |
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
| <code_scheme name="flipbox"> | |
| <option name="FIELD_NAME_PREFIX" value="m" /> | |
| <option name="STATIC_FIELD_NAME_PREFIX" value="s" /> | |
| <option name="LOCAL_VARIABLE_NAME_PREFIX" value="l" /> | |
| <option name="PREFER_LONGER_NAMES" value="false" /> | |
| <option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="99" /> | |
| <option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="99" /> | |
| <option name="PACKAGES_TO_USE_IMPORT_ON_DEMAND"> | |
| <value /> | |
| </option> |
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
| angular.module('projectname.factories') | |
| .factory('DB', function($cordovaSQLite, $q, $ionicPlatform, $window) { | |
| 'use strict'; | |
| var self = this; | |
| self.db = null; | |
| self.initDB = function(){ | |
| var q = $q.defer(); |
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
| <?php | |
| namespace App\Models; | |
| use Carbon\Carbon; | |
| use App\User; | |
| class Helpers { | |
| /** | |
| * Status codes translation table. |