Skip to content

Instantly share code, notes, and snippets.

View andresmoschini's full-sized avatar

Andres Moschini andresmoschini

  • Making Sense
  • Mar del Plata
View GitHub Profile
@andresmoschini
andresmoschini / gist:6073066
Created July 24, 2013 18:17
Print last added lines to a file in the console
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Threading.Tasks;
namespace ConsoleApplication7
{
class Program
[class|="icon"] {
width:10px;
height:10px;
display:inline-block;
line-height:10px;
background-image: url("../img/icon_sprite.png");
background-repeat: no-repeat;
}
.icon-arrow-left{
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The HTML5 Herald</title>
</head>
<body>
@andresmoschini
andresmoschini / TemplateCtrl.js
Last active February 18, 2016 15:31
Plantillas para controllers y services en Relay
(function () {
'use strict';
angular
.module('dopplerRelay')
.controller('TemplateCtrl', TemplateCtrl);
TemplateCtrl.$inject = [
'$scope',
'templates',
(function () {
'use strict';
angular
.module('dopplerRelay')
.directive('validationErrors', validationErrors);
validationErrors.$inject = [
"$compile"
];
@andresmoschini
andresmoschini / client.cs
Created June 23, 2017 19:29
Test Async/Await benefits
using System;
using System.Diagnostics;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
namespace Client
{
class Program
{
@andresmoschini
andresmoschini / EmailUrlObfuscation.cs
Last active September 12, 2017 13:56
EmailUrlObfuscation
using System;
using System.Text;
using System.Linq;
public static class EmailUrlObfuscation
{
private static string AtSymbolEncode(this string email) => email
.Replace("]", "-]")
.Replace("@", "[a]");
/*
EXAMPLE EXECUTION
testname: GetNeverPonyNumber
uniques: 50000000
collisions: 0
examples: 8702a199572565e1, 84a4a866d8222e3f, 7de9de6bc852e14d
elapsed: 00:03:47.0953452
@andresmoschini
andresmoschini / branches_n_merges.md
Last active September 13, 2018 14:59
Branches and Merges

Before merge


*      A2
|  
|  *   B2
|  |  
|  *   B1
|  |
body {
background: #000;
}