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
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@bvipul
bvipul / commands.txt
Last active October 9, 2017 11:33
composer file for phpspec dependencies
//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
@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 / 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 / commands.txt
Last active December 11, 2017 09:14
General Commands used daily
//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
@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 / 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:57
New Blog Attribute
<?php
namespace App\Models\Blogs\Traits\Attribute;
/**
* Class BlogAttribute.
*/
trait BlogAttribute
{
/**
@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 / 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;