Skip to content

Instantly share code, notes, and snippets.

View A-Programmer's full-sized avatar

Kamran Sadin A-Programmer

View GitHub Profile
@A-Programmer
A-Programmer / LazyLoading.md
Last active May 1, 2018 14:31
What is Lazy Loading and introduce some JQuery Lazy Loading Plugins

Lazy Loading چیست؟

Lazy Loading یا بارگذاری احمقانه یك تكنیك برای به تاخیر انداختن بارگذاری تصاویر و ویدئو در صفحات وب به جای بارگذاری كل صفحه می باشد. این تكنیك باعث كم شدن زمان انتظار كاربر برای بارگذاری می شود.

در ادامه به چند افزونه جی كوئری برای Lazy Loading اشاره خواهیم كرد.

1.LazyYT.js

این افزونه برای بارگذاری ویدئو های یوتیوب بسیار مفید است.

@A-Programmer
A-Programmer / SqlQueries.md
Created May 4, 2018 15:51
75 SQL queries that makes a programmer's life easier. Part 1

75 SQL queries that makes a programmer's life easier. Part 1

In this article we will learn about some of the mostly used SQL Server queries every developer should know. These queries can be asked you as an Interview Question or they are handy for you in your day to day tasks.

1. Create Table:

In this SQL Server query we will learn How to create table in SQL Server.

CREATE TABLE TableName ( Id INT, Name Nvarchar(500),

@A-Programmer
A-Programmer / SqlQueries2.md
Last active June 23, 2018 19:53
75 SQL queries that makes a programmer's life easier. Part 2

75 SQL queries that makes a programmer's life easier. Part 2

In this article we will learn about some of the mostly used SQL Server queries every developer should know. These queries can be asked you as an Interview Question or they are handy for you in your day to day tasks.

11. Get all column names from table:

In this query we will learn about How to get all column names from Sql Server table.

select COLUMN_NAME from INFORMATION_SCHEMA.COLUMNS where TABLE_NAME='TableName';

Get column names with data type:

@A-Programmer
A-Programmer / liveSassCompiler
Last active November 23, 2019 10:41
Install and Config LiveSassCompiler extension
Create a .vscode folder in the root of project. Inside of .vscode folder create a json file named settings.json. Inside of the settings.json, type following key-value pairs. By the way you’ll get intelli-sense.
{
"liveSassCompile.settings.formats":[
{
"format": "expanded",
"extensionName": ".css",
"savePath": "/css"
},
{
set nocompatible
filetype off
"Add Vundle to runtime path
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
"""""""""""""""""""""""
"" Add new plugins here
"""""""""""""""""""""""
@A-Programmer
A-Programmer / .vimrc
Created October 4, 2021 16:16
My .vimrc file
let s:using_snippets = 0
call plug#begin('~/.vim/plugged')
" Git
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
Plug 'junegunn/gv.vim'
@A-Programmer
A-Programmer / Dockerfile
Created March 6, 2022 16:36
NETCore 6.0 project Dockerfile
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env
WORKDIR /app
# Copy csproj and restore as distinct layers
COPY *.csproj ./
RUN dotnet restore
# Copy everything else and build
COPY . ./
RUN dotnet publish -c Release -o out