Skip to content

Instantly share code, notes, and snippets.

View Sunwarul's full-sized avatar
🎯
Focusing

Sunwarul Islam Sunwarul

🎯
Focusing
View GitHub Profile
# Disable Directory listing
Options -Indexes
# block files which needs to be hidden, specify .example extension of the file
<Files ~ "\.(env|json|config.js|md|gitignore|gitattributes|lock)$">
Order allow,deny
Deny from all
</Files>
<IfModule mod_rewrite.c>
$2y$10$2PIcPbC0zBIjLvlStGt9yOiOyy8SVWc6xlCUTFApGAn5hm5z9UpfS
[
{
"label": "Full Name",
"name": "name",
"type": "text",
"placeholder": "Applicant's Name",
"class": "form-control",
"id": "name",
"rules": "required|min:5"
},
<?php
namespace App\Forms;
use Kris\LaravelFormBuilder\Form;
class ApplicationForm extends Form
{
public function buildForm()
{
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateApplicationsTable extends Migration
{
/**
* Run the migrations.
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateApplicationsTable extends Migration
{
/**
* Run the migrations.
@Sunwarul
Sunwarul / JavascriptProblemSolvingTemplate.js
Last active January 12, 2023 18:43
JavaScript (NodeJS) Problem Solving Template. Can be used at Codeforces, Hackerrank, etc judges.
/**
* @author : "Sunwarul Islam"
* To make an javascript problem solving environent, follow these following steps:
* Run these commands from your terminal "mkdir programmingenv", "cd programmingenv", "touch main.js input.txt output.txt"
* Then, write this code snippet into the main.js and run this command to execute: "node main.js < input.txt > output.txt"
* Don't forget to insert your standard input into input.txt file, if you have any. and your output will go to ouptut.txt file.
* Full process as a video tutorial: https://www.youtube.com/watch?v=feDyXKQkSj0&t=1084s
*/

July 7 (Vue+Laravel Settings)

BACKEND

// routes/web.php
Route::get('/{any}', function() {
    return view('layouts.app');
})->where('any', '.*');
{
"workbench.startupEditor": "newUntitledFile",
"window.zoomLevel": 0,
"workbench.iconTheme": "material-icon-theme",
"editor.fontLigatures": true,
"editor.mouseWheelZoom": true,
"breadcrumbs.enabled": false,
"workbench.activityBar.visible": true,
"workbench.statusBar.visible": true,
"code-runner.runInTerminal": true,
// On Provider/AppServiceProvider.php register() method, write this:
// Then run php artisan storage:link from your main app directory as general.
$this->app->bind('path.public', function() {
return base_path('../public_html');
});