Skip to content

Instantly share code, notes, and snippets.

View mabuenox's full-sized avatar
💭
I may be slow to respond.

Miguel Ángel Bueno Ferrer mabuenox

💭
I may be slow to respond.
View GitHub Profile
@mabuenox
mabuenox / Write Log on Windows Service
Created February 28, 2013 07:28
Write Log on Windows Service. Only a guide, this code can be enhanced.
private void EscribirLog(string message)
{
try
{
DirectoryInfo dirInfo = new DirectoryInfo(AppDomain.CurrentDomain.BaseDirectory + "\\Log");
if (!dirInfo.Exists)
{
dirInfo.Create();
}
FileInfo[] files = dirInfo.GetFiles();
@mabuenox
mabuenox / gist:5176370
Last active December 15, 2015 00:59
WebSites built on ASP.NET
stackoverflow.com
monster.com
dell.com
godaddy.com
britishmuseum.org
lego.com
myspace.com
microsoft.com
hotmail.com
msn.com
@mabuenox
mabuenox / HTML5 Datalist spanish provinces
Created September 5, 2013 19:29
HTML5 Datalist with spanish provinces
<input type="text" placeholder="Provincia" list="provincias">
<datalist id="provincias">
<option value="A Coruña">
<option value="Álava">
<option value="Albacete">
<option value="Alicante">
<option value="Almería">
<option value="Asturias">
<option value="Ávila">
@mabuenox
mabuenox / Open Source ASP.NET CMS
Last active October 31, 2018 04:10
A recopilation of open source ASP.NET CMS systems, ordered by my personal criteria of quality and flexibility
# Open Source ASP.NET CMS
- Orchard
- Umbraco
- DotNetNuke
- N2CMS
- Karbon CMS
- Kooboo
- Composite C1
- BetterCMS
public class DistanceCalculator
{
public int CalculateDistanceInKm(string origin, string destination)
{
if (string.IsNullOrEmpty(origin)
{
throw new ArgumentNullException("You tried to provide a null or empty origin; please supply a valid city name");
}
if (string.IsNullOrEmpty(destination)
{
void Save(Order order);
void SendMessage(Message message, User recipient);
void Authenticate(string username, string password);
string SendMessage(Message message, User recipient);
IEnumerable<Order> GetOrders(int userId);
Message GetMessage(int messageId);
bool ValidateCredentials(string username, string password);

Plataformas

  • udacity.com
  • teamtreehouse.com
  • pluralsight.com
  • codeschool.com
  • codecademy.com
  • pro.codecademy.com
  • egghead.io
  • campusmvp.es (español)