Skip to content

Instantly share code, notes, and snippets.

View rajinder-yadav's full-sized avatar

Rajinder Yadav rajinder-yadav

  • DevMentor.org Corp.
  • Toronto, Ontario, Canada
View GitHub Profile
@rajinder-yadav
rajinder-yadav / technical-writing.md
Last active June 10, 2024 17:19
Guide to technical writing.

Rules for Technical writing

Identify your audience, speak their level of vocabulary (technical, linguistics).

Identify the purpose of the written material, the objective.

The purpose of written text is to inform and educate. It should focus on two goals:

  1. Readability
  2. Comprehensibility
@rajinder-yadav
rajinder-yadav / tsfmt.json
Last active September 19, 2018 03:18
TypeScript Formatter configuration
{
"baseIndentSize": 0,
"indentSize": 2,
"tabSize": 2,
"indentStyle": 2,
"newLineCharacter": "\n",
"convertTabsToSpaces": true,
"insertSpaceAfterCommaDelimiter": true,
"insertSpaceAfterSemicolonInForStatements": true,
"insertSpaceBeforeAndAfterBinaryOperators": true,
@rajinder-yadav
rajinder-yadav / .gitconfig
Last active July 28, 2021 05:13
Git configuration
[user]
name = Dev Guy
email = [email protected]
[core]
editor = vim
excludesfile = /Users/yadav/.gitignore_global
[color]
ui = auto
diff = auto
status = auto
@rajinder-yadav
rajinder-yadav / .astylerc
Created February 9, 2017 03:21
AStyle C++ code formatter configuration
{
"indentSize": 4,
"tabSize": 4,
"newLineCharacter": "\r\n",
"convertTabsToSpaces": true,
"insertSpaceAfterCommaDelimiter": true,
"insertSpaceAfterSemicolonInForStatements": true,
"insertSpaceBeforeAndAfterBinaryOperators": true,
"insertSpaceAfterKeywordsInControlFlowStatements": true,
"insertSpaceAfterFunctionKeywordForAnonymousFunctions": false,
@rajinder-yadav
rajinder-yadav / vscode.config
Last active March 8, 2022 19:41
VSCode User settings
{
"workbench.sideBar.location": "right",
"workbench.editor.showTabs": true,
"workbench.colorTheme": "Plastic",
// Control the cursor animation style, possible values are 'blink', 'smooth', 'phase', 'expand' and 'solid'
"editor.cursorBlinking": "blink",
// Controls the cursor style, accepted values are 'block', 'block-outline', 'line', 'line-thin', 'underline' and 'underline-thin'
"editor.cursorStyle": "block",
"editor.renderWhitespace": "none",
"editor.renderControlCharacters": false,
@rajinder-yadav
rajinder-yadav / .editorconfig
Created February 14, 2017 05:15
My editorconfig config file
# EditorConfig is awesome: http://EditorConfig.org
# Configuration settings
# http://editorconfig.org/#file-format-details
# top-most EditorConfig file
root = true
indent_style = space
ng set --global packageManager=yarn
@rajinder-yadav
rajinder-yadav / webpack2-sample-setup.md
Last active July 10, 2017 18:11
Webpack 2 Angular app sample config

webpack.dev.config.js

"use strict";

const path = require("path");
const webpack = require("webpack");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const DashboardPlugin = require("webpack-dashboard/plugin");
@rajinder-yadav
rajinder-yadav / curry-function.md
Last active February 21, 2017 05:33
Curry function.

Curry in a hurry ... very, very good!!!

Showing the basic usage pattern of a curry function.

We start off with this:

const a = [1,2,3,4];
console.log(a.map(x => x*2));  // [2, 4, 6, 8]
@rajinder-yadav
rajinder-yadav / npm-registry-licenses.txt
Created February 23, 2017 04:52 — forked from robertkowalski/npm-registry-licenses.txt
The licenses in the npm-registry from their package.json, from the latest version of each module 23.11.2013
The licenses in the npm-registry from their package.json, from the latest version of each module
23.11.2013
[ { key: 'undefined', value: 27785 },
{ key: 'MIT', value: 20811 },
{ key: 'BSD', value: 5240 },
{ key: 'BSD-2-Clause', value: 621 },
{ key: 'Apache 2.0', value: 263 },
{ key: 'GPL', value: 233 },