This file contains 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\Middleware; | |
use Closure; | |
use App\user; | |
use App\GroupRresources; | |
use App\Resources; | |
class PermissionChecker { |
This file contains 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 | |
/** | |
* CORS.php | |
* @author raf <[email protected]> | |
* @copyright Copyright (c) 2015, raf | |
*/ | |
namespace App\Http\Middleware; | |
This file contains 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
asset is a single asset item type | |
asset type is a asset classification class | |
asset location provides where they are located | |
asset items in location sets each item in the location | |
asset item is assigned to a user | |
asset item has purchase record | |
asset item belongs to a user from an assigned date and can be re-assigned to different user on a different date | |
asset item can be discarded (state change) | |
asset item can be returned to an asset inventory when not in use |
This file contains 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
$http({method: 'post', url:uri+'user/store'}). | |
success(function(data, status, headers, config) { | |
$location.path('admin/user/edit/'+data); | |
}); |
This file contains 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
'use strict'; | |
angular.module('clientApp') | |
.controller('staffCtrl', function ($scope,$http,uri,Helper) { | |
$scope.frm = {}; | |
$scope.deparments = []; | |
$http.get(uri+'staff'). | |
success(function(data, status, headers, config) { | |
$scope.staff = data.staff; | |
$scope.departments = data.departments; |
This file contains 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
app.directive('mbDatepicker', function() { | |
'use strict'; | |
return { | |
restrict: 'AE', | |
replace:true, | |
scope :{ | |
mbModel : '=', | |
mbDpConfig: '=', | |
label : '@', | |
mbId: '=' |
This file contains 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
#!/bin/bash | |
NONE='\033[00m' | |
RED='\033[01;31m' | |
GREEN='\033[01;32m' | |
YELLOW='\033[01;33m' | |
PURPLE='\033[01;35m' | |
CYAN='\033[01;36m' | |
WHITE='\033[01;37m' | |
BOLD='\033[1m' |
This file contains 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
Intent intent = new Intent(); | |
PendingIntent pendingIntent = PendingIntent.getActivity(MainActivity.this,0,intent,0); | |
Notification noti = new Notification.Builder(MainActivity.this) | |
.setTicker("Title") | |
.setContentTitle("Contant Tutle") | |
.setContentText("Hekko this is nust") | |
.setContentText("Content Texty") | |
.setSmallIcon(android.R.drawable.menu_frame) | |
.setContentIntent(pendingIntent).getNotification(); |
This file contains 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 mv.com.jps.alerm.Block; | |
import com.google.gson.annotations.Expose; | |
import com.google.gson.annotations.SerializedName; | |
import java.util.ArrayList; | |
import java.util.List; | |
/** | |
* Created by amin on 2/20/16. |
This file contains 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
app.directive('articleView', function(){ | |
return { | |
template: '', | |
scope: { | |
media: '=' | |
}, | |
restrict: 'E', | |
controller: function($scope) { |
OlderNewer