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
Skip to content | |
Features | |
Business | |
Explore | |
Marketplace | |
Pricing | |
Search | |
Sign in or Sign up |
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
@charset "UTF-8"; | |
.clearfix::after { | |
content: ""; | |
clear: both; | |
display: table; | |
} | |
.text-red { | |
color: #ff0000; | |
font-weight: bold; |
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 function privateChat($modelId, Request $req) { | |
//TODO - setup ACL instead | |
$loginData = AppSession::getLoginData(); | |
if (!$loginData) { | |
//restrict for mdoel only | |
return redirect('/login'); | |
} | |
$model = User::where('id', '=', $modelId)->where('role', '=', 'model')->first(); |
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('perfecticeApp').controller('StudentProfileUpdateCtrl', function(grades, $scope, countryService, $rootScope, authService, | |
$cookieStore, FileUploader, countries, $document) { | |
var user = authService.getCurrentUser(); | |
$scope.error = {}; | |
$scope.countries = countries; | |
$scope.user = angular.copy(user); | |
$scope.grades = grades; | |
$scope.maxDate = new Date(); | |
$scope.formatDate = 'dd-MM-yyyy'; | |
if (!$scope.user.country || !$scope.user.country.code || !$scope.user.country.name) { |
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; | |
use EloquentFilter\Filterable; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Support\Collection; | |
use Illuminate\Support\Facades\App; | |
use League\Flysystem\Exception; | |
use App\Category; |
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 passport from 'passport'; | |
import {Strategy as LocalStrategy} from 'passport-local'; | |
function localAuthenticate(User, email, password, done) { | |
User.findOne({ | |
email: email.toLowerCase() | |
}).exec() | |
.then(user => { | |
if (!user) { | |
return done(null, false, { |
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
https://bitbucket.org/rajeev_93225/perfectice-mobile/src/1bdebba70ed5b5a8598d5e4e580f366f1e61411c/mobileApp/www/layout/menu.html?at=master&fileviewer=file-view-default | |
<ion-side-menus enable-menu-with-back-views="false"> | |
<ion-side-menu-content> | |
<ion-nav-bar ng-class="{expanded: isExpanded, 'has-header-fab-left': hasHeaderFabLeft, 'has-header-fab-right': hasHeaderFabRight ,'bar-transparent':isTransparentBar }" align-title="left"> | |
<ion-nav-back-button class="no-text"> | |
</ion-nav-back-button> | |
<ion-nav-buttons side="left"> | |
<button class="button button-icon button-clear ion-navicon" menu-toggle="left"> |
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
https://bitbucket.org/hoanvusolutions/rator-ios-react-native/src/d9e651e3c3beb72e10a954e9c612248a946e8418/js/components/message/MessageListComponent.js?at=master&fileviewer=file-view-default | |
import { | |
React, _, Icon, StoreComponent, SocketIO, Utils, | |
View, TextInput, StyleSheet, ListView, TouchableOpacity, Text, | |
ActivityIndicatorIOS, InvertibleScrollView, HTMLView, moment, Image | |
} from '../../lib'; | |
import { MessageService, UserService } from '../../services'; | |
import { GroupStore, UserStore } from '../../stores'; | |
import { GroupActions } from '../../actions'; |
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 toast = $mdToast.simple() | |
.textContent('Payment discarded') | |
.action('UNDO') | |
.highlightAction(false) | |
.position("right bottom"); | |
$mdToast.show(toast).then(function(response) { | |
if (response != 'ok') { | |
PaymentService.discardPayment(record.transactionId, null, null, function(resp){ | |
if (resp.success) { | |
if (resp.code != 200) { |
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
/** | |
* register new dealer account | |
*/ | |
exports.register = (req, res) => { | |
co(function* () { | |
let errors = validator.validateRegister(req); | |
if (errors) { | |
throw { status: 422, body: errors }; | |
} | |
NewerOlder