Skip to content

Instantly share code, notes, and snippets.

View jmserrano-dev's full-sized avatar

José Manuel Serrano Mármol jmserrano-dev

View GitHub Profile
@jmserrano-dev
jmserrano-dev / gist:67cad61c9b75ba1b7489fd23c38ea1bc
Created May 25, 2018 10:24 — forked from lontivero/gist:593fc51f1208555112e0
Generates Markdown from VS XML documentation file
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using System.Xml;
using System.Xml.Linq;
namespace GithubWikiDoc
{
@jmserrano-dev
jmserrano-dev / Guard.cs
Created August 24, 2018 10:14 — forked from PradeepLoganathan/Guard.cs
C# Guard class with common validation checks.
public static class Guard
{
public static void AgainstNull<T>(T value)
where T : class
{
if (value == null)
throw new ArgumentNullException();
}
public static void AgainstNull<T>(T value, string paramName)
@jmserrano-dev
jmserrano-dev / resize.js
Created September 24, 2020 08:40 — forked from vishalsrini/resize.js
A simple JavaScript to resize an image and create a blob out of it
window.resize = (function () {
'use strict';
function Resize() {}
Resize.prototype = {
init: function(outputQuality) {
this.outputQuality = (outputQuality === 'undefined' ? 0.8 : outputQuality);
},
@jmserrano-dev
jmserrano-dev / workflow.yml
Created January 1, 2022 00:47 — forked from AugustoCalaca/workflow.yml
example of workflow ci/cd for monorepo with github actions
name: CI/CD Monorepo
env:
AWS_REGION: us-east-1 # N. Virginia
on:
push:
branches:
- main
paths-ignore: