- Control total sobre que se mergea.
- El dueño del repo es el único responsable del código.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
namespace Utilities | |
{ | |
public static class Maybe | |
{ | |
public static Maybe<T> From<T>(T value) => new Maybe<T>(value); | |
public static Maybe<T> None<T>() => default(Maybe<T>); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | |
<html> | |
<head> | |
<title></title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
<script language="javascript"> | |
$(function () { | |
$(".DemoPopup").click(function () { | |
//TODO: height and wifdth should be calculated | |
$("#sb-container").height("5000px").width("10000px").show(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE q FROM ( | |
SELECT TOP 1000000 * | |
FROM sc_logging | |
WHERE DATEDIFF(day, Date, CURRENT_TIMESTAMP) > 15 | |
ORDER BY Date ASC) q | |
DELETE FROM sc_logging | |
WHERE Id IN ( | |
SELECT TOP 1000000 Id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ClientA | |
{ | |
public virtual List<Invoice> Invoices { get; set; } | |
//... | |
public Product GetMostBuyedProduct(DateTime from, DateTime to) | |
{ | |
//... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static class DateTimeOffsetExample | |
{ | |
static void Main(string[] args) | |
{ | |
DateTimeOffset localDateTime = DateTimeOffset.Now; // Setting up a DateTimeOffset with my local machine time: 2012-08-07 05:50:00 pm Offset -05:00 (We are in DST) | |
Console.WriteLine(localDateTime.DateTime); // Is a DateTime, the output is the time as was recorded in the client machine (no offset involved): 2012-08-07 05:50:00 pm | |
Console.WriteLine(localDateTime.Offset); // A TimeSpan (hh:mm): -05:00:00 | |
Console.WriteLine(localDateTime.LocalDateTime); // A DateTime, because I'm on the same machine it is: 2012-08-07 05:50:00 pm | |
//I'm creating this particular DateTime Offset for demostration, lets imagine I got this from the DB (for the record the client machine was on Bs As) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install mc build-essential dkms openssh-server colordiff locate ntp pwgen rsync vim git git-core git-cvs git-doc git-svn apache2 apache2-threaded-dev apg aspell aspell-en build-essential geoip-bin imagemagick libapache2-mod-xsendfile libaspell-dev libcurl4-openssl-dev libdbd-mysql-ruby libexpat1-dev libgeoip-dev libgeoip1 libmagick++-dev libmagick++4 libmysql-ruby libmysqlclient-dev libonig-dev libpcre3 libpcre3-dev libreadline-dev libreadline5 libruby libsqlite3-dev libxslt1-dev libyaml-dev memcached mysql-client mysql-server openjdk-6-jre postfix ruby ruby-dev rubygems sphinxsearch sqlite3 unzip zip zlib1g zlib1g-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Yammer | |
{ | |
public string Name { get; set; } | |
} |
Here's an example of how to embed a Gist on GitHub Pages:
{% gist 5555251 %}
All you need to do is copy and paste the Gist's ID from the URL (here 5555251
), and add it to a gist
tag surrounded by {%
and %}
.
OlderNewer