Skip to content

Instantly share code, notes, and snippets.

View malbarmavi's full-sized avatar
[object Object]

Muhammed Albarmavi malbarmavi

[object Object]
View GitHub Profile
@malbarmavi
malbarmavi / development.txt
Last active December 10, 2015 10:25
Developer Talk
Robert C Martin - Clean Architecture and Design
https://www.youtube.com/watch?v=Nsjsiz2A9mg
AngularJS for ASP.NET MVC Developers by Miguel A Castro
https://www.youtube.com/watch?v=f67PFtrldGQ
Go Mobile with C# and Xamarin
https://www.youtube.com/watch?v=rOUAWzxVwX0
// Login
var userData = DB.GetUser(loginData);
if (userData.Id > 0)
{
Session[SessionNames.User] = userData;
return RedirectToAction("index", "Dashboard");
}
else
{
@malbarmavi
malbarmavi / mssql.sql
Last active February 15, 2024 17:16
MS SQL Server Most Useful Queries
select * from master.dbo.sysdatabases;
use DataBaseName;
select * from information_schema.tables;
select TABLE_NAME 'Table Name',COUNT(COLUMN_NAME) 'Column Count'
from information_schema.COLUMNS group by TABLE_NAME order by [TABLE_NAME];
select @@CONNECTIONS;
@malbarmavi
malbarmavi / sharp.cs
Created July 22, 2016 15:11
C# Snippet
// copy one table to another with some column
DataTable finalRssult = dt.DefaultView.ToTable("final", false, "d13", "d14", "d15", "d16", "d17", "d18", "d19");
John Papa - 10 AngularJS Patterns - Code on the Beach 2014
https://www.youtube.com/watch?v=UlvCbnKAH3g
John Papa
https://mvp.microsoft.com/en-us/PublicProfile/4040095?fullName=John%20Papa
git reset
git rm --cached -r directory-name
@malbarmavi
malbarmavi / Admin.reg
Last active April 22, 2017 21:21
Add open with cmd
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\shell\runas]
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Open with cmd
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
@malbarmavi
malbarmavi / Js.js
Last active May 23, 2017 12:08
Javascript Articles
https://medium.mybridge.co/top-10-javascript-articles-for-the-past-month-v-july-82b5ae18007a
http://javascriptplayground.com/blog/2015/03/node-command-line-tool/
https://code-maven.com/list-content-of-directory-with-nodejs
Build error
npm install --global --production windows-build-tools
@malbarmavi
malbarmavi / bootstrap.txt
Last active February 14, 2018 14:34
General bootstrap snippet
modal option
data-backdrop="static" data-keyboard="false"