A hand crafted markdown document contains all major Javascript topics covered, taken from different sources. Brush Up your JS memory.
Single line comments start with //. For multi-line commands, you use /* ... */
// This is a single line comment| def create | |
| redirect_to page.root_url unless current_user_session.nil? | |
| @forgot_password = Auth::Tableless::ForgotPassword.new(auth_permitted_params.tableless_forgot_password) | |
| if @forgot_password.validate(auth_permitted_params.tableless_forgot_password) | |
| forgot_password_service = Auth::ForgotPasswordService.new | |
| unless forgot_password_service.account_holder?(auth_permitted_params.tableless_forgot_password) | |
| flash.now[:warning] = t('auth.forgot_password.create.warning_message') | |
| render :index |
| <?php | |
| namespace Mysql; | |
| /** | |
| * Class MysqlConnector. | |
| * Wrapper class of mysqli. | |
| */ | |
| class MySqlConnector { | |
| private $connection; |
| <?php | |
| namespace App\Http\Controllers\Web\Front; | |
| use App\Http\Controllers\Controller; | |
| use App\Repositories\AboutUsRepository; | |
| use App\Repositories\BannerRepository; | |
| use App\Repositories\ClientCategoryRepository; | |
| use App\Repositories\ClientRepository; | |
| use App\Repositories\CompanyInfoRepository; |
| ```php | |
| <?php | |
| namespace App\Http\Controllers\Web\Front\Components; | |
| use App\Http\Controllers\Controller; | |
| use App\Services\AboutUsService; | |
| use App\Services\Contracts\AboutUsContract; | |
| use App\Services\Contracts\IndexPageContract; |
| // FIXME: MOHAMMAD ASHRAFUDDIN FERDOUSI: THIS NUXT URL IS HARDCODED BUT IT'S NOT GUARANTEED THAT EVEN PHONE'S APP WILL USE THE SAME URL! | |
| const BASE_URL = process.env.BASE_URL || 'https://larecom.com:4430'; | |
| const API_BASE_URL = 'https://api.laraecom.com/api/v1/'; | |
| const HOST_DOCKER_INTERNAL = 'laraecom_backend_local_env_nginx/api/v1'; | |
| export default { | |
| generate: { | |
| fallback: true | |
| }, |
| <?php | |
| namespace App\Http\Controllers; | |
| use Illuminate\Http\Request; | |
| class AdminController extends Controller | |
| { | |
| public function imageFillToSquare(Request $request){ |
RUN set -ex \
&& apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS imagemagick-dev libtool \
&& export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" \
&& pecl install imagick-3.4.3 \
&& docker-php-ext-enable imagick \
&& apk add --no-cache --virtual .imagick-runtime-deps imagemagick \
&& apk del .phpize-deps| <?php | |
| namespace App\Providers; | |
| use Illuminate\Support\Collection; | |
| use Illuminate\Pagination\LengthAwarePaginator; | |
| class AppServiceProvider extends ServiceProvider | |
| { | |
| public function boot() |