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
//class js | |
class Vehicle{ | |
constructor(name,model){ | |
this.name = name; | |
this.model = model; | |
} | |
showCar(){ | |
console.log("Model: "+this.model+ "\n Name: "+this.name); | |
} | |
} |
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
//html | |
<select class="myselect" size="3" id="searchContentType"> //size attribute is important without this itwont work | |
<option value="title">Video Title</option> | |
<option value="name">Name</option> | |
<option value="email">Email</option> | |
</select> | |
//css | |
select.myselect{ |
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
@media (min-width: 1200px){ | |
.ad-col-xl-3 { | |
flex: 0 0 33.333333%; | |
max-width: 33.333333%; | |
} | |
} | |
@media (min-width: 992px){ | |
.ad-col-lg-4 { | |
flex: 0 0 25%; | |
max-width: 25%; |
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
$('body').delegate('.deletelanguage','click',function(){ | |
alert("success"); | |
}); |
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
.ml-chat { | |
left: 2.5rem !important; | |
bottom: 2.5rem !important; | |
} |
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
//css | |
.disabledDiv { | |
pointer-events: none; | |
opacity: 0.5; | |
} | |
//laravel blade | |
@if($disabledVideosCount > 0) | |
<div class="row"> | |
<div class="col-12"> |
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
$allvideos = []; | |
$nextPageToken = ''; | |
do { | |
$playlistItemsResponse = Youtube::getPlaylistItemsByPlaylistId($list, $nextPageToken ); | |
foreach ($playlistItemsResponse['results'] as $playlistItem) { | |
array_push($allvideos, $playlistItem); | |
} | |
$nextPageToken = $playlistItemsResponse['info']['nextPageToken']; | |
} while ($nextPageToken <> ''); |
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
Route::get('/clear-user-data', function() { | |
Schema::disableForeignKeyConstraints(); | |
$tables = DB::select('SHOW TABLES'); | |
// echo "<pre>"; print_r($tables); exit; | |
// $cnt = 93; | |
$cnt = range(55,89); | |
// $cnt = range(87,91); | |
foreach($cnt as $c){ | |
foreach($tables as $table){ | |
if($table != 'users'){ |
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
composer install | |
npm install | |
npm run dev | |
cp .env.example .env | |
php artisan key:generate | |
php artisan migrate | |
php artisan db:seed | |
php artisan storage:link | |
php artisan serve |
OlderNewer