Skip to content

Instantly share code, notes, and snippets.

BRANCHES.

git branch - List all local branches.
git branch -a - List remote and local branches.
git checkout -b branch_name - Create a local branch and switch to it.
git checkout branch_name - Switch to an existing branch.
git push origin branch_name - Push branch to remote.
git branch -m new_name - Rename current branch.
git branch -d branch_name - Delete a local branch.
git push origin :branch_name - Delete a remote branch.

@tutq8118
tutq8118 / Words commonly used in CSS classes.md
Last active April 13, 2021 02:40
Words commonly used in CSS classes

Words commonly used in CSS classes

Images

image, img, picture, pic — picture

icon — icon

logo — logo

Handling the Delete Event on Watch

You can listen for 'unlink' events to fire on the watcher returned from gulp.watch. This gets fired when files are removed, so you can delete the file from your destination directory, using something like:

'use strict';

var del = require('del');
@tutq8118
tutq8118 / app.js
Created November 22, 2019 09:13 — forked from sogko/app.js
gulp + expressjs + nodemon + browser-sync
'use strict';
// simple express server
var express = require('express');
var app = express();
var router = express.Router();
app.use(express.static('public'));
app.get('/', function(req, res) {
res.sendfile('./public/index.html');
@tutq8118
tutq8118 / css3-animation-effects-for-magnific-popup.markdown
Created September 12, 2019 10:14
CSS3 animation effects for Magnific Popup
@tutq8118
tutq8118 / ketbase.md
Created September 11, 2019 11:05
Keybase

Keybase proof

I hereby claim:

  • I am tutq8118 on github.
  • I am tutq8118 (https://keybase.io/tutq8118) on keybase.
  • I have a public key ASAWS9f5egCRGTcEt84je1Xo_aGUyM_KYTi8lGFYGr_T1go

To claim this, I am signing this object: