Skip to content

Instantly share code, notes, and snippets.

@lideo
lideo / fix_user_and_email_in_repo.md
Last active April 28, 2020 04:53
How to fix wrong username and email in git repository commits.
@lideo
lideo / .eslintrc
Last active May 5, 2020 04:36
Configure ESlint + Prettier per project.
{
"extends": [
"airbnb",
"prettier"
],
"plugins": [
"prettier"
],
"rules": {
"prettier/prettier": [
@lideo
lideo / gist:82fb863749f4efe1deb9ca146b1093e8
Created October 8, 2019 08:09
Exclude .DS_Store file from tar.gz
tar -zcv --exclude='.DS_Store' -f file.tar.gz folder/
<?php
class Some_Class {
/**
* This code retrieves course data from an external API and displays it in the user's
* My Account area. A merchant has noticed that there's a delay when loading the page.
*
* == What changes would you suggest to reduce or remove that delay? ==
*/
@lideo
lideo / gist:25d0abc4216888a0e2d1b5589ac12117
Created September 16, 2019 10:06
Change the author name and email of the very last commit (not pushed)
git commit --amend --author="John Doe <[email protected]>"
@lideo
lideo / namecheap-netlify-dns-configuration.txt
Created September 4, 2019 11:21 — forked from ddeveloperr/namecheap-netlify-dns-configuration.txt
Netlify custom domain dns configuration with domain from namecheap
Please follow these steps to point your domain name to the Netlify nameservers:
- Having logged into Namecheap account, go to your Domain List -> click 'Manage' next to the domain billboardsjenica.com -> locate the 'Nameservers' section;
- Choose ‘Custom DNS’ in the drop-down menu;
- Fill in your custom nameservers into empty lines;
4 lines in total :
dns1.p07.yourDNS.net
dns2.p07.yourDNS.net
dns3.p07.yourDNS.net
@lideo
lideo / nice-transition.css
Created June 29, 2019 11:29
An example of a nice transition timing function.
div {
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1.0);
}
@lideo
lideo / RrwZYP.markdown
Last active April 9, 2019 08:50 — forked from anonymous/RrwZYP.markdown
RrwZYP
'use strict';
// -----------------------------------------------------------------------------
// Dependencies
// -----------------------------------------------------------------------------
var gulp = require('gulp');
var sass = require('gulp-sass');
var sourcemaps = require('gulp-sourcemaps');