Skip to content

Instantly share code, notes, and snippets.

View bidyashish's full-sized avatar
🔺

Bidyashish bidyashish

🔺
  • Ẹ̶̢̢̛̫͚̤͙̏̔͗̌̒̀̃̕ạ̸̠̦̞̝͇̗̗̻͉̲͓̋͗̔̑͋̌̑̏̎̐̂̌̎̽̂̾̓̎̃̕̕͠r̶̢͔̜̜̣̮̮̫̜̭̞͙͇͖͎̾͒̾̏͜t̸̢͙͔̪̬̺̼̺̮͐͆h̵̨̛̳̬̯̥̮̖̝͖͕̟͎͈͌̐̿͐̊͌͌̇͒̃̐̓̋̊́̀́̕͘͝
View GitHub Profile
@bidyashish
bidyashish / extensions.json
Last active April 20, 2020 03:29
vscode-sync
[
{
"id": "austincummings.razor-plus",
"name": "razor-plus",
"publisher": "austincummings",
"version": "0.1.4"
},
{
"id": "bmewburn.vscode-intelephense-client",
"name": "vscode-intelephense-client",
@bidyashish
bidyashish / node-index.js
Created August 27, 2019 12:43
Hacker Rank test
'use strict';
const fs = require('fs');
process.stdin.resume();
process.stdin.setEncoding('utf-8');
let inputString = '';
let currentLine = 0;
@bidyashish
bidyashish / cloudSettings
Created July 9, 2019 09:00 — forked from dgcoffman/cloudSettings
Visual Studio Code Sync Settings Gist
{"lastUpload":"2019-07-03T19:44:50.981Z","extensionVersion":"v3.3.1"}
/*
Author: Bidyashish Kumar
Javascript Implementation of Longest Common Subsequence
Find longest common subsequence between two strings
For eg
String1 = AGGTAB
<!--
In Vue, we use v-model for all form bindings, while
Knockout maintains separate binding types, such as
textInput, checked, and options. In some cases,
such as for an input of type "range", Knockout
simply doesn't have an equivalent two-way binding
helper and the more verbose value and valueUpdate
must be used.
-->
<div id="app">
@bidyashish
bidyashish / 01_Laravel 5 Simple ACL manager_Readme.md
Created April 23, 2018 03:36 — forked from amochohan/01_Laravel 5 Simple ACL manager_Readme.md
Laravel 5 Simple ACL - Protect routes by an account / role type

#Laravel 5 Simple ACL manager

Protect your routes with user roles. Simply add a 'role_id' to the User model, install the roles table and seed if you need some example roles to get going.

If the user has a 'Root' role, then they can perform any actions.

Installation

Simply copy the files across into the appropriate directories, and register the middleware in App\Http\Kernel.php

@bidyashish
bidyashish / eloquent.md
Created April 21, 2018 07:04 — forked from msurguy/eloquent.md
Laravel 4 Eloquent Cheat Sheet.

Conventions:

Defining Eloquent model (will assume that DB table named is set as plural of class name and primary key named "id"):

class Shop extends Eloquent {}

Using custom table name

protected $table = 'my_shops';

@bidyashish
bidyashish / README.md
Created March 17, 2018 03:57 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
@bidyashish
bidyashish / laravel_5_cheatsheet.md
Created February 23, 2018 03:23 — forked from abhi9bakshi/laravel_5_cheatsheet.md
Laravel 5 cheatsheet - Laracasts: Laravel 5 fundamentals

#Laravel 5 fundamentals

##Chapter 1: Meet Composer

Install composer

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer