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 Illuminate\Auth; | |
use Illuminate\Contracts\Auth\Authenticatable as UserContract; | |
class GenericUser implements UserContract | |
{ | |
/** | |
* All of the user's attributes. |
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
/* getting errors like: | |
[ignore]map_0_830091793909.setOptions, because it's not ready | |
Uncaught (in promise): TypeError: Cannot read property 'position' of undefined | |
*/ | |
ionViewDidLoad() { | |
console.log('ionViewDidLoad AnyNamePage'); | |
} |
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
export class AnyNamePage { | |
map: GoogleMap; | |
constructor(public navCtrl: NavController, public navParams: NavParams, private socialSharing: SocialSharing ) {} | |
ionViewWillLeave() { |
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
// not checking for auctions made in previous months. auctions here are dated annually | |
var mainRes = [], | |
limit = 3; // for debug | |
// get all auctions. auctions contain specific sales that occurred | |
$('.grid_cell_auction')/*.slice(0, limit)*/.each(function(i,el) { |
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 | |
// message model | |
public function adverts() | |
{ | |
return $this->morphedByMany(); | |
} | |
public function reports() |
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
function setTimes () { | |
var todayObj = new Date(), deadline = new Date('2019-11-11'), // '2019-11-08 14:59:00' | |
todaySecond = todayObj.getSeconds(), todayMinute = todayObj.getMinutes(), | |
todayHour = todayObj.getHours(), todayDay = todayObj.getDate(), | |
deadlineSecond = deadline.getSeconds(), deadlineMinute = deadline.getMinutes(), |
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
export default { | |
props : ['products', 'load_more_link', 'lazy_load', 'fetch_name'], | |
components: {DefaultCard}, | |
data() { | |
return { | |
loading: false, nextPageUrl: this.load_more_link, |
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 | |
class Activity { | |
public function trending (int $totalCount, string $paginationName) { | |
$ratioPaginate = function($builder, $ratio) use ($totalCount, $paginationName) { | |
return $builder->paginate(round(($ratio/5)*$totalCount), ['*'], $paginationName); | |
}; |
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
var mix = require('laravel-mix')/*, | |
WorkboxWebpackPlugin = require("workbox-webpack-plugin")*/; | |
var path = require("path") | |
/* | |
|-------------------------------------------------------------------------- | |
| Mix Asset Management | |
|-------------------------------------------------------------------------- | |
| | |
| Mix provides a clean, fluent API for defining some Webpack build steps |
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
<script> | |
var promoInfos = { | |
promo: 'Product will be added to Promo page', | |
store: 'Discount must be above 30%' | |
}, | |
promoFieldAdded = false, | |
temp = $('.sales-type-template.original'), |
OlderNewer