Skip to content

Instantly share code, notes, and snippets.

View bvipul's full-sized avatar
🎯
Focusing

Vipul Basapati bvipul

🎯
Focusing
  • GlobalSignIn Pvt. Ltd.
  • Ahmedabad, India
  • X @bvipul9523
View GitHub Profile
<?php
class NumberOfBikes {
public function __construct() {
$this->bikesCount = 0;
}
public function iHaveABike() {
$this->bikesCount += 1;
@bvipul
bvipul / settings.json
Created October 30, 2018 09:41
VSCode Settings
{
"editor.fontSize": 14,
"editor.fontLigatures":true,
"editor.cursorStyle": "line",
"editor.wordWrap": "on",
"editor.fontFamily": "Operator Mono Book",
"editor.tabCompletion": true,
"editor.lineHeight": 30,
"editor.cursorBlinking": "phase",
"editor.showFoldingControls": "always",
@bvipul
bvipul / index.js
Created August 9, 2018 07:42
Creating unions for union find using Node.js readline
const readline = require('readline');
const unions = [];
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
let number = undefined, i = 0;
@bvipul
bvipul / Blog.php
Created January 26, 2018 10:05
Blog Model File
<?php
namespace App\Models\Blogs;
use App\Models\BaseModel;
use App\Models\Blogs\Traits\Attribute\BlogAttribute;
use App\Models\Blogs\Traits\Relationship\BlogRelationship;
use App\Models\ModelTrait;
use Illuminate\Database\Eloquent\SoftDeletes;
@bvipul
bvipul / BlogAttribute.php
Created January 26, 2018 09:57
New Blog Attribute
<?php
namespace App\Models\Blogs\Traits\Attribute;
/**
* Class BlogAttribute.
*/
trait BlogAttribute
{
/**
@bvipul
bvipul / ModelTrait.php
Created January 26, 2018 09:50
Model Trait
<?php
namespace App\Models;
trait ModelTrait
{
/**
* @return string
*/
public function getEditButtonAttribute($permission, $route)
@bvipul
bvipul / BlogAttribute.php
Created January 26, 2018 09:37
Old Attribute File
<?php
namespace App\Models\Blogs\Traits\Attribute;
/**
* Class BlogAttribute.
*/
trait BlogAttribute
{
/**
@bvipul
bvipul / settings.json
Last active December 3, 2017 19:41
My VSCode Settings
{
"workbench.iconTheme": "material-icon-theme",
"workbench.colorTheme": "Slime",
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
"editor.multiCursorModifier": "ctrlCmd",
"editor.fontSize": 13,
"editor.fontLigatures":true,
"editor.cursorStyle": "block",
"editor.wordWrap": "on",
"editor.fontFamily": "Fira Code",
@bvipul
bvipul / dropbox.txt
Created November 8, 2017 11:08
Install Dropbox
//install dropbox
cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
~/.dropbox-dist/dropboxd
@bvipul
bvipul / virtualHost.conf
Last active December 24, 2020 13:20
For Adding virtual hosts file for Laravel projects
<VirtualHost *:80>
ServerAdmin admin@server.in
ServerName server.in
ServerAlias server.in
<Directory /var/www/html/project/public>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
DocumentRoot /var/www/html/project/public/