Skip to content

Instantly share code, notes, and snippets.

View bilalqtech's full-sized avatar

Bilal Shehzad bilalqtech

  • Sialkot, Pakistan
  • 19:06 (UTC +05:00)
View GitHub Profile
@bilalqtech
bilalqtech / myscript.sh
Created May 18, 2018 11:47 — forked from bradtraversy/myscript.sh
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"
@bilalqtech
bilalqtech / npmcrashcourse.txt
Created September 19, 2017 04:19 — forked from bradtraversy/npmcrashcourse.txt
NPM Crash Course Commands
# GET VERSION
npm -v (or --version)
# GET HELP
npm help
npm
# CREATE PACKAGE.JSON
npm init
npm init -y (or --yes)
@bilalqtech
bilalqtech / gist:2471fe03369c214dd07652c7a294c279
Created September 15, 2017 04:45
Current Sublime Text Settings
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme",
"folder_exclude_patterns":
[
".git",
"node_modules",
".vscode"
],
Listing globally installed NPM packages and version
npm list -g --depth=0
Source: https://gist.github.com/brenopolanski/4aec3240bf30889576f9badd2e745fc3
*****
Uninstalling npm global packages
npm uninstall -g <packagename>
@bilalqtech
bilalqtech / gist:df354a999d0ff5bdc6b463aff88ffe53
Created May 17, 2017 05:57
Linked Letter Writing w/ SVG (JS)
var strokes = [],
paths = document.getElementsByTagName("path"),
j = 0;
for (let i = 0; i < paths.length; i++) {
strokes[i] = paths[i].getTotalLength();
paths[i].style.strokeDashoffset = paths[i].getTotalLength();
paths[i].style.strokeDasharray = paths[i].getTotalLength();
}

Sublime Text 3 Setup

Install Package Control

Install Package Control for easy package management.

  1. Open the console with Ctrl+`
  2. Paste in the following:

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after
{
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"auto_complete_with_fields": true,
"bold_folder_labels": false,
"color_scheme": "Packages/Github Color Theme/GitHub.tmTheme",
"default_encoding": "UTF-8",
"detect_indentation": true,
"folder_exclude_patterns":
[
@bilalqtech
bilalqtech / gist:82f920e540aefb46ac83fd82fff47b75
Created December 15, 2016 10:39 — forked from xpertspk/gist:5a02b8630da6033cc762
Sublime Text must have packages
1. Emmet
2. Sass
3. Color Highlighter
4. HTML-CSS-JS Prettify
5. BracketHighlighter
6. SideBarEnhancements
7. SublimeLinter
7.1 SublimeLinter-html-tidy
7.2 SublimeLinter-csslint
7.3 SublimeLinter-jshint