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
| /** main controller */ | |
| (function(){ | |
| var mainController = angular.module('mainController', ['moduleConfig','facebookFactory','serviceLocalStorage']); | |
| mainController.controller('mainController', ['$scope', '$window', 'config','facebook','localStorage', | |
| function($scope, $window ,config,facebook,localStorage) { | |
| console.log(config); | |
| facebook.checkConnect().then(function(status){ | |
| /** case already authen */ | |
| console.log(status); |
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
| /** config constant */ | |
| (function() { | |
| var moduleConfig = angular.module('moduleConfig', []); | |
| moduleConfig.constant('config', { | |
| local: { | |
| baseUrl: 'http://localhost', | |
| getprofile: '/get-profile', | |
| register: '/register', | |
| removeProfile: '/remove-profile', | |
| getall: 'get-all-profile', |
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
| /** facebook factory */ | |
| var facebookFactory = angular.module('facebookFactory', ['moduleConfig']); | |
| facebookFactory.service('facebook', ['$window','facebookConfig', 'connect','getProfile', | |
| function($window,facebookConfig,connect,getProfile) { | |
| var init = function() { | |
| $window.fbAsyncInit = function() { | |
| FB.init({ | |
| appId: facebookConfig.appId, | |
| status: facebookConfig.status, |
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
| /** service local storage */ | |
| (function() { | |
| var serviceLocalStorage = angular.module('serviceLocalStorage', []); | |
| serviceLocalStorage.service('localStorage', function() { | |
| this.set = function(key, value) { | |
| return localStorage.setItem(key, value); | |
| }; | |
| this.get = function(key) { | |
| return localStorage.getItem(key); | |
| }; |
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 | |
| class servicePackageRepository implements servicePackageInterface | |
| { | |
| private $packageId; | |
| private $lang; | |
| private $serviceCall3rdRepository; | |
| public function __construct(serviceCall3rdRepository $serviceCall3rdRepository, $package_id) | |
| { | |
| $this->serviceCall3rdRepository = $serviceCall3rdRepository; |
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\Providers; | |
| use App\Repositories\Storage\serviceCall3rdRepository; | |
| use Illuminate\Support\Facades\Request; | |
| use Illuminate\Support\ServiceProvider; | |
| class AppServiceProvider extends ServiceProvider | |
| { | |
| /** |
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\Http\Controllers\; | |
| use App\Http\Controllers\FrontendController; | |
| /** alias name servicePackageInterface as packge **/ | |
| use App\Repositories\Interfaces\servicePackageInterface as packge; | |
| use App\Repositories\Storage\servicePackageRepository as packageRepository; | |
| class PackageController extends FrontendController | |
| { | |
| private $packge; |
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\Http\Controllers\; | |
| use App\Http\Controllers\FrontendController; | |
| /** alias name servicePackageInterface as packge **/ | |
| use App\Repositories\Interfaces\servicePackageInterface as packge; | |
| use App\Repositories\Storage\servicePackageRepository as packageRepository; | |
| class PackageController extends FrontendController | |
| { | |
| private $packge; | |
| private $packageRepository; | |
| /** typing hiting packageRepository **/ |
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
| // Create directory bin. | |
| sudo mkdir bin | |
| // Compiled command with javac. | |
| sudo javac -d bin Hw.java |
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
| Manifest-Version: 1.0 | |
| Created-By: Samark | |
| Main-Class: Hw |