Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Vipul Basapati bvipul

🎯
Focusing
Block or report user

Report or block bvipul

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bvipul
bvipul / settings.json
Created Oct 30, 2018
VSCode Settings
View settings.json
{
"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 Aug 9, 2018
Creating unions for union find using Node.js readline
View index.js
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 Jan 26, 2018
Blog Model File
View Blog.php
<?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 Jan 26, 2018
New Blog Attribute
View BlogAttribute.php
<?php
namespace App\Models\Blogs\Traits\Attribute;
/**
* Class BlogAttribute.
*/
trait BlogAttribute
{
/**
View ModelTrait.php
<?php
namespace App\Models;
trait ModelTrait
{
/**
* @return string
*/
public function getEditButtonAttribute($permission, $route)
@bvipul
bvipul / BlogAttribute.php
Created Jan 26, 2018
Old Attribute File
View BlogAttribute.php
<?php
namespace App\Models\Blogs\Traits\Attribute;
/**
* Class BlogAttribute.
*/
trait BlogAttribute
{
/**
@bvipul
bvipul / settings.json
Last active Dec 3, 2017
My VSCode Settings
View settings.json
{
"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 Nov 8, 2017
Install Dropbox
View dropbox.txt
//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 Mar 23, 2019
For Adding virtual hosts file for Laravel projects
View virtualHost.conf
<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/
@bvipul
bvipul / commands.txt
Last active Dec 11, 2017
General Commands used daily
View commands.txt
//For defining specTest Class using phpspec
//The Main Spec Class would be prompted to you when running below command
bin/phpspec describe primeFactors
//For running tests
bin/phpspec run
//update npm
npm i -g npm
You can’t perform that action at this time.