Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js"></script>
</head>
<body>
<script id="itemTemplate" type="text/x-jquery-tmpl">
<tr>
<td>${Nome}</td>
public struct Nome
{
private readonly string _valor;
public Nome(string nome) : this()
{
_valor = nome;
}
public static implicit operator Nome(string nome)
@ircnelson
ircnelson / gist:4045324
Created November 9, 2012 11:48
cf com banco que já existe
---------------------- Class Project: MvcApplication2.Dominio
namespace MvcApplication2.Dominio
{
public abstract class Pessoa : Entidade<long>
{
}
public class PessoaFisica : Pessoa
{
using UnityEngine;
using System.Collections;
public class Level {
public Mesh mesh;
private bool drawDebugMesh;
private Path path;
private Face[] faces;
An unhandled exception occurred while processing the request.
ArgumentException: Invalid cookie value: %5B%22mvc_implicit%22,%22js_oidc%22%5D
Parameter name: value
Microsoft.Net.Http.Headers.CookieHeaderValue.CheckValueFormat(String value, String parameterName)
Stack Query Cookies Headers
ArgumentException: Invalid cookie value: %5B%22mvc_implicit%22,%22js_oidc%22%5D
Parameter name: value
Microsoft.Net.Http.Headers.CookieHeaderValue.CheckValueFormat(String value, String parameterName)
using System;
using System.IO;
using System.Net.Http;
using Microsoft.AspNet.Hosting;
using Microsoft.AspNet.TestHost;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.PlatformAbstractions;
using System.Reflection;
using Microsoft.AspNet.Mvc.Infrastructure;
using System.Runtime.Versioning;
using Microsoft.Extensions.PlatformAbstractions;
namespace PJMT.Aurora.IdentityServer.IntegratedTests
{
public class TestApplicationEnvironment : IApplicationEnvironment
{
private readonly IApplicationEnvironment _original;
public TestApplicationEnvironment(IApplicationEnvironment original, string configuration, string name, string basePath)
@ircnelson
ircnelson / StateMachine
Created May 25, 2016 03:11 — forked from elandau/StateMachine
Rx based state machine
package com.netflix.experiments.rx;
import java.util.HashMap;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import rx.Observable;
import rx.Observable.OnSubscribe;
@ircnelson
ircnelson / remove-dotnet-cli-osx
Created December 13, 2016 01:38 — forked from sandrovicente/remove-dotnet-cli-osx
Steps to uninstall a DotNet CLI version on Mac OS X
# delete the dotnet folder under /usr/local/share/dotnet
1. cd /usr/local/share/dotnet && ls
2. sudo rm -rf dotnet
# delete the dotnet reference file at /etc/paths.d/dotnet
1. cd /etc/paths.d && ls
2. sudo rm dotnet
db.getCollection('Events').count();
db.getCollection('Events').find({ 'metadata.eventVersion': { $type: 2 } }).count()
db.getCollection('Events').find({ 'metadata.eventVersion': { $type: 16 } }).count()
db.getCollection('Events').find({})
// FIX
db.getCollection('Events').find({ 'metadata.eventVersion': { $type: 2 } }).forEach(function (i) {
i.metadata.eventVersion = NumberInt(i.metadata.eventVersion);