Skip to content

Instantly share code, notes, and snippets.

Mohammed Abdulkareem mohammed-io

Block or report user

Report or block mohammed-io

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mohammed-io
mohammed-io / MultiFormatResult.cs
Last active Aug 21, 2019
A Multi-format response for ASP.net Core
View MultiFormatResult.cs
/**
* Licensed under MIT license.
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
View arrays-and-methods
const students = [
{firstName: 'Mohammed', lastName: 'Mwafaq', age: 24, married: false, avgScore: 79.3},
{firstName: 'Shaymaa', lastName: 'Adnan', age: 22, married: false, avgScore: 73.52},
{firstName: 'Sazgar', lastName: 'Omar', age: 22, married: false, avgScore: 75.39},
{firstName: 'Shakhawan', lastName: 'Shukr', age: 34, married: true, avgScore: null},
{firstName: 'Mahmood', lastName: 'Bashar', age: 29, married: false, avgScore: 70.2},
];
/**
* {name: 'Shakhawan', age: 34, married: true, avgScore: null},
View responsive.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
View Problem JS
var arrayOfFunctions = []
for (var i = 0; i < 5; i++) {
arrayOfFunctions.push( function () {
console.log(i);
});
}
arrayOfFunctions[0](); // Expected?
arrayOfFunctions[1](); // Expected?
View ls-command-summary.md

ls command used to list files in a directory (folder)

Arguments:

-a     => Lists all files including hidden files (starts with .)

-l     => Long list (detailed)

-r     => Reverse the order of the files
You can’t perform that action at this time.