Skip to content

Instantly share code, notes, and snippets.

@dipenparmar12
dipenparmar12 / README.md
Created May 7, 2018 11:55 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@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 / 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 / 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 / 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 / laravel-spatie
Last active January 31, 2024 12:58
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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Opinion Lexicon: Positive
;
; This file contains a list of POSITIVE opinion words (or sentiment words).
;
; This file and the papers can all be downloaded from
; http://www.cs.uic.edu/~liub/FBS/sentiment-analysis.html
;
; If you use this list, please cite one of the following two papers:
@dipenparmar12
dipenparmar12 / gist:7d7a4f51873a8634bd7fbaed92d462aa
Created March 4, 2020 18:47 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@dipenparmar12
dipenparmar12 / firefox_password_export_guide.md
Last active April 18, 2020 09:13
How to print out my passwords in Firefox?

There is no built-in feature for this. You can use a short script in Firefox's Browser Console tool to generate/export a list.

Preparation: Enable Advanced Features of the Browser Console

This needs to be done once:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.

(2) In the search box above the list, type or paste DEVT and pause while the list is filtered

@dipenparmar12
dipenparmar12 / php_laravel_installation.md
Last active September 11, 2020 13:10
Install PHP & Laravel on Linux using Composer

How to Install PHP & Laravel on Linux using Composer.

Update the system packages to the latest versions:

sudo apt-add-repository ppa:ondrej/php

sudo apt update && sudo apt upgrade

Installing PHP