Skip to content

Instantly share code, notes, and snippets.

View eamirgh's full-sized avatar
:octocat:
trying to make the world a better place

Amir Ghaffari eamirgh

:octocat:
trying to make the world a better place
View GitHub Profile
@eamirgh
eamirgh / git_avoid_pull.md
Last active November 24, 2018 20:46
git avoid from pulling

git avoid from pulling

$ git update-index --assume-unchanged

@eamirgh
eamirgh / git-io-custom-url.md
Created November 14, 2018 22:07 — forked from dikiaap/git-io-custom-url.md
git.io custom URL

Command:

curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"

URLs that can be created is from:

  • https://github.com/*
  • https://*.github.com
  • https://*.github.com/*
  • https://*.github.io
class Errors {
/**
* Create a new Errors instance.
*/
constructor() {
this.errors = {};
}
/**
@eamirgh
eamirgh / fix-npm-run-dev.sh
Last active May 11, 2018 14:07
ubuntu laravel error on npm run dev
rm -rf node_modules
rm package-lock.json yarn.lock
npm cache clear --force
npm install
{
"provinces": [
{
"id": "AZE",
"name": "آذربايجان شرقي",
"cities": [
{
"id": "4",
"name": "تبریز",
"areas": [
@eamirgh
eamirgh / _spacing-helpers.scss
Created November 23, 2017 18:18 — forked from jacurtis/_spacing-helpers.scss
SASS Margin and Padding Helpers Loop. Generates .m-t-10 type helper classes.
/*
This .scss loop will create "margin helpers" and "padding helpers" for use in your web projects.
It will generate several classes such as:
.m-r-10 which gives margin-right 10 pixels.
.m-r-15 gives MARGIN to the RIGHT 15 pixels.
.m-t-15 gives MARGIN to the TOP 15 pixels and so on.
.p-b-5 gives PADDING to the BOTTOM of 5 pixels
.p-l-40 gives PADDING to the LEFT of 40 pixels