Skip to content

Instantly share code, notes, and snippets.

View myalsailamy's full-sized avatar
🏠
Working from home

Mohammed Alsailamy myalsailamy

🏠
Working from home
View GitHub Profile
@myalsailamy
myalsailamy / gist:0a4f9f04d300b863e054a7968d1a2f55
Created January 4, 2020 00:03 — forked from andyyou/gist:3052671
C# Controls abbreviation
btn Button chk CheckBox ckl CheckedListBox
cmb ComboBox dtp DateTimePicker lbl Label
llb LinkLabel lst ListBox lvw ListView
mtx MaskedTextBox cdr MonthCalendar icn NotifyIcon
nud NumeircUpDown pic PictureBox prg ProgressBar
rdo RadioButton rtx RichTextBox txt TextBox
tip ToolTip tvw TreeView wbs WebBrowser
容器
flp FlowLayoutPanel grp GroupBox pnl Panel
@myalsailamy
myalsailamy / GetCarImage.cs
Created November 12, 2020 18:46 — forked from jjgriff93/GetCarImage.cs
C# HTTP Trigger Azure function code to get requested image from blob storage and optionally resize it based on request body parameters
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Azure.WebJobs.Host;
using Newtonsoft.Json;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Blob;
using System.Drawing;
@myalsailamy
myalsailamy / main.cs
Created March 28, 2021 01:48 — forked from adamzuckerman/main.cs
Using iTextSharp to create a TextField on an existing PDF
using iTextSharp.text;
using iTextSharp.text.pdf;
private static void Main(string[] args)
{
const string templateFilename = "template.pdf";
const string outputFilename = "output.pdf";
using (Stream inputPdf = new FileStream(templateFilename, FileMode.Open, FileAccess.Read, FileShare.Read))
{
@myalsailamy
myalsailamy / win10colors.cmd
Created April 23, 2021 16:39 — forked from mlocati/win10colors.cmd
ANSI Colors in standard Windows 10 shell
@echo off
setlocal
call :setESC
cls
echo %ESC%[101;93m STYLES %ESC%[0m
echo ^<ESC^>[0m %ESC%[0mReset%ESC%[0m
echo ^<ESC^>[1m %ESC%[1mBold%ESC%[0m
echo ^<ESC^>[4m %ESC%[4mUnderline%ESC%[0m