Skip to content

Instantly share code, notes, and snippets.

@dipenparmar12
dipenparmar12 / laravel-spatie
Last active June 5, 2024 01:01
Laravel spatie cheatsheet, All methods handbook.
<?php
$user->assignRole('admin');
$user->getAllPermissions();
// Adding permissions to a user
$user->givePermissionTo('edit articles');
// Adding permissions via a role
@dipenparmar12
dipenparmar12 / javaScirpt_cheatSheet.js
Last active September 16, 2022 05:35
JavaScript Cheat Seet contains useful code examples on a single page. Not just a PDF!. Find code for JS loops, variables, objects, data types, strings it includes most of part of JS
/////////////////
////--------CoreJS
// alert('hello JS')
// confirm('Are you Ready ?') // true/false
// prompt('what is your best strenth ?') // input
// document.write('DOC EDITED BY JS')
/////////////////
////-------- SomeDefinations
// Loops – Most programming languages allow to work with loops, which help in executing one or more statements up to a desired number of times. Find the "for" and "while" loop syntax in this section.
@dipenparmar12
dipenparmar12 / gulpfile.js
Last active April 18, 2019 09:29
Gulp 4 Script ( Automate and enhance your workflow with Gulp version 4 )
// npm i --save-dev gulp -g
// npm i --save-dev gulp-sass
// npm i --save-dev gulp-postcss autoprefixer cssnano gulp-sourcemaps
// npm i --save-dev browser-sync
// npm i --save-dev gulp-htmlmin
// npm i --save-dev gulp-imagemin
// npm i --save-dev gulp-dest-clean
// npm i --save-dev gulp-pug
// ---OR---
@dipenparmar12
dipenparmar12 / webdev_online_resources.md
Created July 21, 2018 12:49 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@dipenparmar12
dipenparmar12 / SCSS.md
Created July 10, 2018 07:05 — forked from jareware/SCSS.md
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso

@dipenparmar12
dipenparmar12 / README.md
Created May 7, 2018 11:55 — forked from hofmannsven/README.md
My simply Git Cheatsheet